Skip to content

Commit

Permalink
fixup! Update release-drafter.yml to add PR events for autolabeler (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Mar 15, 2024
1 parent a574a55 commit 9598143
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PR Autolabeler

on:
# pull_request event is required for autolabeler
pull_request:
types: [opened, reopened, synchronize]

jobs:
draft-release:
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main
7 changes: 0 additions & 7 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ on:
push:
branches:
- "main"
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 9598143

Please sign in to comment.