Skip to content

fix: skip inactivity close for PRs with discussion label#1673

Closed
shrav-jally wants to merge 5 commits intohiero-ledger:mainfrom
shrav-jally:chore/format-query-tests
Closed

fix: skip inactivity close for PRs with discussion label#1673
shrav-jally wants to merge 5 commits intohiero-ledger:mainfrom
shrav-jally:chore/format-query-tests

Conversation

@shrav-jally
Copy link
Contributor

@shrav-jally shrav-jally commented Feb 1, 2026

Adds a check in bot-inactivity-unassign.sh to skip closing and unassigning pull requests that contain the discussion label.
This prevents valid PRs that are parked for discussion from being auto-closed by the inactivity bot.
Fixes #1583

Copilot AI review requested due to automatic review settings February 1, 2026 10:58
@github-actions
Copy link

github-actions bot commented Feb 1, 2026

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:
docs/sdk_developers/how_to_link_issues.md

If no issue exists yet, please create one:
docs/sdk_developers/creating_issues.md

Thanks!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 discussion label 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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 1, 2026

Walkthrough

A CHANGELOG entry is added documenting that the inactivity bot now skips closing pull requests labeled with discussion, preventing auto-closure of valid PRs awaiting discussion.

Changes

Cohort / File(s) Summary
Documentation
CHANGELOG.md
Added entry documenting that the inactivity bot now skips closing pull requests labeled discussion.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~1 minute

🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Linked Issues check ❓ Inconclusive The PR description and changes indicate the objective was to add a check in bot-inactivity-unassign.sh to detect and skip PRs with the 'discussion' label, and to include a changelog entry. However, the raw_summary shows only a CHANGELOG.md modification with no script changes visible, making it unclear if the core implementation requirement was fully met. Verify that .github/scripts/bot-inactivity-unassign.sh was modified to include the label-detection logic and informative logging as specified in issue #1583.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding a check to skip inactivity-triggered closure for PRs labeled with 'discussion'.
Description check ✅ Passed The description is related to the changeset, explaining that a check was added to skip closing/unassigning PRs with the 'discussion' label and referencing the linked issue.
Out of Scope Changes check ✅ Passed The raw_summary shows only CHANGELOG.md was modified, which aligns with the documented requirement to add a changelog entry. No extraneous changes are evident from the provided summary.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Copy link
Member

@Akshat8510 Akshat8510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @shrav-jally please add a changelog entry 👍

@exploreriii exploreriii marked this pull request as draft February 1, 2026 11:57
@shrav-jally shrav-jally marked this pull request as ready for review February 1, 2026 15:05
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 | 🟡 Minor

Duplicate "### Changed" section headers detected.

The [Unreleased] section contains two ### Changed headers (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 ### Changed header. Since line 139 is the new entry being added, you should:

  1. Remove the duplicate ### Changed header at line 144
  2. Move all entries currently under the second ### Changed section to be under the first one (line 138)

This will create a single, consolidated ### Changed section that includes both the new inactivity bot entry and all existing changed items.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Copy link
Member

@Akshat8510 Akshat8510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just fix the tiny spacing nit in the changelog and we’re good.

@shrav-jally
Copy link
Contributor Author

Fixed the changelog spacing nit. Thanks!

Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great to go once the changelog is fixed! thank you

@exploreriii exploreriii marked this pull request as draft February 1, 2026 20:34
@github-actions
Copy link

github-actions bot commented Feb 1, 2026

Hi, this is MergeConflictBot.
Your pull request cannot be merged because it contains merge conflicts.

Please resolve these conflicts locally and push the changes.

Quick Fix for CHANGELOG.md Conflicts

If your conflict is only in CHANGELOG.md, you can resolve it easily using the GitHub web editor:

  1. Click on the "Resolve conflicts" button in the PR
  2. Accept both changes (keep both changelog entries)
  3. Click "Mark as resolved"
  4. Commit the merge

For all other merge conflicts, please read:

Thank you for contributing!

Copy link
Contributor

@aceppaluni aceppaluni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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>
@shrav-jally shrav-jally force-pushed the chore/format-query-tests branch from 95f4c53 to 1701a1c Compare February 2, 2026 16:43
@shrav-jally shrav-jally marked this pull request as ready for review February 2, 2026 16:44
@Akshat8510
Copy link
Member

Hi @shrav-jally, it looks like something went wrong with the latest push. I noticed that the logic changes in .github/scripts/bot-inactivity-unassign.sh (the part that skips the 'discussion' label) have disappeared from the 'Files changed' tab.

Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Image

@exploreriii exploreriii marked this pull request as draft February 2, 2026 19:18
Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@exploreriii exploreriii added the status: pending activity confirmation Developer needs to confirm they are interested in progressing with the PR label Feb 6, 2026
@exploreriii
Copy link
Contributor

Hi @shrav-jally
There has been no activity or updates on this PR for over a week, and it only includes a changelog entry, so I am closign this issue and freeing it up for others to take.
If you want to work on it, please do request to be assigned on the issue again
Thank you

@exploreriii exploreriii closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: pending activity confirmation Developer needs to confirm they are interested in progressing with the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Beginner]: Update .github/scripts/bot-inactivity-unassign.sh to skip if 'discussion' label is added

4 participants