Skip to content

Commit

Permalink
Merge pull request #18 from jsm1t/feat/add-release-label-to-pr
Browse files Browse the repository at this point in the history
feat: add release label to pr
  • Loading branch information
demeyerthom authored Sep 17, 2024
2 parents c3368fd + d365503 commit 9697356
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changes/unreleased/Added-20240917-091722.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .changes/unreleased/Dependency-20240917-091755.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Dependency
body: Updated create-pull-request to v7
time: 2024-09-17T09:17:55.410345+02:00
7 changes: 6 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -95,13 +99,14 @@ 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 }}
branch: release/${{ steps.latest.outputs.output }}
commit-message: Release ${{ steps.latest.outputs.output }}
token: ${{ inputs.github-token }}
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.
Expand Down

0 comments on commit 9697356

Please sign in to comment.