Add use-pr-linker workflow to auto-link PRs to issues#125
Conversation
WalkthroughA new GitHub Actions workflow is added that automatically links pull requests to related issues. The workflow triggers on specified PR event types, configures permissions for repository and issue access, and invokes an external reusable workflow from the kattu repository, passing an authentication token via secrets. ChangesGitHub Actions PR Linking Setup
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
a8624c6 to
308719e
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/use-pr-linker.yml:
- Line 14: The workflow currently references a mutable branch in the uses string
"mosip/kattu/.github/workflows/link-pr-to-issue.yml@develop"; replace that
branch ref with the repository's immutable full commit SHA (e.g., change the
suffix from `@develop` to @<full-commit-sha>) so the reusable workflow is pinned
to a specific commit and cannot change unexpectedly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e908fe52-ddf3-4f97-8843-1fe0fdfa6214
📒 Files selected for processing (1)
.github/workflows/use-pr-linker.yml
|
|
||
| jobs: | ||
| call-linker: | ||
| uses: mosip/kattu/.github/workflows/link-pr-to-issue.yml@develop |
There was a problem hiding this comment.
Pin reusable workflow to an immutable commit SHA
.github/workflows/use-pr-linker.yml invokes the reusable workflow with @develop (mutable), which can change without this repo’s review. Pin mosip/kattu/.github/workflows/link-pr-to-issue.yml to a full commit SHA.
Suggested change
- uses: mosip/kattu/.github/workflows/link-pr-to-issue.yml@develop
+ uses: mosip/kattu/.github/workflows/link-pr-to-issue.yml@<full_commit_sha>🧰 Tools
🪛 zizmor (1.25.2)
[error] 14-14: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/use-pr-linker.yml at line 14, The workflow currently
references a mutable branch in the uses string
"mosip/kattu/.github/workflows/link-pr-to-issue.yml@develop"; replace that
branch ref with the repository's immutable full commit SHA (e.g., change the
suffix from `@develop` to @<full-commit-sha>) so the reusable workflow is pinned
to a specific commit and cannot change unexpectedly.
Summary
Adds
use-pr-linker.ymlworkflow that calls the reusable PR-to-issue linker frommosip/kattu(@develop).Notes
ACTION_PATrepository secret to be configured.develop.Summary by CodeRabbit