aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pr-title.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pr-title.yml')
-rw-r--r--.github/workflows/pr-title.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml
new file mode 100644
index 000000000..0709fb5f0
--- /dev/null
+++ b/.github/workflows/pr-title.yml
@@ -0,0 +1,16 @@
+# Upstream: github.com/tzkhan/pr-update-action
+
+name: "PR title check"
+
+on: pull_request_target
+
+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