Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ai_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: AI Monthly Review

jobs:
ai-review:
if: contains(github.event.issue.labels.*.name, 'monthly-review') || inputs.issue_number != ''
if: vars.LEGACY_AI_REVIEW_ENABLED == 'true' && (contains(github.event.issue.labels.*.name, 'monthly-review') || inputs.issue_number != '')
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions tests/test_monthly_publish_workflow_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def test_ai_review_workflow_supports_dispatch_and_comment_posting(self) -> None:

self.assertIn("workflow_dispatch:", workflow)
self.assertIn("issue_number:", workflow)
self.assertIn("vars.LEGACY_AI_REVIEW_ENABLED == 'true'", workflow)
self.assertIn("id-token: write", workflow)
self.assertIn("Load review issue context", workflow)
self.assertIn("api.github.com/repos/{repo}/issues/{issue_number}", workflow)
Expand Down