Skip to content

Commit 020a0b2

Browse files
alanchiaotensorflower-gardener
authored andcommitted
Add labeler workflow to automatically attach what technique type a PR affects.
PiperOrigin-RevId: 323427385
1 parent fe4df5c commit 020a0b2

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/labeler.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
technique:clustering
16+
- tensorflow_model_optimization/python/core/clustering/*
17+
- tensorflow_model_optimization/python/examples/clustering/*
18+
- tensorflow_model_optimization/g3doc/guide/clustering/*
19+
20+
technique:pruning
21+
- tensorflow_model_optimization/python/core/pruning/*
22+
- tensorflow_model_optimization/python/examples/pruning/*
23+
- tensorflow_model_optimization/g3doc/guide/pruning/*
24+
25+
technique:qat
26+
- tensorflow_model_optimization/python/core/pruning/*
27+
- tensorflow_model_optimization/python/examples/pruning/*
28+
- tensorflow_model_optimization/g3doc/guide/quantization/*

.github/workflows/labeler.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Pull Request Labeler"
16+
on:
17+
- pull_request
18+
19+
jobs:
20+
triage:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- users: actions/labeler@v2
24+
with:
25+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)