fix: skip inactivity close for PRs with discussion label#1673
fix: skip inactivity close for PRs with discussion label#1673shrav-jally wants to merge 5 commits intohiero-ledger:mainfrom
Conversation
|
Hi @shrav-jally, this is **LinkBot** 👋
Linking pull requests to issues helps us significantly with reviewing pull requests and keeping the repository healthy. 🚨 This pull request does not have an issue linked. Please link an issue using the following format: 📖 Guide: If no issue exists yet, please create one: Thanks! |
There was a problem hiding this comment.
Pull request overview
Updates the inactivity bot script to avoid auto-closing PRs that are intentionally paused for discussion by detecting a discussion label and skipping Phase 2 close/unassign actions for those PRs.
Changes:
- Added a
discussionlabel check for linked PRs before performing inactivity close/unassign actions. - Minor cleanup of inline comments and a small formatting tweak at the end of the script.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
WalkthroughA CHANGELOG entry is added documenting that the inactivity bot now skips closing pull requests labeled with Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~1 minute 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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 |
Akshat8510
left a comment
There was a problem hiding this comment.
Hi @shrav-jally , Please add a line to CHANGELOG.md under the ### Changed. You can follow the guide here : https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/sdk_developers/changelog_entry.md
exploreriii
left a comment
There was a problem hiding this comment.
Thank you @shrav-jally please add a changelog entry 👍
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
CHANGELOG.md (1)
138-144:⚠️ Potential issue | 🟡 MinorDuplicate "### Changed" section headers detected.
The
[Unreleased]section contains two### Changedheaders (lines 138 and 144). According to Keep a Changelog format (which this project follows per line 5), each section type should appear only once per release. This duplication makes the changelog harder to parse and violates the standard format.📝 Proposed fix: Consolidate into a single "### Changed" section
The solution is to merge all entries under a single
### Changedheader. Since line 139 is the new entry being added, you should:
- Remove the duplicate
### Changedheader at line 144- Move all entries currently under the second
### Changedsection to be under the first one (line 138)This will create a single, consolidated
### Changedsection that includes both the new inactivity bot entry and all existing changed items.
|
Fixed the changelog spacing nit. Thanks! |
exploreriii
left a comment
There was a problem hiding this comment.
This is great to go once the changelog is fixed! thank you
|
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! |
aceppaluni
left a comment
There was a problem hiding this comment.
@shrav-jally Thank you for your contribution!
If you have questions on the changelog let us know. We're happy to help!
Signed-off-by: Shravya Jallepally <jallepally0.0shravya@gmail.com>
Signed-off-by: Shravya Jallepally <jallepally0.0shravya@gmail.com>
Signed-off-by: Shravya Jallepally <jallepally0.0shravya@gmail.com>
Signed-off-by: Shravya Jallepally <jallepally0.0shravya@gmail.com>
Signed-off-by: Shravya Jallepally <jallepally0.0shravya@gmail.com>
95f4c53 to
1701a1c
Compare
|
Hi @shrav-jally, it looks like something went wrong with the latest push. I noticed that the logic changes in |
exploreriii
left a comment
There was a problem hiding this comment.
Hi @shrav-jally
Apologies as pointed out by @Akshat8510 something is going wrong here
it appears you may have merging two PRs together, and in that processs, lost the original file changed that was relevant to the discussion issue
note here the PRs related to black formatting =/=discussion Prs

exploreriii
left a comment
There was a problem hiding this comment.
Hi @shrav-jally
Are you still planning on working on this issue?
Note we are unable to progress with your PR as it currently is a blank PR with just a changelog entry
|
Hi @shrav-jally |
Adds a check in bot-inactivity-unassign.sh to skip closing and unassigning pull requests that contain the
discussionlabel.This prevents valid PRs that are parked for discussion from being auto-closed by the inactivity bot.
Fixes #1583