Skip to content

Commit

Permalink
feat(upgrade): add labels input parameter (#254)
Browse files Browse the repository at this point in the history
This adds the input parameter `labels`.

I think this is a needed parameter because some repos have different
label schemas than "trunk".

Example: I would like to add "area: dependencies" as label instead of
"trunk".
  • Loading branch information
simonostendorf authored Oct 10, 2024
1 parent 86c3f54 commit b0ffb2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion upgrade/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ inputs:
description: A comma or newline separated list of GitHub reviewer usernames
required: false

labels:
description: A comma or newline separated list of GitHub labels that should be added to the PR
default: trunk
required: false

add-paths:
description: Specific paths to add to the created pull request. Comma separated.
required: false
Expand Down Expand Up @@ -148,7 +153,7 @@ runs:
body: ${{ env.PR_DESCRIPTION }}
base: ${{ inputs.base }}
branch: ${{ inputs.branch-name }}
labels: trunk
labels: ${{ inputs.labels }}
add-paths: ${{ inputs.add-paths }}
commit-message: ${{ inputs.prefix }}${{ env.PR_TITLE }}
delete-branch: true
Expand Down

0 comments on commit b0ffb2e

Please sign in to comment.