-
Notifications
You must be signed in to change notification settings - Fork 108
feat: add PR inactivity reminder bot for stale pull requests #978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add PR inactivity reminder bot for stale pull requests #978
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request introduces an automated workflow to remind authors of pull requests that have been inactive for 10 days. The bot runs daily via GitHub Actions and posts a standardized reminder comment to inactive PRs, helping maintain development momentum and providing support resources.
Key Changes:
- Automated daily PR inactivity checks with configurable 10-day threshold
- Smart comment detection to prevent duplicate reminders
- Fallback mechanisms for fetching commit dates from forked repositories
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
.github/workflows/pr-inactivity-reminder-bot.yml |
Defines the scheduled workflow that runs daily at 11:00 UTC to check for and comment on inactive PRs |
.github/scripts/pr_inactivity_reminder.js |
Implements the bot logic to fetch PR commit dates, check for existing bot comments, and post reminder messages with Discord and office hours links |
CHANGELOG.md |
Documents the addition of the PR inactivity reminder workflow in the Unreleased section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I am reviewing this currently but we have 4 concurrent bot PRs to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MonaaEid excellent work!
Have added some suggestions to get to the final stages 👍
Please change PR status to draft until it is ready to review agian
|
Hi, this is MergeConflictBot. Please resolve these conflicts locally and push the changes. To assist you, please read: Thank you for contributing! From the Hiero Python SDK Team |
8d95829 to
b57070a
Compare
exploreriii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MonaaEid please click the sync fork button in your online repo and then pull it as you are currently not in sync with main
|
@exploreriii my commit won't be discard? |
b57070a to
b7f8b99
Compare
Signed-off-by: MonaaEid <monaa_eid@hotmail.com>
Signed-off-by: MonaaEid <monaa_eid@hotmail.com>
exploreriii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MonaaEid please rebase and happy to approve this
if you have time, please change the harded 'your PR has been inactive for 10 days' to
'your pR has been inactive fro at least 10 days'
or calculate the day more precisely
Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
Added a PR inactivity reminder bot for stale pull requests. Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
…edger#978) Signed-off-by: MonaaEid <monaa_eid@hotmail.com> Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>

This pull request introduces a new workflow to automatically remind authors of open pull requests that have been inactive for 10 days. The workflow is scheduled to run daily and uses a custom script to identify inactive PRs and post a reminder comment if one hasn't already been posted.
New PR inactivity reminder workflow:
Workflow automation:
.github/workflows/pr-inactivity-reminder-bot.ymlto schedule and run a job that checks for inactive PRs and posts reminders using GitHub Actions.Bot logic implementation:
.github/scripts/pr_inactivity_reminder.jsto find open PRs with no commit activity for 10 days, check for existing bot comments, and post a standardized reminder if needed. The script handles edge cases such as missing commit info or forked repositories.Related issue(s):
Fixes #950
Checklist