Skip to content

Commit 01f642f

Browse files
Merge pull request #8138 from vrothberg/main-pr-title-update-action
add GitHub action to add non-main branch to PR title
2 parents f9df17a + b26a108 commit 01f642f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/pr-title.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Upstream: github.com/tzkhan/pr-update-action
2+
3+
name: "PR title check"
4+
5+
on: pull_request_target
6+
7+
jobs:
8+
update_pr:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: tzkhan/pr-update-action@v2
12+
with:
13+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
14+
base-branch-regex: '^(?!master).*$'
15+
title-template: '[%basebranch%]'
16+
title-prefix-space: true

0 commit comments

Comments
 (0)