Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(source-control): Forgejo identity and Azure DevOps addressing move into their packages #17624

Mergedjuliusmarmingemerged 2 commits intot3/source-control-pullrequest-github-capabilities fromrefs/pull/17624/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 36 additions and 46 deletions (loading 5).

x
0 of 8 viewed, 8 left
4 additions and 1 deletionapps/server/src/pullRequest/PullRequestService.test.tsModified
View file
@@ -463,8 +463,11 @@
setReaction: () => Effect.void,
listReviewerCandidates: () => Effect.succeed({ candidates: [], truncated: false }),
setReviewerRequest: () => Effect.void,
- // GitHub's own merge message rewrite, which the service reads instead of the kind.
+ // The hosts' own resolvers, which the service reads instead of the kind.
...(kind === "github" ? { mergeMessageRewrite: (message: string) => message } : {}),
+ ...(kind === "azure-devops"
+ ? { repositoryKey: ({ canonicalKey }: { readonly canonicalKey: string }) => canonicalKey }
+ : {}),
...overrides,
18 additions and 19 deletionsapps/server/src/pullRequest/PullRequestService.tsModified
View file
@@ -369,6 +369,12 @@
* Unique where `repository` is not: Azure's is a bare name that repeats across an organisation.
readonly remote: string;
+ /**
+ * The host's own key for this checkout's repository (`api.repositoryKey`), normalized, or null
+ * where `owner/name` on the host identifies it. When set, only a reference whose key matches
+ * is served by this checkout.
+ */
+ readonly repositoryKey: string | null;
​
/**