32 lines
937 B
YAML
32 lines
937 B
YAML
name: Auto-merge
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled]
|
|
|
|
jobs:
|
|
merge:
|
|
if: contains(github.event.pull_request.labels.*.name, 'ready-to-merge')
|
|
runs-on: docker
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: python3 -m pip install --break-system-packages requests python-dotenv click
|
|
- name: Squash merge with task ID
|
|
env:
|
|
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
|
|
VIKUNJA_TOKEN: ${{ secrets.VIKUNJA_TOKEN }}
|
|
PYTHONPATH: src
|
|
HEAD_REF: ${{ github.head_ref }}
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
REPOSITORY: ${{ github.repository }}
|
|
PR_NUMBER: ${{ github.event.number }}
|
|
run: |
|
|
python3 scripts/ci/auto_merge.py \
|
|
"$HEAD_REF" \
|
|
"$PR_TITLE" \
|
|
"$REPOSITORY" \
|
|
"$PR_NUMBER" \
|
|
"ready-to-merge"
|