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.
Matched Labels
Section titled “Matched Labels”At this time, the following label names are matched case-insensitively:
automation-signalorautomation signalai-sloporai slop
Running on Labels
Section titled “Running on Labels”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:
on: pull_request_target: types: [edited, labeled, opened]Default Options
Section titled “Default Options”This rule declares its own default options. They take precedence over the top-level include-ais, include-associations, and include-bots inputs:
include-ais:trueinclude-bots:true
Those defaults are equivalent to the following rule options. Changing a value runs the rule with yours instead:
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 } }Example
Section titled “Example”How to Enable
Section titled “How to Enable”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:
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 }
[ 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.