Skip to content

Commit

Permalink
feat: add auto-merge with dispatch
Browse files Browse the repository at this point in the history
Co-authored-by: Yannick François <[email protected]>
Co-authored-by: Clement Latzarus <[email protected]>
Co-authored-by: Diane Cordier <[email protected]>
Co-authored-by: Guillaume Lagorce <[email protected]>
  • Loading branch information
5 people committed Nov 19, 2024
1 parent 538d53d commit d8cb10c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/auto-merge-dispatch.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
# 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 }}'

0 comments on commit d8cb10c

Please sign in to comment.