Skip to content

Commit

Permalink
🏷️ SuggestionState (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
NatoBoram authored Oct 1, 2024
1 parent 7a43f01 commit ac15a1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/server/webhooks/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./event.js"
export * as pr from "./pr/index.js"
export * as project from "./project/index.js"
export * as repo from "./repo/index.js"
export * from "./suggestion_state.js"
3 changes: 2 additions & 1 deletion src/server/webhooks/events/pr/comment_added.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {
SchemaRepository,
SchemaRestMinimalRef,
} from "../../../openapi/openapi-typescript.js"
import type { SuggestionState } from "../suggestion_state.js"

export interface Actor {
readonly active: boolean
Expand Down Expand Up @@ -75,7 +76,7 @@ export interface Project {

export interface Properties {
readonly repositoryId: number
readonly suggestionState: string
readonly suggestionState?: SuggestionState
}

export interface PullRequest {
Expand Down
6 changes: 6 additions & 0 deletions src/server/webhooks/events/suggestion_state.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const suggestionState = {
UNAPPLIED: "UNAPPLIED",
} as const

export type SuggestionState =
(typeof suggestionState)[keyof typeof suggestionState]

0 comments on commit ac15a1e

Please sign in to comment.