Skip to content

Commit 51d8113

Browse files
authored
Add more of the team and tweak job annotations (#868)
We have a [new feature](#861) to label job status. Making it more accessible to the wider team
1 parent 21b283e commit 51d8113

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

torchci/components/JobAnnotationToggle.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { useSession } from "next-auth/react";
55

66
export enum JobAnnotation {
77
NULL = "None",
8-
INFRA_FLAKE = "Infra Flake",
9-
TIME_OUT = "Time Out",
10-
SEV = "Sev",
118
BROKEN_TRUNK = "Broken Trunk",
129
TEST_FLAKE = "Test Flake",
13-
TEST_FAILURE = "Test Failure",
10+
INFRA_BROKEN = "Broken Infra",
11+
INFRA_FLAKE = "Infra Flake",
12+
NETWORK = "Network Error",
13+
OTHER = "Other"
1414
}
1515

1616
export default function JobAnnotationToggle({

torchci/pages/api/job_annotation/[repoOwner]/[repoName]/[jobId]/[annotation].ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import { getDynamoClient } from "lib/dynamo";
33
import { unstable_getServerSession } from "next-auth";
44
import { authOptions } from "pages/api/auth/[...nextauth]";
55

6-
export const annotationEditAllowlist = new Set(["4468967", "34172846"]);
6+
// Get number by going to https://api.github.com/users/<username>
7+
// and copying the "id" field
8+
export const annotationEditAllowlist = new Set([
9+
"34172846", // ZainRizvi
10+
"44682903", // clee2000
11+
"475357", // huydhn
12+
"420184", // kit1980
13+
"2453524", // malfet
14+
]);
715

816
export default async function handler(
917
req: NextApiRequest,

0 commit comments

Comments
 (0)