Skip to content

Commit

Permalink
TASK: Remove only the old base branch label
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther authored Feb 20, 2023
1 parent 2bee907 commit 578b7db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/add-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Remove all labels
uses: rogerluan/[email protected]
- name: Maybe remove base branch label
if: github.event.action == 'edited' && github.event.changes.base.ref.from != ''
uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: ${{ github.event.changes.base.ref.from }}
- name: Add feature label
if: startsWith(github.event.pull_request.title, 'FEATURE:')
uses: actions-ecosystem/action-add-labels@v1
Expand Down

0 comments on commit 578b7db

Please sign in to comment.