Summary
decisions/0022-issue-traceability-on-pull-requests.md was accepted in
z-shell/.github#594 and
implemented for the organization repository in z-shell/.github#600 and
z-shell/.github#601. This repository carries the same commit-lint.yml jobs
with their patterns inlined, so it needs the matching change or the two copies
drift, which ADR-0022 step 5 explicitly warns about.
What changes
-
Validate Branch Name becomes a shape check. The identifier stops being
mandatory:
^((feature|bug|hotfix)-[1-9][0-9]*(-[a-z0-9]+)*
|(feat|fix|perf|refactor|docs|test|build|ci|style|chore|revert|feature|bug|hotfix)/[a-z0-9]+(-[a-z0-9]+)*)$
feature-<id> stays valid and recommended. next keeps its
persistent-integration exemption under
decisions/0019-trunk-on-main-default.md, and the automation prefixes are
unchanged.
-
Validate Issue Link is added, matching the organization copy. It passes
on an automation branch, a meta:no-issue label, or an issue reference in
the pull-request body, and reports which applied. It reads only the
pull_request event payload, so it needs no token.
Prerequisite
meta:no-issue has to exist as a label in this repository before the exemption
path is usable. It is declared in the organization catalog at
z-shell/.github:lib/labels.yml.
Note
code is not in the decisions/0003-conventional-commits.md type set, so
code/ branches remain rejected here as they do in the organization
repository. That was the accepted scope of ADR-0022.
Parent: z-shell/.github#595
Summary
decisions/0022-issue-traceability-on-pull-requests.mdwas accepted inz-shell/.github#594 and
implemented for the organization repository in z-shell/.github#600 and
z-shell/.github#601. This repository carries the same
commit-lint.ymljobswith their patterns inlined, so it needs the matching change or the two copies
drift, which ADR-0022 step 5 explicitly warns about.
What changes
Validate Branch Namebecomes a shape check. The identifier stops beingmandatory:
feature-<id>stays valid and recommended.nextkeeps itspersistent-integration exemption under
decisions/0019-trunk-on-main-default.md, and the automation prefixes areunchanged.
Validate Issue Linkis added, matching the organization copy. It passeson an automation branch, a
meta:no-issuelabel, or an issue reference inthe pull-request body, and reports which applied. It reads only the
pull_requestevent payload, so it needs no token.Prerequisite
meta:no-issuehas to exist as a label in this repository before the exemptionpath is usable. It is declared in the organization catalog at
z-shell/.github:lib/labels.yml.Note
codeis not in thedecisions/0003-conventional-commits.mdtype set, socode/branches remain rejected here as they do in the organizationrepository. That was the accepted scope of ADR-0022.
Parent: z-shell/.github#595