Skip to content

Consolidate action release flow around semver labels#57

Merged
juan-fernandez merged 5 commits intomainfrom
juan-fernandez/github-release-notes
Apr 27, 2026
Merged

Consolidate action release flow around semver labels#57
juan-fernandez merged 5 commits intomainfrom
juan-fernandez/github-release-notes

Conversation

@juan-fernandez
Copy link
Copy Markdown
Contributor

@juan-fernandez juan-fernandez commented Apr 27, 2026

Summary

  • replace the datadog-ci-specific release script with a single scripts/release-action.sh flow
  • infer the next action release from merged PR labels: semver-patch or semver-minor
  • keep --tag as an explicit override and require --allow-version-mismatch when the requested tag is lower than labels imply
  • update the datadog-ci bump helper to apply datadog-ci-version-bump plus the right semver label
  • add --dry-run to the datadog-ci bump helper
  • document the GitHub CLI requirement and add a PR check that enforces semver release labels
  • remove unnecessary environment-variable configuration from the release scripts

Flow

To bump the default datadog-ci-version, run scripts/create-datadog-ci-bump-pr.sh --dry-run first, then scripts/create-datadog-ci-bump-pr.sh if the preview looks right. The helper checks the latest DataDog/datadog-ci release, updates action.yaml and README.md, opens a PR, and labels it with datadog-ci-version-bump plus either semver-patch or semver-minor.

To release the action after one or more labeled PRs are merged, run scripts/release-action.sh --dry-run, then scripts/release-action.sh if the preview looks right. The release script reads merged PR labels since the latest immutable action tag, chooses the next action version, moves the major tag, and creates a GitHub Release with GitHub-generated notes.

For non-datadog-ci changes, maintainers only need to label the PR with semver-patch or semver-minor; the same release script handles it. --tag remains available for explicit releases, with --allow-version-mismatch required when overriding to a smaller bump than labels imply.

@juan-fernandez juan-fernandez force-pushed the juan-fernandez/github-release-notes branch from 8da3121 to 0f92481 Compare April 27, 2026 14:41
@juan-fernandez juan-fernandez changed the title Use GitHub-generated release notes and add a generic action release script Add generic action release script Apr 27, 2026
@juan-fernandez juan-fernandez added the semver-patch Requests a patch action release after merge label Apr 27, 2026
@juan-fernandez juan-fernandez changed the title Add generic action release script Consolidate action release flow around semver labels Apr 27, 2026
@juan-fernandez juan-fernandez marked this pull request as ready for review April 27, 2026 15:04
@juan-fernandez juan-fernandez requested review from a team as code owners April 27, 2026 15:04
@juan-fernandez juan-fernandez merged commit a5c8ac7 into main Apr 27, 2026
10 checks passed
@juan-fernandez juan-fernandez deleted the juan-fernandez/github-release-notes branch April 27, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch Requests a patch action release after merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants