Skip to content

ci: migrate release-drafter config to the category-based format - #67

Merged
shenxianpeng merged 1 commit into
mainfrom
chore/migrate-release-drafter-config
Oct 15, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
chore/migrate-release-drafter-config

Conversation

@shenxianpeng

Copy link
Copy Markdown
Member

Every Release Drafter run in the org now emits ten warnings like:

Use of deprecated 'categories[].label' or 'categories[].labels' field detected … This field will be removed in a future release. To migrate, move the labels into the category's 'when' condition. Migration documentation: release-drafter/release-drafter#1558

This migrates the shared config to the current category model, with no change in behaviour:

  • categories[*].labels → categories[*].when.labels
  • exclude-labels → a type: pre-exclude category
  • version-resolver → type: version-resolver categories, with the last one (no when) as the default: patch fallback
  • ✍ Other changes keeps no when and therefore stays the catch-all for uncategorised PRs

The result validates against release-drafter's schema.json.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

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

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b774ffc3-b3f1-401c-9650-779e1e2e44a8
📥 Commits

Reviewing files that changed from the base of the PR and between 1fa5620 and f7d0861.

📒 Files selected for processing: 1
  • .github/release-drafter.yml
+----------------------------------------------------------------------------------------------------------------------------------------------------+
| There are no final decisions. No decision is cast in stone. Instead, consider each as being written in the sand at the beach, and plan for change. |
+----------------------------------------------------------------------------------------------------------------------------------------------------+
  \
   \     /)/)
        ( '')
        /  |
      o(___)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions

Copy link
Copy Markdown

Commit Check

✅ All 3 checks passed

Show all 3 checks
Commit message
  ✔ PR title (ci: migrate release-drafter config to the category-based ...)
  ✔ Commit 1/1 (f7d0861) (ci: migrate release-drafter config to the category-based ...)
Branch
  ✔ Branch (chore/migrate-release-drafter-config)

commit-check 2.18.3 · Rules reference

@shenxianpeng
shenxianpeng merged commit b02c3b6 into main Oct 15, 2026
1 of 2 checks passed
@shenxianpeng
shenxianpeng deleted the chore/migrate-release-drafter-config branch October 15, 2026 20:48
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.

1 participant