diff --git a/.github/agentscan.yml b/.github/agentscan.yml index 2d573cf..7c258ad 100644 --- a/.github/agentscan.yml +++ b/.github/agentscan.yml @@ -11,6 +11,7 @@ trusted-author-associations: - owner - member - collaborator + - contributor labels: automation: possible bot @@ -45,3 +46,10 @@ messages: Please review these AI-assisted contribution guidelines and update this contribution if needed. If this was flagged in error, we apologise! 😳 Just let us know. 🙏 + insufficient-data: | + Looks like you're new to GitHub - we're delighted you'd like to contribute! 💚 + + We welcome the thoughtful use of AI tools when contributing, but ask all contributors to follow [two core principles](https://roe.dev/blog/using-ai-in-open-source): + + 1. **Never let an LLM speak for you** - all comments, issues, and PR descriptions should be written in your own words, reflecting your own understanding. + 2. **Never let an LLM think for you** - only submit contributions you fully understand and can explain. diff --git a/.github/workflows/agent-scan.yml b/.github/workflows/agent-scan.yml index 7ab3153..c17a1f9 100644 --- a/.github/workflows/agent-scan.yml +++ b/.github/workflows/agent-scan.yml @@ -4,6 +4,7 @@ on: pull_request_target: types: - closed + - labeled permissions: pull-requests: write @@ -11,8 +12,10 @@ permissions: jobs: rename: if: >- - !github.event.pull_request.merged + github.event.pull_request.state == 'closed' + && !github.event.pull_request.merged && contains(github.event.pull_request.labels.*.name, 'possible bot') + && (github.event.action == 'closed' || github.event.label.name == 'possible bot') runs-on: ubuntu-latest steps: - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0