Skip to content

Commit ac15a1e

Browse files
authored
🏷️ SuggestionState (#11)
1 parent 7a43f01 commit ac15a1e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/server/webhooks/events/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ export * from "./event.js"
22
export * as pr from "./pr/index.js"
33
export * as project from "./project/index.js"
44
export * as repo from "./repo/index.js"
5+
export * from "./suggestion_state.js"

src/server/webhooks/events/pr/comment_added.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
SchemaRepository,
88
SchemaRestMinimalRef,
99
} from "../../../openapi/openapi-typescript.js"
10+
import type { SuggestionState } from "../suggestion_state.js"
1011

1112
export interface Actor {
1213
readonly active: boolean
@@ -75,7 +76,7 @@ export interface Project {
7576

7677
export interface Properties {
7778
readonly repositoryId: number
78-
readonly suggestionState: string
79+
readonly suggestionState?: SuggestionState
7980
}
8081

8182
export interface PullRequest {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const suggestionState = {
2+
UNAPPLIED: "UNAPPLIED",
3+
} as const
4+
5+
export type SuggestionState =
6+
(typeof suggestionState)[keyof typeof suggestionState]

0 commit comments

Comments
 (0)