From 64639d43198026f1deead3d60f3fdbaafa2c682a Mon Sep 17 00:00:00 2001 From: Keith Lau Date: Fri, 31 Jan 2025 10:07:34 +1100 Subject: [PATCH 1/2] openpr --- .github/workflows/create_pull_request.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create_pull_request.yml b/.github/workflows/create_pull_request.yml index 248e4ed1..b52d5524 100644 --- a/.github/workflows/create_pull_request.yml +++ b/.github/workflows/create_pull_request.yml @@ -8,11 +8,11 @@ on: required: true type: string PR_message: - description: "PR Message" - required: false - default: Automated PR generated using GHA - type: string - + description: "PR Message" + required: false + default: "Automated PR generated using GHA" + type: string + jobs: create_pull_request: name: Create Pull Request @@ -25,8 +25,10 @@ jobs: - name: Create Pull Request run: | gh pr create \ - --title "Automated tide pull request for release {{ release }}" \ + --title "Automated PR for release ${{ inputs.branch_name }}" \ --body "${{ inputs.PR_message }}" \ --base develop \ - --head ${{ inputs.branch_name }} \ - --repo ${{ github.repository }} + --head "${{ inputs.branch_name }}" \ + --repo "${{ github.repository }}" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 062efdb3b5aab074a9283a8cb453d05b7fddce65 Mon Sep 17 00:00:00 2001 From: Keith Lau Date: Fri, 31 Jan 2025 10:24:43 +1100 Subject: [PATCH 2/2] openpr --- .github/workflows/create_pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_pull_request.yml b/.github/workflows/create_pull_request.yml index b52d5524..83fdc7d9 100644 --- a/.github/workflows/create_pull_request.yml +++ b/.github/workflows/create_pull_request.yml @@ -25,7 +25,7 @@ jobs: - name: Create Pull Request run: | gh pr create \ - --title "Automated PR for release ${{ inputs.branch_name }}" \ + --title "Automated PR for release - ${{ inputs.branch_name }}" \ --body "${{ inputs.PR_message }}" \ --base develop \ --head "${{ inputs.branch_name }}" \