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

Add post merge labeler #3532

Merged
merged 1 commit into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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