Skip to content

Commit bf88f60

Browse files
author
Casey Hillers
authored
[github] Add labeler action (#126012)
Part of flutter/flutter#126002 Migrate the [Cocoon logic for labelling](https://cs.opensource.google/flutter/cocoon/+/main:app_dart/lib/src/request_handlers/github/webhook_subscription.dart;l=352) directly into the repo under test
1 parent cab29b2 commit bf88f60

File tree

2 files changed

+134
-0
lines changed

2 files changed

+134
-0
lines changed

.github/labeler.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
# See https://github.com/actions/labeler/blob/main/README.md for docs.
6+
'a: accessibility':
7+
- any:
8+
- accessibility
9+
- semantics
10+
11+
'a: animation':
12+
- any:
13+
- animation
14+
15+
'a: internationalization':
16+
- any:
17+
- packages/flutter_localizations/**
18+
19+
'a: test':
20+
- any:
21+
- packages/flutter_driver/**
22+
- packages/flutter_goldens/**
23+
- packages/flutter_goldens_client/**
24+
- packages/flutter_test/**
25+
26+
'a: text input':
27+
- any:
28+
- text
29+
30+
'd: api docs':
31+
- any:
32+
- examples/api/**
33+
34+
'd: examples':
35+
- any:
36+
- examples/**
37+
38+
documentation:
39+
- any:
40+
- examples/api/**
41+
42+
engine:
43+
- any:
44+
- bin/internal/engine.version
45+
46+
'f: cupertino':
47+
- any:
48+
- cupertino
49+
50+
'f: focus':
51+
- any:
52+
- focus
53+
54+
'f: gestures':
55+
- any:
56+
- gestures
57+
58+
'f: material':
59+
- any:
60+
- material
61+
62+
'f: routes':
63+
- any:
64+
- navigator
65+
- route
66+
67+
'f: scrolling':
68+
- any:
69+
- scroll
70+
- sliver
71+
- viewport
72+
73+
framework:
74+
- any:
75+
- packages/flutter/**
76+
- packages/flutter_driver/**
77+
- packages/flutter_goldens/**
78+
- packages/flutter_goldens_client/**
79+
- packages/flutter_test/**
80+
- packages/integration_test/**
81+
82+
integration_test:
83+
- any:
84+
- packages/integration_test/**
85+
86+
platform-ios:
87+
- any:
88+
- packages/flutter_tools/lib/src/ios/**
89+
90+
team:
91+
- any:
92+
- '**/pubspec.yaml'
93+
- '**/fix_data.yaml'
94+
- '**/*.expect'
95+
- '**/*test_fixes*'
96+
- dev/**
97+
- examples/**
98+
- packages/flutter_goldens/**
99+
- packages/flutter_goldens_client/**
100+
101+
'team: gallery':
102+
- any:
103+
- examples/flutter_gallery/**
104+
105+
tech-debt:
106+
- any:
107+
- '**/fix_data.yaml'
108+
- '**/*.expect'
109+
- '**/*test_fixes*'
110+
111+
tool:
112+
- any:
113+
- packages/flutter_tools/**
114+
- packages/fuchsia_remote_debug_protocol/**

.github/workflows/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
name: "Pull Request Labeler"
6+
on:
7+
- pull_request_target
8+
9+
# Declare default permissions as read only.
10+
permissions: read-all
11+
12+
jobs:
13+
triage:
14+
if: ${{ github.repository == 'flutter/flutter' }}
15+
permissions:
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Source available at https://github.com/actions/labeler/blob/main/README.md
20+
- uses: actions/labeler@9471598e3b7ff22b2fa181bd79addf94cb3e0847

0 commit comments

Comments
 (0)