Skip to content

refactor: Consolidate issue assignment workflows#2458

Draft
parvninama wants to merge 11 commits into
hiero-ledger:mainfrom
parvninama:refactor/bot-assignment
Draft

refactor: Consolidate issue assignment workflows#2458
parvninama wants to merge 11 commits into
hiero-ledger:mainfrom
parvninama:refactor/bot-assignment

Conversation

@parvninama

@parvninama parvninama commented Jul 21, 2026

Copy link
Copy Markdown
Member

Summary:

This PR refactors the issue assignment automation into a reusable, configuration-driven workflow that supports multiple skill levels without duplicating logic.

Instead of maintaining separate assignment guards for each difficulty level, the assignment flow now resolves repository configuration and prerequisites dynamically from config.js, making it easier to extend and maintain.

Changes:

  • Introduced a shared assignment engine (runAssignmentFlow) to handle all /assign requests.
  • Moved repository labels, skill hierarchy, and prerequisite rules into configuration.
  • Added generic prerequisite enforcement based on configured skill levels.
  • Added one-time reminder comments for contributors who express interest without using /assign.
  • Added reusable comment builders and spam-handling helpers.
  • Centralized GitHub API interactions into shared helper modules.
  • Prerequisite validation now happens before assigning an issue, preventing invalid assignments instead of removing assignees afterward.
  • Assignment limits and spam restrictions are enforced as part of the /assign workflow.
  • Manual assignments made by maintainers are intentionally not overridden. The workflow governs contributor-initiated /assign requests, while maintainer assignments are treated as trusted actions.

Tests:

  • In progress

Linked Issue:

Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
@github-actions

Copy link
Copy Markdown
Hi @parvninama, 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.
If this PR remains unlinked, it will be automatically closed.

Please link an issue using the following format:

Fixes #123

📖 Guide:
docs/sdk_developers/how_to_link_issues.md

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

Thanks!

@github-actions github-actions Bot added approved Issue has been approved by team member scope: CI/CD involves continuous integration or delivery skill: intermediate requires some knowledge of the codebase with some defined steps to implement or examples labels Jul 21, 2026
Signed-off-by: Parv Ninama <ninamaparv@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Issue has been approved by team member scope: CI/CD involves continuous integration or delivery skill: intermediate requires some knowledge of the codebase with some defined steps to implement or examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate Issue Assignment Workflows

1 participant