-
Notifications
You must be signed in to change notification settings - Fork 2
Add CodeAnt Quality Gates #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: CodeAnt Test Workflow | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
| branches: | ||
| - development | ||
| - main | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| codeAnt: | ||
| uses: TrySpeed/reusable-workflow/.github/workflows/codeant-ci.yml@latest | ||
| secrets: | ||
| CODEANT_GITHUB_TOKEN: ${{ secrets.CODEANT_GITHUB_TOKEN }} | ||
|
Comment on lines
+14
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: find . -name "codeant-test.yml" -type fRepository: TrySpeed/magento-payment-plugin Length of output: 111 🏁 Script executed: cat -n .github/workflows/codeant-test.ymlRepository: TrySpeed/magento-payment-plugin Length of output: 550 🌐 Web query:
💡 Result: Best practices: reusable workflows + “@latest” vs pinning1) Don’t use floating refs like
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: TrySpeed/magento-payment-plugin
Length of output: 550
🌐 Web query:
GitHub Actions pull_request event types reopened ready_for_review💡 Result:
In GitHub Actions, the
pull_requestevent supports many activity types, includingreopenedandready_for_review(among others). [1]types:, the workflow runs only foropened,reopened, andsynchronize. [2]reopened: fires when a previously closed PR is reopened. [2]ready_for_review: fires when a PR is marked Ready for review (i.e., converted from draft to non-draft). [1]Example to include both:
Sources:
[1] GitHub Docs –
pull_requestactivity types list (includesready_for_review,reopened)[2] GitHub Docs – default
pull_requesttriggers when notypesare specified (opened/reopened/synchronize)Cover reopened and draft-to-ready PR transitions.
With only
openedandsynchronize, this gate will not run when a PR is reopened or marked ready for review. This bypasses the intended CodeAnt check for valid merge paths.Suggested change
📝 Committable suggestion
🤖 Prompt for AI Agents