Merge pull request #11250 from opensourcerouting/feature/add_label_automatically_to_show_base_branch

github: Add base branch label to every PR to distinguish easily
This commit is contained in:
Donald Sharp 2022-05-25 10:03:53 -04:00 committed by GitHub
commit be4077b301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
.github/workflows/base-branch-label.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Add base branch label
on:
pull_request:
types:
- opened
- reopened
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
${{ github.event.pull_request.base.ref }}