Skip to content

[ci] Enabled issue autoassignment bots#52

Merged
nemesifier merged 1 commit into
openwisp:masterfrom
Eeshu-Yadav:ci/bot-autoassign
May 14, 2026
Merged

[ci] Enabled issue autoassignment bots#52
nemesifier merged 1 commit into
openwisp:masterfrom
Eeshu-Yadav:ci/bot-autoassign

Conversation

@Eeshu-Yadav

@Eeshu-Yadav Eeshu-Yadav commented May 14, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

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-utils to run the bot Python scripts, ensuring uniform behavior across all repositories.
Related to the auto-assignment issue bot implementation.

Copilot AI review requested due to automatic review settings May 14, 2026 09:47
@coderabbitai

coderabbitai Bot commented May 14, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Eeshu-Yadav has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 42 minutes and 26 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 11b3a4b8-b3ed-4b55-962e-3e6734cbee2d

📥 Commits

Reviewing files that changed from the base of the PR and between c24887e and 7d6f090.

📒 Files selected for processing (4)
  • .github/workflows/bot-autoassign-issue.yml
  • .github/workflows/bot-autoassign-pr-issue-link.yml
  • .github/workflows/bot-autoassign-pr-reopen.yml
  • .github/workflows/bot-autoassign-stale-pr.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kilo-code-bot

kilo-code-bot Bot commented May 14, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

These workflow files follow GitHub Actions security best practices:

  • ✅ Proper use of pull_request_target with delegation to trusted reusable workflows
  • ✅ Least-privilege permissions (contents: read, minimal write permissions)
  • ✅ Appropriate condition checks (filtering issues vs PRs, validating commenter identity)
  • ✅ Concurrency controls to prevent race conditions
  • ✅ No injection vulnerabilities from untrusted input

The workflows delegate to openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master, maintaining consistent behavior across the OpenWISP organization.

Files Reviewed (4 files)
  • .github/workflows/bot-autoassign-issue.yml - Handles issue assignment via comments
  • .github/workflows/bot-autoassign-pr-issue-link.yml - PR-issue linking and auto-assignment
  • .github/workflows/bot-autoassign-pr-reopen.yml - PR reopening and reassignment
  • .github/workflows/bot-autoassign-stale-pr.yml - Scheduled stale PR management

Reviewed by kimi-k2.5-0127 · 76,760 tokens

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in openwisp/openwisp-utils to 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 in openwisp/openwisp-utils to 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 in openwisp/openwisp-utils to 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
Comment on lines +2 to +8
on:
pull_request_target:
types: [opened, reopened, closed]
permissions:
contents: read
issues: write
pull-requests: read
Comment on lines +2 to +6
on:
pull_request_target:
types: [reopened]
issue_comment:
types: [created]
Comment on lines +2 to +7
on:
issue_comment:
types: [created]
permissions:
contents: read
issues: write
@nemesifier nemesifier merged commit 0ee2d69 into openwisp:master May 14, 2026
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants