Skip to content

Commit 864d6ea

Browse files
committed
feat(github-actions): add a gemini-triaged label to all issues which the issue labeler applies a label to
1 parent 5786987 commit 864d6ea

3 files changed

Lines changed: 299 additions & 1 deletion

File tree

github-actions/issue-labeling/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ts_project(
2020
":node_modules/@octokit/rest",
2121
":node_modules/@types/node",
2222
"//github-actions:utils",
23+
"//ng-dev/pr/common/labels",
2324
],
2425
)
2526

github-actions/issue-labeling/lib/issue-labeling.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {GoogleGenAI} from '@google/genai';
44
import {Octokit} from '@octokit/rest';
55
import {ANGULAR_ROBOT, getAuthTokenFor, revokeActiveInstallationToken} from '../../utils.js';
66
import {components} from '@octokit/openapi-types';
7+
import {miscLabels} from '../../../ng-dev/pr/common/labels/index.js';
78

89
export class IssueLabeling {
910
static run = async () => {
@@ -71,6 +72,7 @@ If no area label applies, respond with "none".
7172

7273
if (this.repoAreaLabels.has(text)) {
7374
await this.addLabel(text);
75+
await this.addLabel(miscLabels.GEMINI_TRIAGED.name);
7476
} else {
7577
this.coreService.info(
7678
`Generated label "${text}" is not in the list of valid area labels or is "ambiguous"/"none".`,

github-actions/issue-labeling/main.js

Lines changed: 296 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)