From 88bc0fd1ecfd1abcde9783f261fc3279f8eb301f Mon Sep 17 00:00:00 2001 From: Joost Smit Date: Tue, 17 Sep 2024 09:15:18 +0200 Subject: [PATCH] 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.