Skip to content

Add GitHub Actions workflow for issue labeling - #338

Merged
404-Page-Found merged 1 commit into
mainfrom
ci/issue-label-workflow
Oct 2, 2026
Merged

404-Page-Found merged 1 commit into
mainfrom
ci/issue-label-workflow

Conversation

@404-Page-Found

@404-Page-Found 404-Page-Found commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

This pull request introduces a new GitHub Actions workflow to automate issue labeling using the OpenCode AI tool. The workflow is triggered when an issue is opened or manually via workflow dispatch, and it applies appropriate labels to issues by analyzing their content and the repository's existing labels.

New Issue Labeling Workflow:

  • Workflow Automation:

    • Adds a new workflow .github/workflows/issue-label.yml that automatically labels issues when they are opened or when triggered manually.
  • Integration with OpenCode AI:

    • Installs and uses the opencode-ai tool to analyze issue content and select the most fitting labels from the repository’s existing label set.
    • Passes strict permissions to ensure the workflow can only view and edit issue labels, with no ability to comment, edit files, or access the web.
  • Label Selection Logic:

    • Fetches the current list of labels, reads the issue’s title and body, and applies 1-3 of the most relevant labels, following clear rules to avoid creating or removing labels.
  • Manual Trigger Support:

    • Supports manual relabeling of issues via workflow dispatch with an issue_number input.

Review in cubic

Summary by CodeRabbit

  • New Features
    • Issues can now be automatically labeled when opened, with an option to run labeling manually for a specific issue. The workflow applies up to three relevant existing labels and leaves the issue unchanged when no label is a clear fit.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: bd7a9076-74cc-4d58-aa98-ea15a65e8402

📥 Commits

Reviewing files that changed from the base of the PR and between aeea638 and cc623c3.

📒 Files selected for processing (1)
  • .github/workflows/issue-label.yml
 ___________________________________________
< GPU-powered code review. It's the future. >
 -------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
2 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Comment thread .github/workflows/issue-label.yml Dismissed
Comment thread .github/workflows/issue-label.yml Dismissed
@404-Page-Found
404-Page-Found merged commit d9e69b7 into main Oct 2, 2026
6 of 7 checks passed
@404-Page-Found
404-Page-Found deleted the ci/issue-label-workflow branch October 2, 2026 02:23
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.

2 participants