-
Notifications
You must be signed in to change notification settings - Fork 106
fix(bot): unify inactivity unassign bot and handle cross-repo refs #1025
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
Conversation
|
Hi @exploreriii , I’ve:
So scheduled runs still operate in real mode, and manual runs start in dry-run mode unless explicitly turned off. |
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 @Akshat8510 great!
Please note to be consistent!
Some of the script is passing true
but some of the script is expecting 0 or 1!
This can cause some runtime issues
|
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 |
cb18430 to
e0dfa37
Compare
|
[commit-verification-bot] To achieve verified status, please read: Remember, you require a GPG key and each commit must be signed with: Thank you for contributing! From the Hiero Python SDK Team |
e0dfa37 to
130de75
Compare
Signed-off-by: Akshat Kumar <akshat230405@gmail.com>
130de75 to
fd6e3b0
Compare
Signed-off-by: Akshat Kumar <akshat230405@gmail.com>
|
Hi @exploreriii , thanks for calling this out, that was a good catch. I’ve updated the bot so that:
Example from a dry-run: And for a Phase 1 case with no PR: |
|
This makes the behaviour much easier to trust when reviewing logs: you can see when the user was assigned, whether a PR exists, when it was last touched, and exactly why the bot decided to KEEP or (in non–dry run) close/unassign. |
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.
@Akshat8510
Please be careful when you refactor all the content -
its much better to keep things that are working and layer on additions or fixes
You have removed the posting functionality
Users that are removed from issues or PRs closed need to have a helpful message
Signed-off-by: Akshat Kumar <akshat230405@gmail.com>
a4eac66 to
e649fe1
Compare
Signed-off-by: Akshat8510 <akshat230405@gmail.com>
|
Hi @exploreriii , I’ve updated the bot to make the behaviour much more transparent and to restore the user-facing messages. What changed in the script:
Example from the latest dry run (
User-facing messages restored:
In Let me know if you’d like to tweak any of the log lines or the wording of the messages, I’m happy to adjust. 🙂 |
|
Have you been able to run this successfully? Is it tested? |
Signed-off-by: Akshat Kumar <akshat230405@gmail.com>
|
your commits are not verified please recommend soft revert if difficult |
695ba04 to
037ca62
Compare
… signed Signed-off-by: Akshat Kumar <akshat230405@gmail.com>
037ca62 to
8552f3c
Compare
Signed-off-by: Akshat8510 <akshat230405@gmail.com>
Signed-off-by: Akshat8510 <akshat230405@gmail.com>
Signed-off-by: Akshat8510 <akshat230405@gmail.com>
Signed-off-by: Akshat8510 <akshat230405@gmail.com>
Description
This PR fixes the bug where the inactivity bot crashed on cross-repo references
and unifies Phase 1 + Phase 2 into a single script with
DRY_RUNsupport.fixes #1022
What changed
.github/scripts/inactivity_unassign.shdry_run_inactivity_unassign_phase1.shdry_run_inactivity_unassign_phase2.shinactivity_unassign_phase1.shinactivity_unassign_phase2.shDRY_RUNmode:DRY_RUN=1→ log actions only, no unassign/close/commentDRY_RUN=0→ perform real actions (default in workflow)hiero-ledger/hiero-sdk-pythongh pr viewis wrapped with a safe check; invalid or foreign PRs are skippedbot-inactivity-unassign-phase1.ymlnow calls the unified script for both Phase 1 and Phase 2.Testing
Locally ran the bot with: