Fix Auto Label PRs: migrate labeler config to actions/labeler@v5 schema#7
Fix Auto Label PRs: migrate labeler config to actions/labeler@v5 schema#7
Conversation
Co-authored-by: naheel0 <191262736+naheel0@users.noreply.github.com>
|
@copilot resolve the conflicts |
The conflict exists because PR #6 was merged into I'm unable to pull from GitHub to resolve the merge conflict in this environment. Could you please merge
# Auto-label rules based on files changed in a PR
first-contribution:
- changed-files:
- any-glob-to-any-file:
- "Contributors.md"
documentation:
- changed-files:
- any-glob-to-any-file:
- "*.md"
- "docs/**"
github-config:
- changed-files:
- any-glob-to-any-file:
- ".github/**"
|
|
@copilot which one current or incoming? |
Keep the incoming changes (this branch's version) for both files. That's the correct v5 schema fix. Discard the "current" (main) versions which have the old v4 flat-glob schema that causes the error. |
actions/labeler@v5requires each label key to map to an array of config objects; the old config used the v4 flat-glob schema, causing a fatal parse error on every PR.Changes
.github/labeler.yml— Rewrote all label rules from bare glob arrays to the v5changed-files/any-glob-to-any-filestructure, preserving identical match intent.github/workflows/labeler.yml— Added the missing workflow file that invokesactions/labeler@v5withsync-labels: falseanddot: trueSchema change
Original prompt
This pull request was created from Copilot chat.
💡 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.