From 075c4b217990d3adb384bbfe45a5c46b512ca988 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Mon, 17 Aug 2026 19:02:25 +0200 Subject: [PATCH] Wire the 4.x branch into Dependabot and Release Drafter Dependabot reads its configuration only from the default branch, so the 4.x entries have to live here rather than on 4.x; without an explicit target-branch the existing entries covered master alone. Release Drafter now takes an explicit per-line config so the two branches draft separate releases: master versions as 5.x, 4.x as 4.x, each filtered by commitish. Both configs are kept here as well as on their own branch, matching plexus-xml. --- .github/dependabot.yml | 15 +++++++++++++++ .github/release-drafter-4.x.yml | 5 +++++ .github/release-drafter-master.yml | 5 +++++ .github/workflows/release-drafter.yml | 4 +++- 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/release-drafter-4.x.yml create mode 100644 .github/release-drafter-master.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b76b89570..3cbe59860 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,9 +2,24 @@ version: 2 updates: - package-ecosystem: "maven" directory: "/" + target-branch: "master" schedule: interval: "daily" + + - package-ecosystem: "maven" + directory: "/" + target-branch: "4.x" + schedule: + interval: "daily" + + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "master" + schedule: + interval: "daily" + - package-ecosystem: "github-actions" directory: "/" + target-branch: "4.x" schedule: interval: "daily" diff --git a/.github/release-drafter-4.x.yml b/.github/release-drafter-4.x.yml new file mode 100644 index 000000000..971f0d84d --- /dev/null +++ b/.github/release-drafter-4.x.yml @@ -0,0 +1,5 @@ +_extends: .github:.github/release-drafter.yml +tag-template: plexus-archiver-$NEXT_PATCH_VERSION +version-template: 4.$MINOR.$PATCH +commitish: 4.x +filter-by-commitish: true diff --git a/.github/release-drafter-master.yml b/.github/release-drafter-master.yml new file mode 100644 index 000000000..f4b1b2229 --- /dev/null +++ b/.github/release-drafter-master.yml @@ -0,0 +1,5 @@ +_extends: .github:.github/release-drafter.yml +tag-template: plexus-archiver-$NEXT_PATCH_VERSION +version-template: 5.$MINOR.$PATCH +commitish: master +filter-by-commitish: true diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1fa3b5ce1..82a56f138 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,4 +1,4 @@ -name: Release Drafter +name: Release Drafter Master on: push: branches: @@ -8,5 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: release-drafter/release-drafter@v7.7.0 + with: + config-name: 'release-drafter-master.yml' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}