Skip to content

chore(ci): migrate release-drafter to when and build OAS from the release tag#15264

Merged
Maffooch merged 1 commit into
bugfixfrom
chore/ci-release-drafter-when-and-oas-tag
Jul 17, 2026
Merged

chore(ci): migrate release-drafter to when and build OAS from the release tag#15264
Maffooch merged 1 commit into
bugfixfrom
chore/ci-release-drafter-when-and-oas-tag

Conversation

@Maffooch

@Maffooch Maffooch commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

[sc-13706]

What

Two release-pipeline fixes surfaced by running the Pro release.sh:

  1. release-drafter deprecation — v7.5.1 warns that categories[*].label / categories[*].labels are deprecated and slated for removal. Migrated every category to the equivalent when: condition per the upstream migration. No change to how PRs are categorized.
  2. OAS built from the wrong reffetch-oas.yml checked out release/x.y.z (the pre-merge release branch) to generate the OpenAPI schema, while the release images are built from the tag (release-x-manual-docker-containers.yml uses ref: <release_number>). Changed fetch-oas.yml to check out the tag so the published schema matches the released images.

Why

Clears the update_release_draft deprecation warning and keeps the OAS consistent with the exact code the release images ship.

Notes

Only django-DefectDojo runs release-drafter v7 (other repos are on v5, where these fields are still valid and when is unsupported), so this migration is scoped to this repo.

🤖 Generated with Claude Code

… from the tag

release-drafter v7 deprecated the top-level `categories[*].label` /
`categories[*].labels` fields; move each into the category's `when`
condition to clear the deprecation warning (removal is planned upstream).

Also generate the OpenAPI schema from the release tag instead of the
`release/x.y.z` branch, so the OAS matches the exact ref the release
docker images are built from (release-x-manual-docker-containers.yml
already checks out the tag).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Maffooch
Maffooch requested a review from blakeaowens as a code owner July 16, 2026 16:52
@Maffooch Maffooch added this to the 3.1.200 milestone Jul 16, 2026
@Maffooch
Maffooch requested a review from Jino-T July 16, 2026 21:28
@Maffooch
Maffooch merged commit 5ffdf8a into bugfix Jul 17, 2026
150 checks passed
@Maffooch
Maffooch deleted the chore/ci-release-drafter-when-and-oas-tag branch July 17, 2026 16:36
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.

3 participants