Skip to content

Conversation

@cxhello
Copy link
Contributor

@cxhello cxhello commented Jan 4, 2026

Summary

Remove "-phase" suffix from bot-inactivity workflow files since the process no longer uses phased execution.

  • .github/scripts/bot-inactivity-unassign-phase.shbot-inactivity-unassign.sh
  • .github/workflows/bot-inactivity-unassign-phase.ymlbot-inactivity-unassign.yml
  • Updated script call path in workflow file

Related Issue

Closes #1339

Test plan

  • All workflow files are correctly renamed
  • Script call path is updated in workflow
  • Git history preserved via git mv

Remove "-phase" suffix from bot-inactivity workflow files since the
process no longer uses phased execution.

- .github/scripts/bot-inactivity-unassign-phase.sh -> bot-inactivity-unassign.sh
- .github/workflows/bot-inactivity-unassign-phase.yml -> bot-inactivity-unassign.yml
@github-actions
Copy link

github-actions bot commented Jan 4, 2026

[commit-verification-bot]
Hi, this is VerificationBot.
Your pull request cannot be merged as it has unverified commits.
View your commit verification status: Commits Tab.

To achieve verified status, please read:

Remember, you require a GPG key and each commit must be signed with:
git commit -S -s -m "Your message here"

Thank you for contributing!

From the Hiero Python SDK Team

@coderabbitai
Copy link

coderabbitai bot commented Jan 4, 2026

📝 Walkthrough

Walkthrough

The workflow configuration file was renamed from bot-inactivity-unassign-phase.yml to bot-inactivity-unassign.yml, and the script reference within it was updated to call the correspondingly renamed script bot-inactivity-unassign.sh instead of bot-inactivity-unassign-phase.sh. The DRY_RUN evaluation remains unchanged.

Changes

Cohort / File(s) Summary
Workflow script reference update
.github/workflows/bot-inactivity-unassign.yml
Updated the script invocation to reference the renamed script bot-inactivity-unassign.sh instead of the previous bot-inactivity-unassign-phase.sh; DRY_RUN variable evaluation unchanged
Script file rename
.github/scripts/bot-inactivity-unassign.sh
File renamed from bot-inactivity-unassign-phase.sh to remove outdated phase naming convention

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks

✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: renaming bot-inactivity workflow files by removing the '-phase' suffix, which is clear and directly reflects the changeset.
Description check ✅ Passed The description is well-related to the changeset, explaining the rationale for renaming the files and detailing the specific files affected and test plan.
Linked Issues check ✅ Passed The PR meets the core coding requirements of #1339: both files are renamed and the script call path is updated in the workflow, though non-coding requirements like changelog entry and signed commits cannot be verified from provided context.
Out of Scope Changes check ✅ Passed All changes are in scope and directly address the linked issue objectives: file renaming and updating script references with no extraneous modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ab1c569 and 9bc679b.

📒 Files selected for processing (2)
  • .github/scripts/bot-inactivity-unassign.sh
  • .github/workflows/bot-inactivity-unassign.yml
🧰 Additional context used
📓 Path-based instructions (1)
.github/workflows/**/*

⚙️ CodeRabbit configuration file

.github/workflows/**/*: Review workflows as security-sensitive infrastructure.

A good workflow is small, focused, and boring.
If a workflow is clever, generic, or overly flexible, it is a risk.


PRIORITY 0 — ABSOLUTE REQUIREMENTS

  • All third-party actions MUST be pinned to full commit SHAs, similar to other workflows.
  • permissions: MUST be explicitly declared and minimally scoped.
  • Workflows MUST behave safely when executed from forks.
  • YAML MUST orchestrate steps, not implement business logic.
  • Any workflow that mutates GitHub state MUST support dry-run mode.
  • Dry-run behavior must be explicit and visible in logs.
  • Workflows MUST NOT modify repository source code outside .github/.

PRIORITY 1 — SCOPE, FOCUS & RESTRAINT

  • The title of each workflow must be relevant, match similar naming schemes, and match its script filename.
  • Each workflow MUST have a single, clearly defined objective and SHOULD document this in a top-level comment.
  • Flag workflows that:
    • Attempt to be generic “frameworks”
    • Include speculative or future-facing logic
    • Perform actions unrelated to the stated goal
  • Over-abstraction and excess flexibility are maintenance risks.

