File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,20 @@ export type SubjectType =
3535 | 'RepositoryVulnerabilityAlert'
3636 | 'WorkflowRun' ;
3737
38- export type IssueStateType =
39- | 'closed'
40- | 'completed'
41- | 'not_planned'
42- | 'open'
43- | 'reopened' ;
38+ export type IssueStateType = 'closed' | 'open' ;
39+
40+ export type IssueStateReasonType = 'completed' | 'not_planned' | 'reopened' ;
4441
42+ /**
43+ * Note: draft and merged are not official states in the GitHub API.
44+ * These are derived from the pull request's `merged` and `draft` properties.
45+ */
4546export type PullRequestStateType = 'closed' | 'draft' | 'merged' | 'open' ;
4647
4748export type StateType =
4849 | DiscussionStateType
4950 | IssueStateType
51+ | IssueStateReasonType
5052 | PullRequestStateType ;
5153
5254export type ViewerSubscription = 'IGNORED' | 'SUBSCRIBED' | 'UNSUBSCRIBED' ;
You can’t perform that action at this time.
0 commit comments