Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ac15a1e

Browse files
🏷️ 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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 1 deletion
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 {
Lines changed: 6 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /