Skip to content

Commit 1500a71

Browse files
authored
contribute a pull request labeler workflow (#875)
1 parent e2c4e6f commit 1500a71

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Configuration for .github/workflows/pull_request_label.yml.
2+
3+
'infra':
4+
- '.github/**'
5+
6+
'package:cronet_http':
7+
- 'pkgs/cronet_http/**'
8+
9+
'package:cupertino_http':
10+
- 'pkgs/cupertino_http/**'
11+
12+
'package:http':
13+
- 'pkgs/http/**'
14+
15+
'package:http_client_conformance_tests':
16+
- 'pkgs/http_client_conformance_tests/**'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow applies labels to pull requests based on the paths that are
2+
# modified in the pull request.
3+
#
4+
# Edit `.github/labeler.yml` to configure labels. For more information, see
5+
# https://github.com/actions/labeler.
6+
7+
name: Pull Request Labeler
8+
permissions: read-all
9+
10+
on:
11+
pull_request_target
12+
13+
jobs:
14+
label:
15+
permissions:
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4
20+
with:
21+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
22+
sync-labels: true

0 commit comments

Comments
 (0)