From d8cb10c71a5ae98edc8995f248d093499301809f Mon Sep 17 00:00:00 2001 From: Vincent Hardouin Date: Tue, 19 Nov 2024 16:11:03 +0100 Subject: [PATCH] feat: add auto-merge with dispatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yannick François Co-authored-by: Clement Latzarus Co-authored-by: Diane Cordier Co-authored-by: Guillaume Lagorce --- .github/workflows/auto-merge-dispatch.yml | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/auto-merge-dispatch.yml diff --git a/.github/workflows/auto-merge-dispatch.yml b/.github/workflows/auto-merge-dispatch.yml new file mode 100644 index 0000000..d3753f4 --- /dev/null +++ b/.github/workflows/auto-merge-dispatch.yml @@ -0,0 +1,47 @@ +name: automerge check + +on: + workflow_dispatch: + inputs: + pullRequest: + description: 'Pull request préfixé par le nom du repo : 1024pix/pix' + required: true + + +inputs: + auto_merge_token: + required: true + merge_labels: + type: string + default: ':rocket: Ready to Merge,!:warning: Blocked,!:earth_africa: i18n needed,!:busts_in_silhouette: Panel Review Needed,!Development in progress,!:eyes: Design Review Needed,!:eyes: Func Review Needed,!:eyes: Tech Review Needed' + merge_commit_message: + type: string + default: "{pullRequest.title} \n\n #{pullRequest.number}" + update_labels: + type: string + default: ':rocket: Ready to Merge' + update_method: + type: string + default: rebase + merge_forks: + type: string + default: 'false' + +jobs: + automerge: + runs-on: ubuntu-latest + steps: + - name: Test + run: | + echo '${{ input.pull_request }}' +# - name: automerge +# uses: pascalgn/automerge-action@v0.16.4 +# env: +# GITHUB_TOKEN: '${{ inputs.auto_merge_token }}' +# MERGE_LABELS: '${{ inputs.merge_labels }}' +# MERGE_COMMIT_MESSAGE: '${{ inputs.merge_commit_message }}' +# UPDATE_LABELS: '${{ inputs.update_labels }}' +# UPDATE_METHOD: '${{ inputs.update_method }}' +# MERGE_FORKS: '${{ inputs.merge_forks }}' +# PULL_REQUEST: '${{ inputs.pullRequest }}' +