Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
add post merge labeler (#3532)
Browse files Browse the repository at this point in the history
  • Loading branch information
bparrishMines authored Feb 10, 2021
1 parent 09d0f79 commit 7624d9e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/post_merge_labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'needs-publishing':
- packages/*/**
23 changes: 17 additions & 6 deletions .github/workflows/pull_request_label.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
# This workflow applies labels to pull requests based on the
# paths that are modified in the pull request.
#
# Edit `.github/labeler.yml` to configure labels.
# Edit `.github/labeler.yml` and `.github/post_merge_labeler.yml`
# to configure labels.
#
# For more information, see: https://github.com/actions/labeler

name: Pull Request Labeler

on:
- pull_request_target
pull_request_target:
types: [opened, synchronize, reopened, closed]

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

post_merge_label:
if: github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/post_merge_labeler.yml

0 comments on commit 7624d9e

Please sign in to comment.