mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
Skip docs impact review when Docs/Not Needed label is present (#37109)
* Skip docs impact review when Docs/Not Needed label is present Add a gate job that checks for the Docs/Not Needed label before running the Claude analysis, so maintainers can opt out without the workflow re-adding Docs/Needed on subsequent CI runs. * Simplify docs/not-needed gate using contains() expression Replace the dedicated check-docs-not-needed job with a contains() check on github.event.pull_request.labels in the docs-impact-review job's if: condition. This avoids spinning up a separate runner and an extra API call to achieve the same opt-out behavior. --------- Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Hanzo Dev
parent
3e85247df8
commit
98845b2dc6
@@ -14,12 +14,15 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
docs-impact-review:
|
||||
if: |
|
||||
github.event.pull_request.draft == false
|
||||
&& !startsWith(github.event.pull_request.user.login, 'unified-ci-app')
|
||||
&& !contains(github.event.pull_request.labels.*.name, 'Docs/Not Needed')
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
issues: write
|
||||
id-token: write
|
||||
if: github.event.pull_request.draft == false && !startsWith(github.event.pull_request.user.login, 'unified-ci-app')
|
||||
runs-on: ubuntu-24.04
|
||||
env:
|
||||
HAS_ANTHROPIC_KEY: ${{ secrets.ANTHROPIC_API_KEY != '' }}
|
||||
|
||||
Reference in New Issue
Block a user