Skip to content

pr-automation-detected

Included in configs: ✅ recommended, 🔒 strict

Pull requests labeled as automated (e.g. automation-signal) or AI-generated (e.g. ai slop) indicate contributions that were not meaningfully authored by a human. These contributions are often low-quality, miss project context, and create unnecessary review burden for maintainers.

When a matching label is detected on an open PR, OctoGuide will post a comment explaining the closure and then close the pull request.

At this time, the following label names are matched case-insensitively:

  • automation-signal or automation signal
  • ai-slop or ai slop

Adding a label to a pull request fires the labeled event. OctoGuide’s default workflow doesn’t run on labeled, so this rule only checks pull requests when they’re opened or edited. To check pull requests as soon as a matching label is added, add labeled to the workflow’s pull_request_target types:

.github/workflows/octoguide.yml
on:
pull_request_target:
types: [edited, labeled, opened]

This rule declares its own default options. They take precedence over the top-level include-ais, include-associations, and include-bots inputs:

  • include-ais: true
  • include-bots: true

Those defaults are equivalent to the following rule options. Changing a value runs the rule with yours instead:

.github/workflows/octoguide.yml
jobs:
octoguide:
runs-on: ubuntu-latest
steps:
- uses: OctoGuide/bot@0.33.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
rules: |
{
"pr-automation-detected": {
"include-ais": true,
"include-bots": true
}
}
github-actions
👋 Hi @YourUsername, thanks for the issue! A scan flagged a concern with it. Could you please take a look?

[ pr-automation-detected ]

This pull request has been labeled as automated or AI-generated and will be closed. These types of automated contributions often lack the understanding and context that maintainers need to review and maintain code.

Please review the repository’s contributing guidelines before submitting.

Each snippet in this section shows changes to the full .github/workflows/octoguide.yml workflow from Get Started.

This rule is enabled by default as part of the recommended config.

To use this rule on its own, enable it in rules with the none config:

.github/workflows/octoguide.yml
jobs:
octoguide:
runs-on: ubuntu-latest
steps:
- uses: OctoGuide/bot@0.33.1
with:
config: none
github-token: ${{ secrets.GITHUB_TOKEN }}
rules: |
{
"pr-automation-detected": true
}