Skip to content

refactor: Expand and refactor next-issue-recommendation bot#1997

Draft
parvninama wants to merge 10 commits intohiero-ledger:mainfrom
parvninama:refactor/bot-next-issue-recommendation
Draft

refactor: Expand and refactor next-issue-recommendation bot#1997
parvninama wants to merge 10 commits intohiero-ledger:mainfrom
parvninama:refactor/bot-next-issue-recommendation

Conversation

@parvninama
Copy link
Copy Markdown
Member

@parvninama parvninama commented Mar 17, 2026

Changes:

  • Introduced structured difficulty system

    • Added LEVEL_ORDER, LEVEL_LABEL_ALIASES, and LEVEL_CONFIG to standardize difficulty handling
    • Supports multiple label variants (e.g., skill: beginner) for better compatibility
  • Dynamic difficulty progression

    • Determines the completed issue level based on labels
    • Recommends issues from:
      • the next level (if eligible)
      • the same level
      • the previous level (fallback)
    • Uses contribution history (getUserLevelProgress) to gate progression
  • Expanded issue discovery across repositories

    • Added getSupportedRepos to dynamically fetch non-archived, non-fork repos
    • Recommendations are no longer limited to the current repository
  • Improved recommendation strategy

    • Introduced gatherCandidateIssues with a sequential fallback approach
    • Stops at the first non-empty result set
    • Prioritization ensures more relevant recommendations
  • Deduplication and filtering improvements

    • Ensures:
      • no duplicate recommendations (html_url check)
      • already referenced issues are excluded
  • More flexible search queries

    • Updated searchIssues to support:
      • multiple repositories
      • multiple label aliases using OR-based queries
  • Improved fallback behavior

    • Clearly distinguishes fallback scenarios (previous-level recommendations only)
    • Ensures consistent recommendation labeling based on detected issue level
  • Logging improvements

    • Reduced noise by switching some logs to core.debug

Testing:

  • In progress

Linked Issue :

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1997   +/-   ##
=======================================
  Coverage   93.68%   93.68%           
=======================================
  Files         144      144           
  Lines        9350     9350           
=======================================
  Hits         8760     8760           
  Misses        590      590           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@parvninama parvninama added status: in initial development github_actions Pull requests that update Github Actions code. labels Mar 19, 2026
dependabot bot and others added 3 commits March 22, 2026 02:44
…iero-ledger#1989)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ability

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

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,
The Python SDK Team

Signed-off-by: parvninama <ninamaparv@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update Github Actions code. status: in initial development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Advanced]: Expand and Refactor .github/scripts/bot-next-issue-recommendation.js

1 participant