PRIORITY 2 — INPUT HARDENING

  • Treat ALL GitHub event data as potentially hostile input, including:
    • issue titles, bodies, and comments
    • labels, usernames, branch names
  • Free-form user input MUST NOT be passed directly into:
    • shell commands
    • gh CLI arguments
    • Node.js exec / spawn calls
  • Require strict allowlists or exact string matches.
  • Flag any use of:
    • eval or bash -c
    • backticks or $(...) with user-controlled input

------------------...

Files:

  • .github/workflows/bot-inactivity-unassign.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
.github/workflows/bot-inactivity-unassign.yml (1)

41-41: LGTM! Script path correctly updated.

The script reference has been properly updated to match the renamed file, removing the "-phase" suffix as intended. The change aligns with the PR objectives.


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

@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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
.github/workflows/bot-inactivity-unassign.yml (2)

32-32: Update the step name and comment to reflect removal of phased execution.

The comment still references "Phase 1 + Phase 2," which is inconsistent with this PR's objective of removing phase-related terminology since the workflow no longer uses phased execution.

🔎 Proposed fix
-      - name: Run unified inactivity bot (Phase 1 + Phase 2)
+      - name: Run inactivity bot

19-22: Consider adding a concurrency group to prevent overlapping runs.

This workflow mutates GitHub state (unassigning, commenting, closing issues/PRs). Without a concurrency group, scheduled runs could overlap or workflow_dispatch could run concurrently with a scheduled execution, potentially causing race conditions or duplicate actions.

🔎 Recommended addition

Add after the permissions: block and before jobs::

concurrency:
  group: bot-inactivity-unassign
  cancel-in-progress: false

Setting cancel-in-progress: false ensures that if a run is already in progress, new runs will queue rather than cancel the active run, preventing incomplete state mutations.

As per coding guidelines: "Workflows that mutate state MUST define a deterministic concurrency group."

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ab1c569 and 9bc679b.

📒 Files selected for processing (2)
  • .github/scripts/bot-inactivity-unassign.sh
  • .github/workflows/bot-inactivity-unassign.yml
🧰 Additional context used
📓 Path-based instructions (1)
.github/workflows/**/*

⚙️ CodeRabbit configuration file

.github/workflows/**/*: Review workflows as security-sensitive infrastructure.

A good workflow is small, focused, and boring.
If a workflow is clever, generic, or overly flexible, it is a risk.


PRIORITY 0 — ABSOLUTE REQUIREMENTS

  • All third-party actions MUST be pinned to full commit SHAs, similar to other workflows.
  • permissions: MUST be explicitly declared and minimally scoped.
  • Workflows MUST behave safely when executed from forks.
  • YAML MUST orchestrate steps, not implement business logic.
  • Any workflow that mutates GitHub state MUST support dry-run mode.
  • Dry-run behavior must be explicit and visible in logs.
  • Workflows MUST NOT modify repository source code outside .github/.

PRIORITY 1 — SCOPE, FOCUS & RESTRAINT

  • The title of each workflow must be relevant, match similar naming schemes, and match its script filename.
  • Each workflow MUST have a single, clearly defined objective and SHOULD document this in a top-level comment.
  • Flag workflows that:
    • Attempt to be generic “frameworks”
    • Include speculative or future-facing logic
    • Perform actions unrelated to the stated goal
  • Over-abstraction and excess flexibility are maintenance risks.

PRIORITY 2 — INPUT HARDENING

  • Treat ALL GitHub event data as potentially hostile input, including:
    • issue titles, bodies, and comments
    • labels, usernames, branch names
  • Free-form user input MUST NOT be passed directly into:
    • shell commands
    • gh CLI arguments
    • Node.js exec / spawn calls
  • Require strict allowlists or exact string matches.
  • Flag any use of:
    • eval or bash -c
    • backticks or $(...) with user-controlled input

------------------...

Files:

  • .github/workflows/bot-inactivity-unassign.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
.github/workflows/bot-inactivity-unassign.yml (1)

41-41: LGTM! Script path correctly updated.

The script reference has been properly updated to match the renamed file, removing the "-phase" suffix as intended. The change aligns with the PR objectives.

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 @cxhello
We need a changelog entry and your commits to be signed please 👍
It can be the most difficult part of getting started, so please do let me know if you need help and ask @hiero-ledger/hiero-sdk-good-first-issue-support if you need additional help

@exploreriii exploreriii marked this pull request as draft January 4, 2026 12:12
@cxhello cxhello closed this Jan 4, 2026
@cxhello cxhello deleted the fix/rename-bot-inactivity-files branch January 5, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Good First Issue]: Rename .github/workflows/bot-inactivity-unassign-phase.yml and .github/scripts/bot-inactivity-unassign-phase.sh

2 participants