Skip to content

Comments

fix: move issue_label_bot config to correct location and add valid workflow#38

Merged
naheel0 merged 2 commits intomainfrom
copilot/fix-issue-label-yml
Feb 19, 2026
Merged

fix: move issue_label_bot config to correct location and add valid workflow#38
naheel0 merged 2 commits intomainfrom
copilot/fix-issue-label-yml

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

.github/workflows/issue_label_bot.yaml contained only the keyword-matcher config (no on: / jobs:), making it an invalid workflow file. Additionally, the Issue Label Bot GitHub App expects its config at .github/issue_label_bot.yaml, not inside workflows/.

Changes

  • .github/issue_label_bot.yaml — config file added at the correct path for the Issue Label Bot GitHub App to pick up
  • .github/workflows/issue_label_bot.yaml — replaced with a valid GitHub Actions workflow:
    • Triggers on issues: [opened, edited]
    • Uses permissions: issues: write, contents: read (least privilege)
    • Runs a Python script that parses the config and applies matching labels via the GitHub REST API
    • Handles config read errors, YAML parse failures, and GitHub API errors with explicit exit codes
on:
  issues:
    types: [opened, edited]

permissions:
  issues: write
  contents: read

jobs:
  label:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Apply labels based on keywords
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          ...
        run: python3 << 'EOF'
          # reads .github/issue_label_bot.yaml, matches keywords against
          # issue title+body, POSTs matching labels to GitHub API
        EOF

This approach keeps the existing matchers/keywords config format intact and works without any third-party actions or additional secrets.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
readme-gen-ai Ready Ready Preview, Comment Feb 19, 2026 2:22pm

… workflow

Co-authored-by: naheel0 <191262736+naheel0@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with issue-label.yml not working fix: move issue_label_bot config to correct location and add valid workflow Feb 19, 2026
Copilot AI requested a review from naheel0 February 19, 2026 14:23
@naheel0 naheel0 marked this pull request as ready for review February 19, 2026 14:33
@naheel0 naheel0 requested a review from adithyanmkd as a code owner February 19, 2026 14:33
@naheel0 naheel0 merged commit 3cf4d2a into main Feb 19, 2026
6 checks passed
@naheel0 naheel0 deleted the copilot/fix-issue-label-yml branch February 19, 2026 14:35
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