Merge pull request #8138 from vrothberg/main-pr-title-update-action

add GitHub action to add non-main branch to PR title
This commit is contained in:
OpenShift Merge Robot
2020-10-26 06:16:04 -04:00
committed by GitHub

16
.github/workflows/pr-title.yml vendored Normal file
View File

@ -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