From 3ab2ba852ea2c59c73812c8c022665169783d10d Mon Sep 17 00:00:00 2001 From: Joost Smit Date: Mon, 16 Sep 2024 17:49:24 +0200 Subject: [PATCH 1/4] feat: add release label to created PRs --- action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yaml b/action.yaml index 6cf1243..f715469 100644 --- a/action.yaml +++ b/action.yaml @@ -102,6 +102,7 @@ runs: branch: release/${{ steps.latest.outputs.output }} commit-message: Release ${{ steps.latest.outputs.output }} token: ${{ inputs.github-token }} + labels: release body: | This PR was created by the [Changie release GitHub action](https://github.com/labd/changie-release-action). When you're ready to do a release, you can merge this and the tag ${{ steps.latest.outputs.output }} will be created${{ inputs.release-workflow != '' && format(' and the {0} workflow will be started', inputs.release-workflow) || '' }}. If you're not ready to do a release yet, that's fine, whenever you add more changes to main, this PR will be updated. From bde0471bf0940702a748b732d93b70248a2691db Mon Sep 17 00:00:00 2001 From: Joost Smit Date: Mon, 16 Sep 2024 17:51:04 +0200 Subject: [PATCH 2/4] chore: upgrade create-pull-request to version 7 --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index f715469..30c3341 100644 --- a/action.yaml +++ b/action.yaml @@ -95,7 +95,7 @@ runs: PACKAGE_VERSION: ${{ steps.latest.outputs.output }} - name: Create Pull Request - uses: peter-evans/create-pull-request@v6 + uses: peter-evans/create-pull-request@v7 if: steps.status.outputs.create_release == 'true' with: title: Release ${{ steps.latest.outputs.output }} From 88bc0fd1ecfd1abcde9783f261fc3279f8eb301f Mon Sep 17 00:00:00 2001 From: Joost Smit Date: Tue, 17 Sep 2024 09:15:18 +0200 Subject: [PATCH 3/4] feat: add action input for pull request labels --- action.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 30c3341..f15428e 100644 --- a/action.yaml +++ b/action.yaml @@ -21,6 +21,10 @@ inputs: release-workflow: description: "Name of the release workflow to trigger" required: false + + pull-request-labels: + description: "Comma separated or newline-separated list of labels to add to the pull request" + required: false runs: using: "composite" @@ -102,7 +106,7 @@ runs: branch: release/${{ steps.latest.outputs.output }} commit-message: Release ${{ steps.latest.outputs.output }} token: ${{ inputs.github-token }} - labels: release + labels: ${{ inputs.pull-request-labels }} body: | This PR was created by the [Changie release GitHub action](https://github.com/labd/changie-release-action). When you're ready to do a release, you can merge this and the tag ${{ steps.latest.outputs.output }} will be created${{ inputs.release-workflow != '' && format(' and the {0} workflow will be started', inputs.release-workflow) || '' }}. If you're not ready to do a release yet, that's fine, whenever you add more changes to main, this PR will be updated. From d365503d6fdcea7ecba3cca4873fcdba61f92b4a Mon Sep 17 00:00:00 2001 From: Joost Smit Date: Tue, 17 Sep 2024 09:18:20 +0200 Subject: [PATCH 4/4] chore: added changie change files --- .changes/unreleased/Added-20240917-091722.yaml | 3 +++ .changes/unreleased/Dependency-20240917-091755.yaml | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .changes/unreleased/Added-20240917-091722.yaml create mode 100644 .changes/unreleased/Dependency-20240917-091755.yaml diff --git a/.changes/unreleased/Added-20240917-091722.yaml b/.changes/unreleased/Added-20240917-091722.yaml new file mode 100644 index 0000000..604a237 --- /dev/null +++ b/.changes/unreleased/Added-20240917-091722.yaml @@ -0,0 +1,3 @@ +kind: Added +body: Updated action inputs to allow adding pull request labels +time: 2024-09-17T09:17:22.951799+02:00 diff --git a/.changes/unreleased/Dependency-20240917-091755.yaml b/.changes/unreleased/Dependency-20240917-091755.yaml new file mode 100644 index 0000000..3efc8ce --- /dev/null +++ b/.changes/unreleased/Dependency-20240917-091755.yaml @@ -0,0 +1,3 @@ +kind: Dependency +body: Updated create-pull-request to v7 +time: 2024-09-17T09:17:55.410345+02:00