Add use-pr-linker workflow to auto-link PRs to issues#125
Conversation
|
Warning Review limit reached
More reviews will be available in 55 minutes and 55 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
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 |
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.
Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
308719e to
d1b48ca
Compare
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