Merge pull request #31952 from woocommerce/add/project-label-action

Added Project Label Workflow
This commit is contained in:
Christopher Allford 2022-02-21 14:27:32 -08:00 committed by GitHub
commit b00629c889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

17
.github/project-pr-labeler.yml vendored Normal file
View File

@ -0,0 +1,17 @@
'package: @woocommerce/api':
- packages/js/api/*
'package: @woocommerce/e2e-utils':
- packages/js/e2e-utils/*
'package: @woocommerce/e2e-environment':
- packages/js/e2e-environment/*
'package: @woocommerce/api-core-tests':
- packages/js/api-core-tests/*
'package: @woocommerce/e2e-core-tests':
- packages/js/e2e-core-tests/*
'plugin: woocommerce':
- plugins/woocommerce/*

15
.github/workflows/project-pr-label.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Label Pull Request Project
on:
pull_request
types:
- opened
- synchronize
jobs:
label_project:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/project-pr-labeler.yml