This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4e30277efd Improved: Label pull requests titled "Bump ..." as
dependencies so that the release notes leave them out (OFBIZ-13696)
4e30277efd is described below
commit 4e30277efddb1e3493d112ba2ed73195afa7a0ea
Author: Mridul Pathak <[email protected]>
AuthorDate: Sun Oct 18 02:36:49 2026 +0530
Improved: Label pull requests titled "Bump ..." as dependencies so that the
release notes leave them out (OFBIZ-13696)
Dependency updates made by hand instead of by Dependabot now get the
dependencies label from the PR Type Label workflow, so that the release notes
GitHub generates leave them out like the Dependabot pull requests.
---
.github/README-CI-CD.md | 2 +-
.github/workflows/pr-type-label.yml | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/README-CI-CD.md b/.github/README-CI-CD.md
index 3cee9cc143..30a7bddc2e 100644
--- a/.github/README-CI-CD.md
+++ b/.github/README-CI-CD.md
@@ -27,7 +27,7 @@
→ Trigger: push / PR on `.github/` path
- `pr-type-label.yml`
- Sets the type label (`bug`, `enhancement`, `feature`, `documentation`) of a
PR from its title prefix (Fixed, Improved, Implemented, Documented), so that
`release.yml` can group the release notes
+ Sets the type label (`bug`, `enhancement`, `feature`, `documentation`) of a
PR from its title prefix (Fixed, Improved, Implemented, Documented), so that
`release.yml` can group the release notes, and the `dependencies` label to the
PRs titled "Bump ..."
→ Trigger: PR opened, reopened or retitled on `trunk` and `release*` +
manual run to label merged PRs
### Workflow behavior
diff --git a/.github/workflows/pr-type-label.yml
b/.github/workflows/pr-type-label.yml
index db11eb7fca..f3b584329c 100644
--- a/.github/workflows/pr-type-label.yml
+++ b/.github/workflows/pr-type-label.yml
@@ -20,6 +20,8 @@
# Sets the type label (bug, enhancement, feature, documentation) of a pull
# request from the prefix of its title, so that the release notes GitHub
# generates (see .github/release.yml) can group pull requests by type.
+# Dependency updates titled "Bump ..." get the dependencies label, which
+# leaves them out of the release notes like the Dependabot pull requests.
# It never checks out nor runs code of the pull request.
# Run it manually (workflow_dispatch) to label pull requests already merged.
@@ -65,6 +67,7 @@ jobs:
[/^(improved|completed)(?=[\s:])/i, 'enhancement'],
[/^implemented(?=[\s:])/i, 'feature'],
[/^documented(?=[\s:])/i, 'documentation'],
+ [/^bump(?=[\s:])/i, 'dependencies'],
];
// e.g. "Backport PR #1360: 'Fixed: ...'", "Backport pr 1157
(Improved: ...)", "Backported: ..."
const BACKPORT =
/^backport(?:ed)?\b\s*(?:pr\b)?\s*#?\s*(\d*)\s*[:\-–]?\s*['"(]?\s*/i;