summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-26 06:16:04 -0400
committerGitHub <noreply@github.com>2020-10-26 06:16:04 -0400
commit01f642f08071118b9ed63e1ab4818731fe9c5de9 (patch)
tree25d52fb07c894e674b9c7238992d4fc99c87f13a /.github
parentf9df17a446cfce5a12342ade5fdf78aac94fc711 (diff)
parentb26a1085cd291de25950cfe6f5221d7499d7669a (diff)
downloadpodman-01f642f08071118b9ed63e1ab4818731fe9c5de9.tar.gz
podman-01f642f08071118b9ed63e1ab4818731fe9c5de9.tar.bz2
podman-01f642f08071118b9ed63e1ab4818731fe9c5de9.zip
Merge pull request #8138 from vrothberg/main-pr-title-update-action
add GitHub action to add non-main branch to PR title
Diffstat (limited to '.github')
-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