You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/github-actions.rst
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,13 @@ wrapper in ``resources/github-actions/changelog.yml``.
168
168
* Runs ``composer dev-tools changelog:check -- --against=<base-ref>`` against the base ref.
169
169
* Fails when a normal non-release branch does not add a meaningful ``Unreleased`` change.
170
170
* Skips the validation job for pull requests whose head branch matches the configured ``release-branch-prefix``, because release-preparation branches intentionally leave ``Unreleased`` empty after promotion.
171
+
* Publishes the aggregate changelog check for every active pull request.
172
+
Direct workflow invocation uses ``Changelog Validation``; reusable
173
+
workflow consumers typically expose it namespaced as
174
+
``changelog / Changelog Validation``. This is the branch-protection-safe
175
+
context to require: it fails when normal changelog validation fails and
176
+
succeeds for release-preparation branches where validation is
177
+
intentionally skipped.
171
178
* Appends a run summary with the compared base ref and changelog file.
172
179
* **Manual Release Preparation**:
173
180
* Checks out the repository default branch with full history.
@@ -200,6 +207,15 @@ wrapper in ``resources/github-actions/changelog.yml``.
200
207
* Under **Workflow permissions**, enable **Read and write permissions**.
201
208
* Enable **Allow GitHub Actions to create and approve pull requests**.
202
209
* If either control is disabled or grayed out, the repository is likely constrained by organization-level policy or missing admin permission. In that case, an organization or repository admin must unlock the setting before manual release preparation can open a release pull request.
210
+
* In branch protection, require the changelog workflow's aggregate context:
211
+
212
+
- Direct workflow invocation: ``Changelog Validation``
Use this instead of the internal ``changelog / Validate PR Changelog`` job.
216
+
The internal job is intentionally skipped for release-preparation branches,
217
+
while the aggregate context stays stable for normal and release pull
218
+
requests.
203
219
204
220
.. note::
205
221
Branch protection is not what blocks the release-preparation workflow from opening a pull request. Branch protection affects the merge of the ``release/v...`` pull request later in the flow. The gray or disabled workflow-permission controls come from repository permissions or organization policy.
0 commit comments