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

name: "PR title check"

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

permissions:
  contents: read

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