fix: address review findings (#2206)

This commit is contained in:
Jinjing
2026-05-17 20:15:05 -07:00
committed by GitHub
parent 4634ffb4d3
commit e4a794ec68
20 changed files with 2244 additions and 193 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ export type UpdatePullRequestBySlugArgs = {
owner: string
repo: string
number: number
updates: { title?: string; body?: string }
updates: { title?: string; body?: string; state?: 'open' | 'closed' }
}
export type AddIssueCommentBySlugArgs = {
+33
View File
@@ -613,8 +613,12 @@ export type PRCheckDetail = {
| 'pending'
| null
url: string | null
checkRunId?: number
workflowRunId?: number
}
export type GitHubRerunPRChecksResult = { ok: true; count: number } | { ok: false; error: string }
export type GitHubReactionContent =
| '+1'
| '-1'
@@ -678,6 +682,20 @@ export type GitHubAssignableUser = {
avatarUrl: string
}
export type GitHubPRCheckSummary = {
state: 'success' | 'failure' | 'pending' | 'none'
total: number
passed: number
failed: number
pending: number
}
export type GitHubPRReviewSummary = {
login: string
state?: string | null
avatarUrl?: string | null
}
export type GitHubPRFileViewedState = 'DISMISSED' | 'VIEWED' | 'UNVIEWED'
export type GitHubWorkItem = {
@@ -692,6 +710,17 @@ export type GitHubWorkItem = {
author: string | null
branchName?: string
baseRefName?: string
additions?: number
deletions?: number
changedFiles?: number
reviewDecision?: string | null
reviewRequests?: GitHubAssignableUser[]
latestReviews?: GitHubPRReviewSummary[]
assignees?: GitHubAssignableUser[]
checksSummary?: GitHubPRCheckSummary
mergeable?: PRMergeableState
mergeStateStatus?: string | null
maintainerCanModify?: boolean
// Why: true when a PR's head lives on a fork (headRepositoryOwner !== selected repo owner).
// The Start-from picker passes this to resolvePrBase so fork heads use
// refs/pull/<N>/head for creation and a separate PR-head push target.
@@ -830,6 +859,10 @@ export type GitHubIssueUpdate = {
removeAssignees?: string[]
}
export type GitHubPullRequestStateUpdate = {
state: 'open' | 'closed'
}
export type LinearIssueUpdate = {
stateId?: string
title?: string