aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pr-title.yml
blob: e00b8465c1a1d7ee4fed4c8f868c4517a2a7e434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Upstream: github.com/tzkhan/pr-update-action

name: "PR title check"

on:
  pull_request_target:
    branches:
      - "!master"   # causes errors; reason unknown

jobs:
  update_pr:
    runs-on: ubuntu-latest
    steps:
    - uses: tzkhan/pr-update-action@v2
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        base-branch-regex: '^(?!master).*$'
        title-template: '[%basebranch%]'
        title-prefix-space: true