File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
pages/api/job_annotation/[repoOwner]/[repoName]/[jobId] Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import { useSession } from "next-auth/react";
55
66export 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
1616export default function JobAnnotationToggle ( {
Original file line number Diff line number Diff line change @@ -3,7 +3,15 @@ import { getDynamoClient } from "lib/dynamo";
33import { unstable_getServerSession } from "next-auth" ;
44import { 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
816export default async function handler (
917 req : NextApiRequest ,
You can’t perform that action at this time.
0 commit comments