Skip to content

Commit

Permalink
TASK: Make add label workfow run on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther authored Mar 8, 2023
1 parent 6018aed commit b72ac01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/add-pr-labels.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Add Labels to Pull Request

on:
pull_request:
pull_request_target:
types: [opened, reopened, synchronize, edited]

jobs:
Expand All @@ -10,6 +10,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Maybe remove base branch label
if: github.event.action == 'edited' && github.event.changes.base.ref.from != ''
uses: actions-ecosystem/action-remove-labels@v1
Expand Down

0 comments on commit b72ac01

Please sign in to comment.