Skip to content

chore: auto-close issues when PRs merge to dev#161

Merged
sasagar merged 1 commit intodevfrom
chore/issue-160-auto-close-issues
Apr 10, 2026
Merged

chore: auto-close issues when PRs merge to dev#161
sasagar merged 1 commit intodevfrom
chore/issue-160-auto-close-issues

Conversation

@sasagar
Copy link
Copy Markdown
Collaborator

@sasagar sasagar commented Apr 10, 2026

Closes #160

Summary

Add close-issues.yml workflow that triggers when PRs are merged to dev.
Parses Closes #N / Fixes #N / Resolves #N from PR bodies and
auto-closes the referenced issues with a comment.

How it works

  • Triggers on pull_request.closed event for dev branch
  • Only runs if the PR was actually merged (not just closed)
  • Uses actions/github-script to parse and close issues via GitHub API

Test plan

GitHub only auto-closes issues on merge to default branch (main).
This workflow parses Closes/Fixes/Resolves from PR bodies and
closes referenced issues when PRs merge to dev.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 10, 2026

Warning

Rate limit exceeded

@sasagar has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 40 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 0 minutes and 40 seconds.

⌛ 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6b2f4a90-3359-4534-a500-29403e90ea85

📥 Commits

Reviewing files that changed from the base of the PR and between 9356a8f and f91aad8.

📒 Files selected for processing (1)
  • .github/workflows/close-issues.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/issue-160-auto-close-issues

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.

@sasagar sasagar merged commit cab99a4 into dev Apr 10, 2026
5 checks passed
@sasagar sasagar deleted the chore/issue-160-auto-close-issues branch April 10, 2026 15:44
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.

1 participant