Skip to content

Commit be8c6c9

Browse files
committed
issue-labeler workflow customization for dotnet/source-build
1 parent 3aa4f6a commit be8c6c9

File tree

5 files changed

+7
-22
lines changed

5 files changed

+7
-22
lines changed

.github/workflows/labeler-cache-retention.yml renamed to .github/workflows/area-labeler-cache-retention.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Regularly restore the prediction models from cache to prevent cache eviction
2-
name: "Labeler: Cache Retention"
2+
name: "Area Labeler: Cache Retention"
33

44
# For more information about GitHub's action cache limits and eviction policy, see:
55
# https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
66

77
on:
88
schedule:
9-
- cron: "42 18 * * *" # 18:42 every day (arbitrary time daily)
9+
- cron: "44 19 * * *" # 19:44 every day (arbitrary time daily)
1010

1111
workflow_dispatch:
1212
inputs:

.github/workflows/labeler-predict-issues.yml renamed to .github/workflows/area-labeler-predict-issues.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Predict labels for Issues using a trained model
2-
name: "Labeler: Predict (Issues)"
2+
name: "Area Labeler: Predict (Issues)"
33

44
on:
55
# Only automatically predict area labels when issues are first opened
@@ -23,8 +23,6 @@ env:
2323

2424
LABEL_PREFIX: "area-"
2525
THRESHOLD: 0.40
26-
DEFAULT_LABEL: "needs-area-label"
27-
EXCLUDED_AUTHORS: "" # Comma-separated list of authors to exclude from training data
2826

2927
jobs:
3028
predict-issue-label:
@@ -50,8 +48,6 @@ jobs:
5048
issues: ${{ inputs.issues || github.event.issue.number }}
5149
label_prefix: ${{ env.LABEL_PREFIX }}
5250
threshold: ${{ env.THRESHOLD }}
53-
default_label: ${{ env.DEFAULT_LABEL }}
54-
excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
5551
env:
5652
GITHUB_TOKEN: ${{ github.token }}
5753
continue-on-error: ${{ !env.ALLOW_FAILURE }}

.github/workflows/labeler-predict-pulls.yml renamed to .github/workflows/area-labeler-predict-pulls.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Predict labels for Pull Requests using a trained model
2-
name: "Labeler: Predict (Pulls)"
2+
name: "Area Labeler: Predict (Pulls)"
33

44
on:
55
# Per to the following documentation:
@@ -36,8 +36,6 @@ env:
3636

3737
LABEL_PREFIX: "area-"
3838
THRESHOLD: 0.40
39-
DEFAULT_LABEL: "needs-area-label"
40-
EXCLUDED_AUTHORS: "" # Comma-separated list of authors to exclude from training data
4139

4240
jobs:
4341
predict-pull-label:
@@ -63,8 +61,6 @@ jobs:
6361
pulls: ${{ inputs.pulls || github.event.number }}
6462
label_prefix: ${{ env.LABEL_PREFIX }}
6563
threshold: ${{ env.THRESHOLD }}
66-
default_label: ${{ env.DEFAULT_LABEL }}
67-
excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
6864
env:
6965
GITHUB_TOKEN: ${{ github.token }}
7066
continue-on-error: ${{ !env.ALLOW_FAILURE }}

.github/workflows/labeler-promote.yml renamed to .github/workflows/area-labeler-promote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Promote a model from staging to 'ACTIVE', backing up the currently 'ACTIVE' model
2-
name: "Labeler: Promotion"
2+
name: "Area Labeler: Promotion"
33

44
on:
55
# Dispatched via the Actions UI, promotes the staged models from

.github/workflows/labeler-train.yml renamed to .github/workflows/area-labeler-train.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Train the Issues and Pull Requests models for label prediction
2-
name: "Labeler: Training"
2+
name: "Area Labeler: Training"
33

44
on:
55
workflow_dispatch:
@@ -25,8 +25,6 @@ on:
2525
- "Train Model"
2626
- "Test Model"
2727

28-
repository:
29-
description: "The org/repo to download data from. Defaults to the current repository."
3028
limit:
3129
description: "Max number of items to download for training/testing the model (newest items are used). Defaults to the max number of pages times the page size."
3230
type: number
@@ -43,13 +41,12 @@ on:
4341

4442
env:
4543
CACHE_KEY: ${{ inputs.cache_key_suffix }}
46-
REPOSITORY: ${{ inputs.repository || github.repository }}
44+
REPOSITORY: ${{ github.repository }}
4745
LABEL_PREFIX: "area-"
4846
THRESHOLD: "0.40"
4947
LIMIT: ${{ inputs.limit }}
5048
PAGE_SIZE: ${{ inputs.page_size }}
5149
PAGE_LIMIT: ${{ inputs.page_limit }}
52-
EXCLUDED_AUTHORS: "" # Comma-separated list of authors to exclude from training data
5350

5451
jobs:
5552
download-issues:
@@ -68,7 +65,6 @@ jobs:
6865
limit: ${{ env.LIMIT }}
6966
page_size: ${{ env.PAGE_SIZE }}
7067
page_limit: ${{ env.PAGE_LIMIT }}
71-
excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
7268
env:
7369
GITHUB_TOKEN: ${{ github.token }}
7470

@@ -88,7 +84,6 @@ jobs:
8884
limit: ${{ env.LIMIT }}
8985
page_size: ${{ env.PAGE_SIZE }}
9086
page_limit: ${{ env.PAGE_LIMIT }}
91-
excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
9287
env:
9388
GITHUB_TOKEN: ${{ github.token }}
9489

@@ -136,7 +131,6 @@ jobs:
136131
limit: ${{ env.LIMIT }}
137132
page_size: ${{ env.PAGE_SIZE }}
138133
page_limit: ${{ env.PAGE_LIMIT }}
139-
excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
140134
env:
141135
GITHUB_TOKEN: ${{ github.token }}
142136

@@ -158,6 +152,5 @@ jobs:
158152
limit: ${{ env.LIMIT }}
159153
page_size: ${{ env.PAGE_SIZE }}
160154
page_limit: ${{ env.PAGE_LIMIT }}
161-
excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
162155
env:
163156
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)