From cc52cbb32c58609f455519759fe49322ee2590dc Mon Sep 17 00:00:00 2001 From: Simon Ostendorf Date: Fri, 11 Oct 2024 00:22:40 +0200 Subject: [PATCH 1/4] feat(upgrade): add sign-commits input parameter --- upgrade/action.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/upgrade/action.yaml b/upgrade/action.yaml index 76d31413..185e7a77 100644 --- a/upgrade/action.yaml +++ b/upgrade/action.yaml @@ -75,6 +75,11 @@ inputs: description: A boolean to add a Signed-off-by line to the commit message required: false default: false + + sign-commits: + description: A boolean to sign commits. See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signature-verification-for-bots + required: false + default: false outputs: pull-request-number: description: The pull request number @@ -161,3 +166,4 @@ runs: reviewers: ${{ inputs.reviewers }} token: ${{ inputs.github-token }} signoff: ${{ inputs.signoff }} + sign-commits: ${{ inputs.sign-commits }} From 5727e32a4b772a13dda5ac4ff1fd820206f20bcd Mon Sep 17 00:00:00 2001 From: Simon Ostendorf Date: Fri, 11 Oct 2024 18:17:47 +0200 Subject: [PATCH 2/4] feat(upgrade): update create-pull-request to v7 --- upgrade/action.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upgrade/action.yaml b/upgrade/action.yaml index 185e7a77..870b0227 100644 --- a/upgrade/action.yaml +++ b/upgrade/action.yaml @@ -80,6 +80,7 @@ inputs: description: A boolean to sign commits. See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signature-verification-for-bots required: false default: false + outputs: pull-request-number: description: The pull request number @@ -152,7 +153,7 @@ runs: - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@v6 + uses: peter-evans/create-pull-request@v7 with: title: ${{ inputs.prefix }}${{ env.PR_TITLE }} body: ${{ env.PR_DESCRIPTION }} @@ -165,5 +166,6 @@ runs: assignees: ${{ inputs.assignees }} reviewers: ${{ inputs.reviewers }} token: ${{ inputs.github-token }} + branch-token: ${{ inputs.github-token }} signoff: ${{ inputs.signoff }} sign-commits: ${{ inputs.sign-commits }} From dcb9763b46c1158602a04a065e32503a93b39320 Mon Sep 17 00:00:00 2001 From: Simon Ostendorf Date: Fri, 18 Oct 2024 21:10:05 +0200 Subject: [PATCH 3/4] fix: format --- upgrade/action.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/upgrade/action.yaml b/upgrade/action.yaml index 870b0227..c1ee0052 100644 --- a/upgrade/action.yaml +++ b/upgrade/action.yaml @@ -91,8 +91,7 @@ outputs: value: ${{ steps.cpr.outputs.pull-request-url }} pull-request-operation: - description: - The pull request operation performed by the action, `created`, `updated` or `closed`. + description: The pull request operation performed by the action, `created`, `updated` or `closed`. value: ${{ steps.cpr.outputs.pull-request-operation }} pull-request-head-sha: From 2a17a09ee3e1b0d83a000d887c86c1471841b078 Mon Sep 17 00:00:00 2001 From: Simon Ostendorf Date: Fri, 18 Oct 2024 21:15:12 +0200 Subject: [PATCH 4/4] fix: format --- upgrade/action.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/upgrade/action.yaml b/upgrade/action.yaml index c1ee0052..8719e034 100644 --- a/upgrade/action.yaml +++ b/upgrade/action.yaml @@ -77,7 +77,9 @@ inputs: default: false sign-commits: - description: A boolean to sign commits. See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signature-verification-for-bots + description: + A boolean to sign commits. See + https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signature-verification-for-bots required: false default: false @@ -91,7 +93,8 @@ outputs: value: ${{ steps.cpr.outputs.pull-request-url }} pull-request-operation: - description: The pull request operation performed by the action, `created`, `updated` or `closed`. + description: + The pull request operation performed by the action, `created`, `updated` or `closed`. value: ${{ steps.cpr.outputs.pull-request-operation }} pull-request-head-sha: