mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
refactor(github): organize concrete feature owners (#41601)
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
import '../../../github/rate-limit'
|
||||
import '../../../github/api/rate-limit'
|
||||
import type {
|
||||
GitHubCreateIssueFields,
|
||||
GitHubIssueUpdate
|
||||
} from '../../../../shared/issue-mutation-types'
|
||||
import type { GitHubOwnerRepo } from '../../../../shared/github/pull-request-types'
|
||||
import type { GitHubPRReviewCommentInput } from '../../../../shared/github/comment-types'
|
||||
import type { GitHubRepositoryIdentity as GitHubOwnerRepo } from '../../../../shared/github/repositories/repository-identity'
|
||||
import type { GitHubPRReviewCommentInput } from '../../../../shared/github/comments/comment-types'
|
||||
import type { Repo } from '../../../../shared/repo-types'
|
||||
import type { LocalProjectGhExecOptions } from '../../../workspaces/execution-host/project-runtime-git-options'
|
||||
import { addIssueComment } from '../../../github/issue-comment'
|
||||
import { addIssueComment } from '../../../github/issues/issue-comment'
|
||||
import {
|
||||
addPRReviewComment,
|
||||
addPRReviewCommentReply
|
||||
} from '../../../github/client/create/add-pr-review-comment'
|
||||
import { createIssue } from '../../../github/issue-create'
|
||||
import { updateIssue } from '../../../github/issue-update'
|
||||
import { createIssue } from '../../../github/issues/issue-create'
|
||||
import { updateIssue } from '../../../github/issues/issue-update'
|
||||
import { getRepoRoutingConnectionId } from '../../../../shared/execution-host'
|
||||
import type { GitHubAttachmentTarget } from '../../../../shared/rpc-contract/github-attachment-params'
|
||||
import { uploadGitHubImage } from '../../../github/image-attachment-upload'
|
||||
import { uploadGitHubImage } from '../../../github/attachments/image-attachment-upload'
|
||||
import {
|
||||
resolveGitHubRepoExecution,
|
||||
resolveIssueGitHubApiRepositorySource
|
||||
} from '../../../github/github-api-repository'
|
||||
import { projectGhExecOptions } from '../../../github/project-view/internals'
|
||||
} from '../../../github/repositories/github-api-repository'
|
||||
import { projectGhExecOptions } from '../../../github/project-view/project-host-execution'
|
||||
import { runAsDefaultWslCliUserAct } from '../../../git/command-runner/hosted-cli/default-wsl-cli-fallback'
|
||||
|
||||
type LocalGitArgs = [] | [LocalProjectGhExecOptions]
|
||||
|
||||
@@ -37,7 +37,7 @@ import type {
|
||||
UpdateIssueTypeBySlugArgs,
|
||||
UpdateProjectItemFieldArgs,
|
||||
UpdatePullRequestBySlugArgs
|
||||
} from '../../../../shared/github/project-request-types'
|
||||
} from '../../../../shared/github/projects/project-request-types'
|
||||
|
||||
export class RuntimeGitHubProjectCommands {
|
||||
listGitHubProjects(args?: ListAccessibleProjectsArgs) {
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import type { GhAccountBinding } from '../../../../shared/github/account-binding'
|
||||
import type { GitHubOwnerRepo } from '../../../../shared/github/pull-request-types'
|
||||
import type { ListWorkItemsResult } from '../../../../shared/github/work-item-types'
|
||||
import type { GhAccountBinding } from '../../../../shared/github/accounts/account-binding'
|
||||
import type { GitHubRepositoryIdentity as GitHubOwnerRepo } from '../../../../shared/github/repositories/repository-identity'
|
||||
import type { ListWorkItemsResult } from '../../../../shared/github/work-items/work-item-types'
|
||||
import type { Repo } from '../../../../shared/repo-types'
|
||||
import type { LocalProjectGhExecOptions } from '../../../workspaces/execution-host/project-runtime-git-options'
|
||||
import { countWorkItems } from '../../../github/client/list/count-work-items'
|
||||
import { getWorkItem, getWorkItemByOwnerRepo } from '../../../github/client/fetch/get-work-item'
|
||||
import { listAssignableUsers, listLabels } from '../../../github/issue-field-options'
|
||||
import { listIssues } from '../../../github/issues'
|
||||
import { listAssignableUsers, listLabels } from '../../../github/issues/issue-field-options'
|
||||
import { listIssues } from '../../../github/issues/issues'
|
||||
import { listWorkItems } from '../../../github/client/list/list-work-items'
|
||||
import type { MainWorkItem } from '../../../github/client/map/work-item-field-coercion'
|
||||
import {
|
||||
listGhAccountBindingInventory,
|
||||
validateGhAccountBinding
|
||||
} from '../../../github/gh-account-binding-inventory'
|
||||
import { getRateLimit } from '../../../github/rate-limit'
|
||||
import { resolveGhAccountRequiredHost } from '../../../github/account-binding-required-host'
|
||||
import { getWorkItemDetails } from '../../../github/work-item-details'
|
||||
} from '../../../github/accounts/gh-account-binding-inventory'
|
||||
import { getRateLimit } from '../../../github/api/rate-limit'
|
||||
import { resolveGhAccountRequiredHost } from '../../../github/accounts/account-binding-required-host'
|
||||
import { getWorkItemDetails } from '../../../github/work-items/work-item-details'
|
||||
import { getRepoRoutingConnectionId } from '../../../../shared/execution-host'
|
||||
|
||||
type LocalGitArgs = [] | [LocalProjectGhExecOptions]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { GhAccountBinding } from '../../../../shared/github/account-binding'
|
||||
import type { GitHubOwnerRepo } from '../../../../shared/github/pull-request-types'
|
||||
import type { GhAccountBinding } from '../../../../shared/github/accounts/account-binding'
|
||||
import type { GitHubRepositoryIdentity as GitHubOwnerRepo } from '../../../../shared/github/repositories/repository-identity'
|
||||
import type { GitHubPullRequestStateUpdate } from '../../../../shared/issue-mutation-types'
|
||||
import type { GitHubReactionContent } from '../../../../shared/github/comment-types'
|
||||
import type { GitHubReactionContent } from '../../../../shared/github/comments/comment-types'
|
||||
import type { Repo } from '../../../../shared/repo-types'
|
||||
import type { LocalProjectGhExecOptions } from '../../../workspaces/execution-host/project-runtime-git-options'
|
||||
import { mergePR } from '../../../github/client/merge/merge-pr'
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import type { GitHubOwnerRepo, GitHubPRFile } from '../../../../shared/github/pull-request-types'
|
||||
import type { GitHubRepositoryIdentity as GitHubOwnerRepo } from '../../../../shared/github/repositories/repository-identity'
|
||||
import type { GitHubPRFile } from '../../../../shared/github/pull-requests/pull-request-types'
|
||||
import type { Repo } from '../../../../shared/repo-types'
|
||||
import type { LocalProjectGhExecOptions } from '../../../workspaces/execution-host/project-runtime-git-options'
|
||||
import { getIssue } from '../../../github/issues'
|
||||
import { getIssue } from '../../../github/issues/issues'
|
||||
import { getPRCheckDetails } from '../../../github/client/check/get-pr-check-details'
|
||||
import { getPRChecks } from '../../../github/client/check/get-pr-checks'
|
||||
import { getPRComments } from '../../../github/client/fetch/get-pr-comments'
|
||||
import { getPRFileContents } from '../../../github/work-item-details'
|
||||
import { getPRFileContents } from '../../../github/pull-requests/files/pull-request-file-contents'
|
||||
import { getRepoRoutingConnectionId } from '../../../../shared/execution-host'
|
||||
|
||||
type LocalGitArgs = [] | [LocalProjectGhExecOptions]
|
||||
|
||||
@@ -3,10 +3,10 @@ import type { Repo } from '../../../../shared/repo-types'
|
||||
import {
|
||||
fetchPrHeadTrackingRef,
|
||||
fetchGitHubPullRequestHeadRef
|
||||
} from '../../../github/pr-head-tracking-ref'
|
||||
import { resolveGitHubPrStartPoint } from '../../../github/pr-start-point'
|
||||
import { resolvePrStartPointUnlessWslStopped } from '../../../github/pr-start-point-wsl-gate'
|
||||
import { resolveGitHubReviewHeadRemote } from '../../../github/review-head-remote'
|
||||
} from '../../../github/pull-requests/start-points/pr-head-tracking-ref'
|
||||
import { resolveGitHubPrStartPoint } from '../../../github/pull-requests/start-points/pr-start-point'
|
||||
import { resolvePrStartPointUnlessWslStopped } from '../../../github/pull-requests/start-points/pr-start-point-wsl-gate'
|
||||
import { resolveGitHubReviewHeadRemote } from '../../../github/pull-requests/start-points/review-head-remote'
|
||||
import { gitExecFileAsync } from '../../../git/command-runner/git-exec-file'
|
||||
import {
|
||||
getLocalProjectGitExecOptions,
|
||||
|
||||
Reference in New Issue
Block a user