[ci] Enabled issue autoassignment bots#52
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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 |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge These workflow files follow GitHub Actions security best practices:
The workflows delegate to Files Reviewed (4 files)
Reviewed by kimi-k2.5-0127 · 76,760 tokens |
There was a problem hiding this comment.
Pull request overview
This PR introduces GitHub Actions workflows to enable OpenWISP’s issue/PR auto-assignment automation in this repository by delegating execution to the reusable bot workflow maintained in openwisp/openwisp-utils.
Changes:
- Added an issue comment–driven workflow to handle issue auto-assignment requests.
- Added PR workflows to manage PR↔issue linking auto-assignment and reassignment on PR reopen/activity.
- Added a scheduled workflow to manage stale PR handling.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| .github/workflows/bot-autoassign-stale-pr.yml | Adds a scheduled/dispatchable workflow to run the stale PR management bot via a reusable workflow. |
| .github/workflows/bot-autoassign-pr-reopen.yml | Adds PR reopen + PR-author comment triggers to run reassignment logic via a reusable workflow. |
| .github/workflows/bot-autoassign-pr-issue-link.yml | Adds a pull_request_target workflow to manage PR↔issue linking-related assignment automation via a reusable workflow. |
| .github/workflows/bot-autoassign-issue.yml | Adds an issue_comment workflow to support issue assignment automation via a reusable workflow. |
Comments suppressed due to low confidence (3)
.github/workflows/bot-autoassign-pr-reopen.yml:18
- The reusable workflow is referenced via
@master, which is a moving target. Please pin this to a specific tag or commit SHA inopenwisp/openwisp-utilsto make runs reproducible and reduce supply-chain risk (especially since this workflow has write permissions and uses bot credentials).
reassign-on-reopen:
if: github.event_name == 'pull_request_target' && github.event.action == 'reopened'
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
.github/workflows/bot-autoassign-pr-issue-link.yml:16
- The reusable workflow is referenced via
@master, which is a moving target. Please pin this to a specific tag or commit SHA inopenwisp/openwisp-utilsto make runs reproducible and reduce supply-chain risk (this workflow runs with write permissions and passes bot credentials).
auto-assign-issue:
if: github.event.action != 'closed' || github.event.pull_request.merged == false
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
.github/workflows/bot-autoassign-issue.yml:15
- The reusable workflow is referenced via
@master, which is a moving target. Please pin this to a specific tag or commit SHA inopenwisp/openwisp-utilsto make runs reproducible and reduce supply-chain risk (this workflow passes bot credentials).
respond-to-assign-request:
if: github.event.issue.pull_request == null
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| cancel-in-progress: false | ||
| jobs: | ||
| manage-stale-prs-python: | ||
| uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master |
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, closed] | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| pull-requests: read |
| on: | ||
| pull_request_target: | ||
| types: [reopened] | ||
| issue_comment: | ||
| types: [created] |
| on: | ||
| issue_comment: | ||
| types: [created] | ||
| permissions: | ||
| contents: read | ||
| issues: write |
Checklist
This PR adds the GitHub Actions workflows to auto-assign issues, manage PR-issue linking, handle PR reopening reassignment, and manage stale PRs.
These workflows check out
openwisp/openwisp-utilsto run the bot Python scripts, ensuring uniform behavior across all repositories.Related to the auto-assignment issue bot implementation.