Repository navigation
ci: check-version.sh compares with HEAD^1, counts build.yml as build, no-release label (#68, #69) - #71
Conversation
PR Summary by QodoFix PR version checks and support the no-release label
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
…efinition counts (review)
|
Review follow-ups, e933f1c:
Checked locally in Docker on a scratch clone, 14 cases: a second /review |
Closes #68. Closes #69.
.github/check-version.sh:HEAD^1, the base side of the pull request's merge commit, as OpenIPC/vtesse, OpenIPC/cerberus and OpenIPC/decoder do (wasorigin/$BASE);.github/workflows/build.ymlas build: a workflow edit that changes the build needs a new version like a change toci/;CAMEX_VERSIONdefinition, however it is spaced (# definecounts too), in the plain form the release job reads; checks the format only when the version changes;NO_RELEASE=true(theno-releaselabel) lets a change to the code or the build through without a new version when the release files stay the same, as in ci: a no-release label lets a change that keeps the binaries skip the version; review follow-ups cerberus#39.The check moves from
build.ymlto a workflow of its own,.github/workflows/version.yml, which runs onlabeled/unlabeledtoo and passesNO_RELEASEfrom the label: adding or removing a label re-runs only the check, not the builds.version.ymlis CI and needs no new version;build.ymlcounts as build.This pull request changes only the check and the workflow, so it carries
no-releaseitself.Checked locally in Docker (a scratch clone, 14 cases): a code change without a bump fails, with
NO_RELEASE=truepasses; a workflow-only change fails, with the label passes; Markdown undersrc/and other.github/files pass; a bump with its CHANGELOG section passes; a bump without one, a bad format (03.0.3), a lower version, two definitions (also as# define) and only a spaced definition fail; aversion.ymlchange passes. shellcheck v0.10.0 clean; the workflow parses as YAML.