chore: Update .github/scripts/bot-inactivity-unassign.sh to skip if 'discussion' label is added#1771
chore: Update .github/scripts/bot-inactivity-unassign.sh to skip if 'discussion' label is added#1771AkshayKumarSahu wants to merge 18 commits intohiero-ledger:mainfrom
Conversation
Signed-off-by: AkshayKumarSahu <akshaykumar15031999@gmail.com>
There was a problem hiding this comment.
Pull request overview
Updates the GitHub automation that unassigns users / closes stale PRs to not take action when a linked PR is intentionally parked for discussion via a discussion label (Fixes #1583).
Changes:
- Add a
discussionlabel check in the inactivity bot script to skip closing/unassigning when present. - Add a corresponding entry to
CHANGELOG.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.github/scripts/bot-inactivity-unassign.sh |
Adds logic to detect the discussion label on linked PRs and skip inactivity actions. |
CHANGELOG.md |
Documents the new inactivity-bot behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdds a check to the inactivity bot script to skip closing/unassigning PRs labeled "discussion" and logs skipped PRs; also updates CHANGELOG.md to record the new behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 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 |
There was a problem hiding this comment.
Hi @AkshayKumarSahu
There are quite a lot of changes here
Testing this would be difficult, but is worthwhile and a good next challenge
Could you:
- merge this PR to your forks main
- change inactivity to just 10 minutes, for example
- go to settings
- enable issues
- go to issues, create a label 'discussion'
try and trigger this bot, eg
- create pull request
- be inactive for 10 minutes, expect to unassign
- create a pull request with 'discussion'
- be inactive for 10 minutes, expect not to unassign
docs/sdk_developers/training/testing_forks.md
|
Hi, this is MergeConflictBot. Please resolve these conflicts locally and push the changes. Quick Fix for CHANGELOG.md ConflictsIf your conflict is only in CHANGELOG.md, you can resolve it easily using the GitHub web editor:
For all other merge conflicts, please read: Thank you for contributing! |
Signed-off-by: Akshay Kumar <akshaykumar15031999@gmail.com>
|
Hello, this is the OfficeHourBot. This is a reminder that the Hiero Python SDK Office Hours are scheduled in approximately 4 hours (14:00 UTC). This session provides an opportunity to ask questions regarding this Pull Request. Details:
Disclaimer: This is an automated reminder. Please verify the schedule here for any changes. From, |
|
@AkshayKumarSahu I noticed you have still got this PR to rest and merge, which is essential to be able to complete the next workflow you want to be assigned. I will unassign you from #1721 while you complete this workflow |
Signed-off-by: Akshay Kumar <akshaykumar15031999@gmail.com>
Sure go ahead, meanwhile i am testing the changes |
|
HI @AkshayKumarSahu were you abel to test this, adn do you have screenshots or links to show? |
gonna work on this today |
|
Hii @AkshayKumarSahu Thanks for contribution and efforts. Please have a look on comment posted by |
|
Hi @AkshayKumarSahu do you need any help with the testing please? |
…n.sh - Add TEST_DOCUMENTATION.md: Complete test documentation with all test cases - Add TEST_EXECUTION_DETAILED.md: Detailed execution report with inputs/outputs - Add TEST_QUICK_REFERENCE.md: Quick reference guide for running tests - Add test-execution-log.txt: Raw test execution output (11/11 tests passed) Tests validate the discussion label protection feature that prevents auto-closing PRs labeled with 'discussion' regardless of inactivity.
- Comprehensive test suite with 8 test cases (11 assertions) - Mock system for GitHub CLI commands - Tests discussion label protection feature - All tests passing (11/11) - Includes setup, execution, validation, and cleanup
e branch '1583_1' of https://github.com/AkshayKumarSahu/hiero-sdk-python into 1583_1
Signed-off-by: Akshay Kumar <akshaykumar15031999@gmail.com>
Signed-off-by: Akshay Kumar <akshaykumar15031999@gmail.com>
Signed-off-by: Akshay Kumar <akshaykumar15031999@gmail.com>
|
Hi @AkshayKumarSahu have you read on how to test this on your fork please? docs/sdk_developers/training/testing_forks.md |
Signed-off-by: Akshay Kumar <akshaykumar15031999@gmail.com>
exploreriii
left a comment
There was a problem hiding this comment.
Hi @AkshayKumarSahu would you please update us on the status of this PR?
I see some recent commits and want to check if it is tested on your fork and if you are ready for a review.
Also - i see some of your commits lost their signing DCO status, please check
Thanks
exploreriii
left a comment
There was a problem hiding this comment.
Hi @AkshayKumarSahu
Thanks for creating this and having a good go at the tests
This should be good to go
However, your DCO is not passing
can you check please these two commits are not signed correctly?
https://github.com/hiero-ledger/hiero-sdk-python/pull/1771/checks?check_run_id=65311182170
you can do
i = number of commits you want to soft revert
git reset --soft HEAD~i
then recommit and force push
|
Hi @AkshayKumarSahu as a reminder please rebase, correct the signing, and move your changelog entry to the new unreleased version 👍 |
Description:
Related issue(s):
Fixes #1583
Notes for reviewer:
Checklist