backport 9.6.6 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/README.md +1 -1
  2. package/dist/backportRun.js +2 -2
  3. package/dist/backportRun.js.map +1 -1
  4. package/dist/entrypoint.api.d.ts +1 -1
  5. package/dist/graphql/generated/gql.d.ts +121 -0
  6. package/dist/graphql/generated/gql.js +53 -0
  7. package/dist/graphql/generated/gql.js.map +1 -0
  8. package/dist/graphql/generated/graphql.d.ts +34725 -0
  9. package/dist/graphql/generated/graphql.js +3447 -0
  10. package/dist/graphql/generated/graphql.js.map +1 -0
  11. package/dist/graphql/generated/index.d.ts +1 -0
  12. package/dist/graphql/generated/index.js +18 -0
  13. package/dist/graphql/generated/index.js.map +1 -0
  14. package/dist/lib/author.js.map +1 -1
  15. package/dist/lib/cherrypickAndCreateTargetPullRequest/autoMergeNowOrLater.js +3 -4
  16. package/dist/lib/cherrypickAndCreateTargetPullRequest/autoMergeNowOrLater.js.map +1 -1
  17. package/dist/lib/cherrypickAndCreateTargetPullRequest/cherrypickAndCreateTargetPullRequest.test.js +6 -9
  18. package/dist/lib/cherrypickAndCreateTargetPullRequest/cherrypickAndCreateTargetPullRequest.test.js.map +1 -1
  19. package/dist/lib/github/v4/client/graphqlClient.d.ts +11 -0
  20. package/dist/lib/github/v4/client/graphqlClient.js +29 -0
  21. package/dist/lib/github/v4/client/graphqlClient.js.map +1 -0
  22. package/dist/lib/github/v4/client/graphqlClient.private.test.js +93 -0
  23. package/dist/lib/github/v4/client/graphqlClient.private.test.js.map +1 -0
  24. package/dist/lib/github/v4/client/loggingExchange.d.ts +2 -0
  25. package/dist/lib/github/v4/client/loggingExchange.js +21 -0
  26. package/dist/lib/github/v4/client/loggingExchange.js.map +1 -0
  27. package/dist/lib/github/v4/client/responseMetaInterceptorExchange.d.ts +2 -0
  28. package/dist/lib/github/v4/client/responseMetaInterceptorExchange.js +45 -0
  29. package/dist/lib/github/v4/client/responseMetaInterceptorExchange.js.map +1 -0
  30. package/dist/lib/github/v4/disablePullRequestAutoMerge.js +13 -17
  31. package/dist/lib/github/v4/disablePullRequestAutoMerge.js.map +1 -1
  32. package/dist/lib/github/v4/enablePullRequestAutoMerge.d.ts +2 -4
  33. package/dist/lib/github/v4/enablePullRequestAutoMerge.js +20 -24
  34. package/dist/lib/github/v4/enablePullRequestAutoMerge.js.map +1 -1
  35. package/dist/lib/github/v4/enablePullRequestAutoMerge.mutation.test.js +6 -8
  36. package/dist/lib/github/v4/enablePullRequestAutoMerge.mutation.test.js.map +1 -1
  37. package/dist/lib/github/v4/fetchAuthorId.d.ts +1 -6
  38. package/dist/lib/github/v4/fetchAuthorId.js +11 -14
  39. package/dist/lib/github/v4/fetchAuthorId.js.map +1 -1
  40. package/dist/lib/github/v4/fetchCommits/fetchCommitByPullNumber.js +16 -29
  41. package/dist/lib/github/v4/fetchCommits/fetchCommitByPullNumber.js.map +1 -1
  42. package/dist/lib/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js +0 -54
  43. package/dist/lib/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js.map +1 -1
  44. package/dist/lib/github/v4/fetchCommits/fetchCommitBySha.js +13 -27
  45. package/dist/lib/github/v4/fetchCommits/fetchCommitBySha.js.map +1 -1
  46. package/dist/lib/github/v4/fetchCommits/fetchCommitBySha.private.test.js +0 -55
  47. package/dist/lib/github/v4/fetchCommits/fetchCommitBySha.private.test.js.map +1 -1
  48. package/dist/lib/github/v4/fetchCommits/fetchCommitsByAuthor.d.ts +1 -14
  49. package/dist/lib/github/v4/fetchCommits/fetchCommitsByAuthor.js +28 -30
  50. package/dist/lib/github/v4/fetchCommits/fetchCommitsByAuthor.js.map +1 -1
  51. package/dist/lib/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js +0 -59
  52. package/dist/lib/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js.map +1 -1
  53. package/dist/lib/github/v4/fetchCommits/fetchCommitsByAuthor.test.js +9 -13
  54. package/dist/lib/github/v4/fetchCommits/fetchCommitsByAuthor.test.js.map +1 -1
  55. package/dist/lib/github/v4/fetchCommits/fetchCommitsForRebaseAndMergeStrategy.js +18 -25
  56. package/dist/lib/github/v4/fetchCommits/fetchCommitsForRebaseAndMergeStrategy.js.map +1 -1
  57. package/dist/lib/github/v4/fetchCommits/fetchPullRequestsBySearchQuery.js +23 -26
  58. package/dist/lib/github/v4/fetchCommits/fetchPullRequestsBySearchQuery.js.map +1 -1
  59. package/dist/lib/github/v4/fetchExistingPullRequest.d.ts +1 -1
  60. package/dist/lib/github/v4/fetchExistingPullRequest.js +18 -20
  61. package/dist/lib/github/v4/fetchExistingPullRequest.js.map +1 -1
  62. package/dist/lib/github/v4/fetchPullRequestAutoMergeMethod.d.ts +1 -1
  63. package/dist/lib/github/v4/fetchPullRequestAutoMergeMethod.js +15 -18
  64. package/dist/lib/github/v4/fetchPullRequestAutoMergeMethod.js.map +1 -1
  65. package/dist/lib/github/v4/fetchPullRequestId2.js +34 -0
  66. package/dist/lib/github/v4/fetchPullRequestId2.js.map +1 -0
  67. package/dist/lib/github/v4/getInvalidAccessTokenMessage.d.ts +7 -0
  68. package/dist/lib/github/v4/getInvalidAccessTokenMessage.js +52 -0
  69. package/dist/lib/github/v4/getInvalidAccessTokenMessage.js.map +1 -0
  70. package/dist/lib/github/v4/getInvalidAccessTokenMessage.test.js +93 -0
  71. package/dist/lib/github/v4/getInvalidAccessTokenMessage.test.js.map +1 -0
  72. package/dist/lib/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +1 -1
  73. package/dist/lib/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +57 -29
  74. package/dist/lib/github/v4/getOptionsFromGithub/getOptionsFromGithub.js.map +1 -1
  75. package/dist/lib/github/v4/getRepoOwnerAndNameFromGitRemotes.d.ts +0 -21
  76. package/dist/lib/github/v4/getRepoOwnerAndNameFromGitRemotes.js +31 -37
  77. package/dist/lib/github/v4/getRepoOwnerAndNameFromGitRemotes.js.map +1 -1
  78. package/dist/lib/github/v4/mocks/commitsByAuthorMock.d.ts +2 -2
  79. package/dist/lib/github/v4/mocks/commitsByAuthorMock.js +11 -1
  80. package/dist/lib/github/v4/mocks/commitsByAuthorMock.js.map +1 -1
  81. package/dist/lib/github/v4/validateTargetBranch.js +11 -14
  82. package/dist/lib/github/v4/validateTargetBranch.js.map +1 -1
  83. package/dist/lib/remoteConfig.d.ts +4 -19
  84. package/dist/lib/remoteConfig.js +17 -23
  85. package/dist/lib/remoteConfig.js.map +1 -1
  86. package/dist/lib/sourceCommit/getMockSourceCommit.d.ts +3 -3
  87. package/dist/lib/sourceCommit/getMockSourceCommit.js +6 -0
  88. package/dist/lib/sourceCommit/getMockSourceCommit.js.map +1 -1
  89. package/dist/lib/sourceCommit/getPullRequestStates.d.ts +5 -6
  90. package/dist/lib/sourceCommit/getPullRequestStates.js +17 -19
  91. package/dist/lib/sourceCommit/getPullRequestStates.js.map +1 -1
  92. package/dist/lib/sourceCommit/getPullRequestStates.test.js +18 -17
  93. package/dist/lib/sourceCommit/getPullRequestStates.test.js.map +1 -1
  94. package/dist/lib/sourceCommit/getSourcePullRequest.d.ts +221 -0
  95. package/dist/lib/sourceCommit/getSourcePullRequest.js +8 -0
  96. package/dist/lib/sourceCommit/getSourcePullRequest.js.map +1 -0
  97. package/dist/lib/sourceCommit/isPullRequestCrossReferencedEvent.d.ts +17 -0
  98. package/dist/lib/sourceCommit/isPullRequestCrossReferencedEvent.js +9 -0
  99. package/dist/lib/sourceCommit/isPullRequestCrossReferencedEvent.js.map +1 -0
  100. package/dist/lib/sourceCommit/parseSourceCommit.d.ts +4 -84
  101. package/dist/lib/sourceCommit/parseSourceCommit.js +17 -14
  102. package/dist/lib/sourceCommit/parseSourceCommit.js.map +1 -1
  103. package/dist/lib/sourceCommit/parseSourceCommit.test.js +14 -15
  104. package/dist/lib/sourceCommit/parseSourceCommit.test.js.map +1 -1
  105. package/dist/options/cliArgs.d.ts +6 -6
  106. package/dist/options/options.d.ts +7 -7
  107. package/dist/options/options.test.js +8 -7
  108. package/dist/options/options.test.js.map +1 -1
  109. package/dist/test/e2e/cli/entrypoint.cli.private.test.js +1 -1
  110. package/dist/test/e2e/cli/error-handling-non-interactive-mode.private.test.js +1 -1
  111. package/dist/test/e2e/cli/error-handling-non-interactive-mode.private.test.js.map +1 -1
  112. package/dist/test/e2e/cli/runBackportViaCli.d.ts +1 -1
  113. package/dist/test/e2e/module/entrypoint.module.mutation.test.js +0 -6
  114. package/dist/test/e2e/module/entrypoint.module.mutation.test.js.map +1 -1
  115. package/dist/test/nockHelpers.d.ts +13 -11
  116. package/dist/test/nockHelpers.js +17 -14
  117. package/dist/test/nockHelpers.js.map +1 -1
  118. package/dist/test/setupFiles/automatic-mocks.js +2 -0
  119. package/dist/test/setupFiles/automatic-mocks.js.map +1 -1
  120. package/dist/tsconfig.tsbuildinfo +1 -0
  121. package/dist/utils/packageVersion.d.ts +1 -1
  122. package/dist/utils/packageVersion.js +1 -1
  123. package/dist/utils/packageVersion.js.map +1 -1
  124. package/package.json +31 -18
  125. package/yarn.lock +3202 -1490
  126. package/dist/lib/github/v4/FetchPullRequestId.js +0 -37
  127. package/dist/lib/github/v4/FetchPullRequestId.js.map +0 -1
  128. package/dist/lib/github/v4/apiRequestV4.d.ts +0 -32
  129. package/dist/lib/github/v4/apiRequestV4.js +0 -90
  130. package/dist/lib/github/v4/apiRequestV4.js.map +0 -1
  131. package/dist/lib/github/v4/apiRequestV4.test.js +0 -111
  132. package/dist/lib/github/v4/apiRequestV4.test.js.map +0 -1
  133. package/dist/lib/github/v4/getOptionsFromGithub/query.d.ts +0 -17
  134. package/dist/lib/github/v4/getOptionsFromGithub/query.js +0 -31
  135. package/dist/lib/github/v4/getOptionsFromGithub/query.js.map +0 -1
  136. package/dist/lib/github/v4/throwOnInvalidAccessToken.d.ts +0 -7
  137. package/dist/lib/github/v4/throwOnInvalidAccessToken.js +0 -46
  138. package/dist/lib/github/v4/throwOnInvalidAccessToken.js.map +0 -1
  139. package/dist/lib/github/v4/throwOnInvalidAccessToken.test.js +0 -88
  140. package/dist/lib/github/v4/throwOnInvalidAccessToken.test.js.map +0 -1
  141. /package/dist/lib/github/v4/{apiRequestV4.test.d.ts → client/graphqlClient.private.test.d.ts} +0 -0
  142. /package/dist/lib/github/v4/{FetchPullRequestId.d.ts → fetchPullRequestId2.d.ts} +0 -0
  143. /package/dist/lib/github/v4/{throwOnInvalidAccessToken.test.d.ts → getInvalidAccessTokenMessage.test.d.ts} +0 -0
package/README.md CHANGED
@@ -24,7 +24,7 @@ The remaining documentation focuses on the Backport CLI tool (not the Github Act
24
24
 
25
25
  ## Requirements
26
26
 
27
- - Node 16 or higher
27
+ - Node 20 or higher
28
28
  - git
29
29
 
30
30
  ## Install
@@ -12,7 +12,7 @@ const env_1 = require("./lib/env");
12
12
  const getCommits_1 = require("./lib/getCommits");
13
13
  const getTargetBranches_1 = require("./lib/getTargetBranches");
14
14
  const createStatusComment_1 = require("./lib/github/v3/createStatusComment");
15
- const apiRequestV4_1 = require("./lib/github/v4/apiRequestV4");
15
+ const graphqlClient_1 = require("./lib/github/v4/client/graphqlClient");
16
16
  const logger_1 = require("./lib/logger");
17
17
  const ora_1 = require("./lib/ora");
18
18
  const registerHandlebarsHelpers_1 = require("./lib/registerHandlebarsHelpers");
@@ -129,7 +129,7 @@ async function backportRun({ processArgs, optionsFromModule = {}, exitCodeOnFail
129
129
  }
130
130
  exports.backportRun = backportRun;
131
131
  function outputError({ e, logFilePath, }) {
132
- if (e instanceof BackportError_1.BackportError || e instanceof apiRequestV4_1.GithubV4Exception) {
132
+ if (e instanceof BackportError_1.BackportError || e instanceof graphqlClient_1.GithubV4Exception) {
133
133
  (0, logger_1.consoleLog)(e.message);
134
134
  return;
135
135
  }
@@ -1 +1 @@
1
- {"version":3,"file":"backportRun.js","sourceRoot":"","sources":["../src/backportRun.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;A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els?: string[] | undefined;
84
84
  addOriginalReviewers?: boolean | undefined;
85
85
  authenticatedUsername: string;
86
- isRepoPrivate: boolean;
86
+ isRepoPrivate: boolean | undefined;
87
87
  }>;
88
88
  export declare function backportRun({ options, processArgs, exitCodeOnFailure, }: {
89
89
  options?: ConfigFileOptions;
@@ -0,0 +1,121 @@
1
+ import * as types from './graphql';
2
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
3
+ /**
4
+ * Map of all GraphQL operations in the project.
5
+ *
6
+ * This map has several performance disadvantages:
7
+ * 1. It is not tree-shakeable, so it will include all operations in the project.
8
+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
9
+ * 3. It does not support dead code elimination, so it will add unused operations.
10
+ *
11
+ * Therefore it is highly recommended to use the babel or swc plugin for production.
12
+ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
13
+ */
14
+ type Documents = {
15
+ "\n query GetViewer {\n viewer {\n login\n }\n }\n": typeof types.GetViewerDocument;
16
+ "\n query GetRepo($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n }\n }\n": typeof types.GetRepoDocument;
17
+ "\n mutation DisablePullRequestAutoMerge($pullRequestId: ID!) {\n disablePullRequestAutoMerge(input: { pullRequestId: $pullRequestId }) {\n pullRequest {\n number\n }\n }\n }\n ": typeof types.DisablePullRequestAutoMergeDocument;
18
+ "\n mutation EnablePullRequestAutoMerge(\n $pullRequestId: ID!\n $mergeMethod: PullRequestMergeMethod!\n ) {\n enablePullRequestAutoMerge(\n input: { pullRequestId: $pullRequestId, mergeMethod: $mergeMethod }\n ) {\n pullRequest {\n number\n }\n }\n }\n ": typeof types.EnablePullRequestAutoMergeDocument;
19
+ "\n query AuthorId($author: String!) {\n user(login: $author) {\n id\n }\n }\n ": typeof types.AuthorIdDocument;
20
+ "\n query CommitByPullNumber(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n # used to determine if \"Rebase and Merge\" strategy was used\n commits(last: 1) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n oid\n\n # used to determine if \"Rebase and Merge\" strategy was used\n committedDate\n history(first: 2) {\n edges {\n node {\n message\n committedDate\n }\n }\n }\n }\n }\n }\n }\n ": typeof types.CommitByPullNumberDocument;
21
+ "\n query CommitsBySha($repoOwner: String!, $repoName: String!, $sha: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n object(expression: $sha) {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n ": typeof types.CommitsByShaDocument;
22
+ "\n query CommitsByAuthor(\n $authorId: ID\n $commitPath: String\n $dateSince: GitTimestamp\n $dateUntil: GitTimestamp\n $maxNumber: Int!\n $repoName: String!\n $repoOwner: String!\n $sourceBranch: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $sourceBranch) {\n target {\n ... on Commit {\n __typename\n history(\n first: $maxNumber\n author: { id: $authorId }\n path: $commitPath\n since: $dateSince\n until: $dateUntil\n ) {\n edges {\n node {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n }\n }\n }\n ": typeof types.CommitsByAuthorDocument;
23
+ "\n query CommitsForRebaseAndMergeStrategy(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n $commitsTotalCount: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n number\n commits(first: $commitsTotalCount) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n committedDate\n history(first: $commitsTotalCount) {\n edges {\n node {\n oid\n message\n committedDate\n associatedPullRequests(first: 1) {\n edges {\n node {\n number\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n ": typeof types.CommitsForRebaseAndMergeStrategyDocument;
24
+ "\n query PullRequestBySearchQuery($query: String!, $maxNumber: Int!) {\n search(query: $query, type: ISSUE, first: $maxNumber) {\n nodes {\n ... on PullRequest {\n __typename\n mergeCommit {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n ": typeof types.PullRequestBySearchQueryDocument;
25
+ "\n query ExistingPullRequest(\n $repoOwner: String!\n $repoName: String!\n $base: String!\n $head: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n ref(qualifiedName: $head) {\n name\n associatedPullRequests(\n first: 1\n states: OPEN\n baseRefName: $base\n headRefName: $head\n ) {\n edges {\n node {\n number\n url\n }\n }\n }\n }\n }\n }\n ": typeof types.ExistingPullRequestDocument;
26
+ "\n query PullRequestAutoMergeMethod(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n autoMergeRequest {\n enabledAt\n mergeMethod\n }\n }\n }\n }\n ": typeof types.PullRequestAutoMergeMethodDocument;
27
+ "\n query PullRequestId(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n id\n }\n }\n }\n ": typeof types.PullRequestIdDocument;
28
+ "\n query GithubConfigOptions($repoOwner: String!, $repoName: String!) {\n viewer {\n login\n }\n repository(owner: $repoOwner, name: $repoName) {\n # check to see if a branch named \"backport\" exists\n illegalBackportBranch: ref(qualifiedName: \"refs/heads/backport\") {\n id\n }\n isPrivate\n defaultBranchRef {\n name\n target {\n __typename\n ...RemoteConfigHistoryFragment\n }\n }\n }\n }\n ": typeof types.GithubConfigOptionsDocument;
29
+ "\n query RepoOwnerAndName($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n isFork\n name\n owner {\n login\n }\n parent {\n owner {\n login\n }\n }\n }\n }\n ": typeof types.RepoOwnerAndNameDocument;
30
+ "\n query GetBranchId(\n $repoOwner: String!\n $repoName: String!\n $branchName: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $branchName) {\n id\n }\n }\n }\n ": typeof types.GetBranchIdDocument;
31
+ "\n fragment RemoteConfigHistoryFragment on Commit {\n remoteConfigHistory: history(first: 1, path: \".backportrc.json\") {\n edges {\n remoteConfig: node {\n committedDate\n file(path: \".backportrc.json\") {\n ... on TreeEntry {\n __typename\n object {\n ... on Blob {\n __typename\n text\n }\n }\n }\n }\n }\n }\n }\n }\n": typeof types.RemoteConfigHistoryFragmentFragmentDoc;
32
+ "\n fragment SourceCommitWithTargetPullRequestFragment on Commit {\n __typename\n # Source Commit\n repository {\n name\n owner {\n login\n }\n }\n sha: oid\n message\n committedDate\n\n author {\n name\n email\n }\n\n # Source pull request: PR where source commit was merged in\n associatedPullRequests(first: 1) {\n edges {\n node {\n title\n url\n number\n labels(first: 50) {\n nodes {\n name\n }\n }\n baseRefName\n\n # source merge commit (the commit that actually went into the source branch)\n mergeCommit {\n __typename\n ...RemoteConfigHistoryFragment\n sha: oid\n message\n }\n\n # (possible) backport pull requests referenced in the source pull request\n timelineItems(last: 20, itemTypes: CROSS_REFERENCED_EVENT) {\n edges {\n node {\n ... on CrossReferencedEvent {\n __typename\n targetPullRequest: source {\n __typename\n\n # Target PRs (backport PRs)\n ... on PullRequest {\n __typename\n # target merge commit: the backport commit that was merged into the target branch\n targetMergeCommit: mergeCommit {\n sha: oid\n message\n }\n repository {\n name\n owner {\n login\n }\n }\n url\n title\n state\n baseRefName\n number\n commits(first: 20) {\n edges {\n node {\n targetCommit: commit {\n message\n sha: oid\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n": typeof types.SourceCommitWithTargetPullRequestFragmentFragmentDoc;
33
+ };
34
+ declare const documents: Documents;
35
+ /**
36
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
37
+ *
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
42
+ * ```
43
+ *
44
+ * The query argument is unknown!
45
+ * Please regenerate the types.
46
+ */
47
+ export declare function graphql(source: string): unknown;
48
+ /**
49
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
50
+ */
51
+ export declare function graphql(source: "\n query GetViewer {\n viewer {\n login\n }\n }\n"): (typeof documents)["\n query GetViewer {\n viewer {\n login\n }\n }\n"];
52
+ /**
53
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
54
+ */
55
+ export declare function graphql(source: "\n query GetRepo($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n }\n }\n"): (typeof documents)["\n query GetRepo($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n }\n }\n"];
56
+ /**
57
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
58
+ */
59
+ export declare function graphql(source: "\n mutation DisablePullRequestAutoMerge($pullRequestId: ID!) {\n disablePullRequestAutoMerge(input: { pullRequestId: $pullRequestId }) {\n pullRequest {\n number\n }\n }\n }\n "): (typeof documents)["\n mutation DisablePullRequestAutoMerge($pullRequestId: ID!) {\n disablePullRequestAutoMerge(input: { pullRequestId: $pullRequestId }) {\n pullRequest {\n number\n }\n }\n }\n "];
60
+ /**
61
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
62
+ */
63
+ export declare function graphql(source: "\n mutation EnablePullRequestAutoMerge(\n $pullRequestId: ID!\n $mergeMethod: PullRequestMergeMethod!\n ) {\n enablePullRequestAutoMerge(\n input: { pullRequestId: $pullRequestId, mergeMethod: $mergeMethod }\n ) {\n pullRequest {\n number\n }\n }\n }\n "): (typeof documents)["\n mutation EnablePullRequestAutoMerge(\n $pullRequestId: ID!\n $mergeMethod: PullRequestMergeMethod!\n ) {\n enablePullRequestAutoMerge(\n input: { pullRequestId: $pullRequestId, mergeMethod: $mergeMethod }\n ) {\n pullRequest {\n number\n }\n }\n }\n "];
64
+ /**
65
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
66
+ */
67
+ export declare function graphql(source: "\n query AuthorId($author: String!) {\n user(login: $author) {\n id\n }\n }\n "): (typeof documents)["\n query AuthorId($author: String!) {\n user(login: $author) {\n id\n }\n }\n "];
68
+ /**
69
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
70
+ */
71
+ export declare function graphql(source: "\n query CommitByPullNumber(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n # used to determine if \"Rebase and Merge\" strategy was used\n commits(last: 1) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n oid\n\n # used to determine if \"Rebase and Merge\" strategy was used\n committedDate\n history(first: 2) {\n edges {\n node {\n message\n committedDate\n }\n }\n }\n }\n }\n }\n }\n "): (typeof documents)["\n query CommitByPullNumber(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n # used to determine if \"Rebase and Merge\" strategy was used\n commits(last: 1) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n oid\n\n # used to determine if \"Rebase and Merge\" strategy was used\n committedDate\n history(first: 2) {\n edges {\n node {\n message\n committedDate\n }\n }\n }\n }\n }\n }\n }\n "];
72
+ /**
73
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
74
+ */
75
+ export declare function graphql(source: "\n query CommitsBySha($repoOwner: String!, $repoName: String!, $sha: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n object(expression: $sha) {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n "): (typeof documents)["\n query CommitsBySha($repoOwner: String!, $repoName: String!, $sha: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n object(expression: $sha) {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n "];
76
+ /**
77
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
78
+ */
79
+ export declare function graphql(source: "\n query CommitsByAuthor(\n $authorId: ID\n $commitPath: String\n $dateSince: GitTimestamp\n $dateUntil: GitTimestamp\n $maxNumber: Int!\n $repoName: String!\n $repoOwner: String!\n $sourceBranch: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $sourceBranch) {\n target {\n ... on Commit {\n __typename\n history(\n first: $maxNumber\n author: { id: $authorId }\n path: $commitPath\n since: $dateSince\n until: $dateUntil\n ) {\n edges {\n node {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n }\n }\n }\n "): (typeof documents)["\n query CommitsByAuthor(\n $authorId: ID\n $commitPath: String\n $dateSince: GitTimestamp\n $dateUntil: GitTimestamp\n $maxNumber: Int!\n $repoName: String!\n $repoOwner: String!\n $sourceBranch: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $sourceBranch) {\n target {\n ... on Commit {\n __typename\n history(\n first: $maxNumber\n author: { id: $authorId }\n path: $commitPath\n since: $dateSince\n until: $dateUntil\n ) {\n edges {\n node {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n }\n }\n }\n "];
80
+ /**
81
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
82
+ */
83
+ export declare function graphql(source: "\n query CommitsForRebaseAndMergeStrategy(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n $commitsTotalCount: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n number\n commits(first: $commitsTotalCount) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n committedDate\n history(first: $commitsTotalCount) {\n edges {\n node {\n oid\n message\n committedDate\n associatedPullRequests(first: 1) {\n edges {\n node {\n number\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n "): (typeof documents)["\n query CommitsForRebaseAndMergeStrategy(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n $commitsTotalCount: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n number\n commits(first: $commitsTotalCount) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n committedDate\n history(first: $commitsTotalCount) {\n edges {\n node {\n oid\n message\n committedDate\n associatedPullRequests(first: 1) {\n edges {\n node {\n number\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n "];
84
+ /**
85
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
86
+ */
87
+ export declare function graphql(source: "\n query PullRequestBySearchQuery($query: String!, $maxNumber: Int!) {\n search(query: $query, type: ISSUE, first: $maxNumber) {\n nodes {\n ... on PullRequest {\n __typename\n mergeCommit {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n "): (typeof documents)["\n query PullRequestBySearchQuery($query: String!, $maxNumber: Int!) {\n search(query: $query, type: ISSUE, first: $maxNumber) {\n nodes {\n ... on PullRequest {\n __typename\n mergeCommit {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n "];
88
+ /**
89
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
90
+ */
91
+ export declare function graphql(source: "\n query ExistingPullRequest(\n $repoOwner: String!\n $repoName: String!\n $base: String!\n $head: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n ref(qualifiedName: $head) {\n name\n associatedPullRequests(\n first: 1\n states: OPEN\n baseRefName: $base\n headRefName: $head\n ) {\n edges {\n node {\n number\n url\n }\n }\n }\n }\n }\n }\n "): (typeof documents)["\n query ExistingPullRequest(\n $repoOwner: String!\n $repoName: String!\n $base: String!\n $head: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n ref(qualifiedName: $head) {\n name\n associatedPullRequests(\n first: 1\n states: OPEN\n baseRefName: $base\n headRefName: $head\n ) {\n edges {\n node {\n number\n url\n }\n }\n }\n }\n }\n }\n "];
92
+ /**
93
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
94
+ */
95
+ export declare function graphql(source: "\n query PullRequestAutoMergeMethod(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n autoMergeRequest {\n enabledAt\n mergeMethod\n }\n }\n }\n }\n "): (typeof documents)["\n query PullRequestAutoMergeMethod(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n autoMergeRequest {\n enabledAt\n mergeMethod\n }\n }\n }\n }\n "];
96
+ /**
97
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
98
+ */
99
+ export declare function graphql(source: "\n query PullRequestId(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n id\n }\n }\n }\n "): (typeof documents)["\n query PullRequestId(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n id\n }\n }\n }\n "];
100
+ /**
101
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
102
+ */
103
+ export declare function graphql(source: "\n query GithubConfigOptions($repoOwner: String!, $repoName: String!) {\n viewer {\n login\n }\n repository(owner: $repoOwner, name: $repoName) {\n # check to see if a branch named \"backport\" exists\n illegalBackportBranch: ref(qualifiedName: \"refs/heads/backport\") {\n id\n }\n isPrivate\n defaultBranchRef {\n name\n target {\n __typename\n ...RemoteConfigHistoryFragment\n }\n }\n }\n }\n "): (typeof documents)["\n query GithubConfigOptions($repoOwner: String!, $repoName: String!) {\n viewer {\n login\n }\n repository(owner: $repoOwner, name: $repoName) {\n # check to see if a branch named \"backport\" exists\n illegalBackportBranch: ref(qualifiedName: \"refs/heads/backport\") {\n id\n }\n isPrivate\n defaultBranchRef {\n name\n target {\n __typename\n ...RemoteConfigHistoryFragment\n }\n }\n }\n }\n "];
104
+ /**
105
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
106
+ */
107
+ export declare function graphql(source: "\n query RepoOwnerAndName($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n isFork\n name\n owner {\n login\n }\n parent {\n owner {\n login\n }\n }\n }\n }\n "): (typeof documents)["\n query RepoOwnerAndName($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n isFork\n name\n owner {\n login\n }\n parent {\n owner {\n login\n }\n }\n }\n }\n "];
108
+ /**
109
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
110
+ */
111
+ export declare function graphql(source: "\n query GetBranchId(\n $repoOwner: String!\n $repoName: String!\n $branchName: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $branchName) {\n id\n }\n }\n }\n "): (typeof documents)["\n query GetBranchId(\n $repoOwner: String!\n $repoName: String!\n $branchName: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $branchName) {\n id\n }\n }\n }\n "];
112
+ /**
113
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
114
+ */
115
+ export declare function graphql(source: "\n fragment RemoteConfigHistoryFragment on Commit {\n remoteConfigHistory: history(first: 1, path: \".backportrc.json\") {\n edges {\n remoteConfig: node {\n committedDate\n file(path: \".backportrc.json\") {\n ... on TreeEntry {\n __typename\n object {\n ... on Blob {\n __typename\n text\n }\n }\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\n fragment RemoteConfigHistoryFragment on Commit {\n remoteConfigHistory: history(first: 1, path: \".backportrc.json\") {\n edges {\n remoteConfig: node {\n committedDate\n file(path: \".backportrc.json\") {\n ... on TreeEntry {\n __typename\n object {\n ... on Blob {\n __typename\n text\n }\n }\n }\n }\n }\n }\n }\n }\n"];
116
+ /**
117
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
118
+ */
119
+ export declare function graphql(source: "\n fragment SourceCommitWithTargetPullRequestFragment on Commit {\n __typename\n # Source Commit\n repository {\n name\n owner {\n login\n }\n }\n sha: oid\n message\n committedDate\n\n author {\n name\n email\n }\n\n # Source pull request: PR where source commit was merged in\n associatedPullRequests(first: 1) {\n edges {\n node {\n title\n url\n number\n labels(first: 50) {\n nodes {\n name\n }\n }\n baseRefName\n\n # source merge commit (the commit that actually went into the source branch)\n mergeCommit {\n __typename\n ...RemoteConfigHistoryFragment\n sha: oid\n message\n }\n\n # (possible) backport pull requests referenced in the source pull request\n timelineItems(last: 20, itemTypes: CROSS_REFERENCED_EVENT) {\n edges {\n node {\n ... on CrossReferencedEvent {\n __typename\n targetPullRequest: source {\n __typename\n\n # Target PRs (backport PRs)\n ... on PullRequest {\n __typename\n # target merge commit: the backport commit that was merged into the target branch\n targetMergeCommit: mergeCommit {\n sha: oid\n message\n }\n repository {\n name\n owner {\n login\n }\n }\n url\n title\n state\n baseRefName\n number\n commits(first: 20) {\n edges {\n node {\n targetCommit: commit {\n message\n sha: oid\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\n fragment SourceCommitWithTargetPullRequestFragment on Commit {\n __typename\n # Source Commit\n repository {\n name\n owner {\n login\n }\n }\n sha: oid\n message\n committedDate\n\n author {\n name\n email\n }\n\n # Source pull request: PR where source commit was merged in\n associatedPullRequests(first: 1) {\n edges {\n node {\n title\n url\n number\n labels(first: 50) {\n nodes {\n name\n }\n }\n baseRefName\n\n # source merge commit (the commit that actually went into the source branch)\n mergeCommit {\n __typename\n ...RemoteConfigHistoryFragment\n sha: oid\n message\n }\n\n # (possible) backport pull requests referenced in the source pull request\n timelineItems(last: 20, itemTypes: CROSS_REFERENCED_EVENT) {\n edges {\n node {\n ... on CrossReferencedEvent {\n __typename\n targetPullRequest: source {\n __typename\n\n # Target PRs (backport PRs)\n ... on PullRequest {\n __typename\n # target merge commit: the backport commit that was merged into the target branch\n targetMergeCommit: mergeCommit {\n sha: oid\n message\n }\n repository {\n name\n owner {\n login\n }\n }\n url\n title\n state\n baseRefName\n number\n commits(first: 20) {\n edges {\n node {\n targetCommit: commit {\n message\n sha: oid\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"];
120
+ export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
121
+ export {};
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.graphql = void 0;
27
+ /* eslint-disable */
28
+ const types = __importStar(require("./graphql"));
29
+ const documents = {
30
+ "\n query GetViewer {\n viewer {\n login\n }\n }\n": types.GetViewerDocument,
31
+ "\n query GetRepo($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n }\n }\n": types.GetRepoDocument,
32
+ "\n mutation DisablePullRequestAutoMerge($pullRequestId: ID!) {\n disablePullRequestAutoMerge(input: { pullRequestId: $pullRequestId }) {\n pullRequest {\n number\n }\n }\n }\n ": types.DisablePullRequestAutoMergeDocument,
33
+ "\n mutation EnablePullRequestAutoMerge(\n $pullRequestId: ID!\n $mergeMethod: PullRequestMergeMethod!\n ) {\n enablePullRequestAutoMerge(\n input: { pullRequestId: $pullRequestId, mergeMethod: $mergeMethod }\n ) {\n pullRequest {\n number\n }\n }\n }\n ": types.EnablePullRequestAutoMergeDocument,
34
+ "\n query AuthorId($author: String!) {\n user(login: $author) {\n id\n }\n }\n ": types.AuthorIdDocument,
35
+ "\n query CommitByPullNumber(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n # used to determine if \"Rebase and Merge\" strategy was used\n commits(last: 1) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n oid\n\n # used to determine if \"Rebase and Merge\" strategy was used\n committedDate\n history(first: 2) {\n edges {\n node {\n message\n committedDate\n }\n }\n }\n }\n }\n }\n }\n ": types.CommitByPullNumberDocument,
36
+ "\n query CommitsBySha($repoOwner: String!, $repoName: String!, $sha: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n object(expression: $sha) {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n ": types.CommitsByShaDocument,
37
+ "\n query CommitsByAuthor(\n $authorId: ID\n $commitPath: String\n $dateSince: GitTimestamp\n $dateUntil: GitTimestamp\n $maxNumber: Int!\n $repoName: String!\n $repoOwner: String!\n $sourceBranch: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $sourceBranch) {\n target {\n ... on Commit {\n __typename\n history(\n first: $maxNumber\n author: { id: $authorId }\n path: $commitPath\n since: $dateSince\n until: $dateUntil\n ) {\n edges {\n node {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n }\n }\n }\n ": types.CommitsByAuthorDocument,
38
+ "\n query CommitsForRebaseAndMergeStrategy(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n $commitsTotalCount: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n number\n commits(first: $commitsTotalCount) {\n totalCount\n edges {\n node {\n commit {\n message\n }\n }\n }\n }\n\n mergeCommit {\n committedDate\n history(first: $commitsTotalCount) {\n edges {\n node {\n oid\n message\n committedDate\n associatedPullRequests(first: 1) {\n edges {\n node {\n number\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n ": types.CommitsForRebaseAndMergeStrategyDocument,
39
+ "\n query PullRequestBySearchQuery($query: String!, $maxNumber: Int!) {\n search(query: $query, type: ISSUE, first: $maxNumber) {\n nodes {\n ... on PullRequest {\n __typename\n mergeCommit {\n __typename\n ...SourceCommitWithTargetPullRequestFragment\n }\n }\n }\n }\n }\n ": types.PullRequestBySearchQueryDocument,
40
+ "\n query ExistingPullRequest(\n $repoOwner: String!\n $repoName: String!\n $base: String!\n $head: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n name\n ref(qualifiedName: $head) {\n name\n associatedPullRequests(\n first: 1\n states: OPEN\n baseRefName: $base\n headRefName: $head\n ) {\n edges {\n node {\n number\n url\n }\n }\n }\n }\n }\n }\n ": types.ExistingPullRequestDocument,
41
+ "\n query PullRequestAutoMergeMethod(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n autoMergeRequest {\n enabledAt\n mergeMethod\n }\n }\n }\n }\n ": types.PullRequestAutoMergeMethodDocument,
42
+ "\n query PullRequestId(\n $repoOwner: String!\n $repoName: String!\n $pullNumber: Int!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n pullRequest(number: $pullNumber) {\n id\n }\n }\n }\n ": types.PullRequestIdDocument,
43
+ "\n query GithubConfigOptions($repoOwner: String!, $repoName: String!) {\n viewer {\n login\n }\n repository(owner: $repoOwner, name: $repoName) {\n # check to see if a branch named \"backport\" exists\n illegalBackportBranch: ref(qualifiedName: \"refs/heads/backport\") {\n id\n }\n isPrivate\n defaultBranchRef {\n name\n target {\n __typename\n ...RemoteConfigHistoryFragment\n }\n }\n }\n }\n ": types.GithubConfigOptionsDocument,
44
+ "\n query RepoOwnerAndName($repoOwner: String!, $repoName: String!) {\n repository(owner: $repoOwner, name: $repoName) {\n isFork\n name\n owner {\n login\n }\n parent {\n owner {\n login\n }\n }\n }\n }\n ": types.RepoOwnerAndNameDocument,
45
+ "\n query GetBranchId(\n $repoOwner: String!\n $repoName: String!\n $branchName: String!\n ) {\n repository(owner: $repoOwner, name: $repoName) {\n ref(qualifiedName: $branchName) {\n id\n }\n }\n }\n ": types.GetBranchIdDocument,
46
+ "\n fragment RemoteConfigHistoryFragment on Commit {\n remoteConfigHistory: history(first: 1, path: \".backportrc.json\") {\n edges {\n remoteConfig: node {\n committedDate\n file(path: \".backportrc.json\") {\n ... on TreeEntry {\n __typename\n object {\n ... on Blob {\n __typename\n text\n }\n }\n }\n }\n }\n }\n }\n }\n": types.RemoteConfigHistoryFragmentFragmentDoc,
47
+ "\n fragment SourceCommitWithTargetPullRequestFragment on Commit {\n __typename\n # Source Commit\n repository {\n name\n owner {\n login\n }\n }\n sha: oid\n message\n committedDate\n\n author {\n name\n email\n }\n\n # Source pull request: PR where source commit was merged in\n associatedPullRequests(first: 1) {\n edges {\n node {\n title\n url\n number\n labels(first: 50) {\n nodes {\n name\n }\n }\n baseRefName\n\n # source merge commit (the commit that actually went into the source branch)\n mergeCommit {\n __typename\n ...RemoteConfigHistoryFragment\n sha: oid\n message\n }\n\n # (possible) backport pull requests referenced in the source pull request\n timelineItems(last: 20, itemTypes: CROSS_REFERENCED_EVENT) {\n edges {\n node {\n ... on CrossReferencedEvent {\n __typename\n targetPullRequest: source {\n __typename\n\n # Target PRs (backport PRs)\n ... on PullRequest {\n __typename\n # target merge commit: the backport commit that was merged into the target branch\n targetMergeCommit: mergeCommit {\n sha: oid\n message\n }\n repository {\n name\n owner {\n login\n }\n }\n url\n title\n state\n baseRefName\n number\n commits(first: 20) {\n edges {\n node {\n targetCommit: commit {\n message\n sha: oid\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n": types.SourceCommitWithTargetPullRequestFragmentFragmentDoc,
48
+ };
49
+ function graphql(source) {
50
+ return documents[source] ?? {};
51
+ }
52
+ exports.graphql = graphql;
53
+ //# sourceMappingURL=gql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../src/graphql/generated/gql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,iDAAmC;AAkCnC,MAAM,SAAS,GAAc;IACzB,gEAAgE,EAAE,KAAK,CAAC,iBAAiB;IACzF,8IAA8I,EAAE,KAAK,CAAC,eAAe;IACrK,0NAA0N,EAAE,KAAK,CAAC,mCAAmC;IACrQ,gUAAgU,EAAE,KAAK,CAAC,kCAAkC;IAC1W,wGAAwG,EAAE,KAAK,CAAC,gBAAgB;IAChI,03BAA03B,EAAE,KAAK,CAAC,0BAA0B;IAC55B,6RAA6R,EAAE,KAAK,CAAC,oBAAoB;IACzT,65BAA65B,EAAE,KAAK,CAAC,uBAAuB;IAC57B,miCAAmiC,EAAE,KAAK,CAAC,wCAAwC;IACnlC,+XAA+X,EAAE,KAAK,CAAC,gCAAgC;IACva,6kBAA6kB,EAAE,KAAK,CAAC,2BAA2B;IAChnB,8VAA8V,EAAE,KAAK,CAAC,kCAAkC;IACxY,oQAAoQ,EAAE,KAAK,CAAC,qBAAqB;IACjS,ohBAAohB,EAAE,KAAK,CAAC,2BAA2B;IACvjB,8UAA8U,EAAE,KAAK,CAAC,wBAAwB;IAC9W,oQAAoQ,EAAE,KAAK,CAAC,mBAAmB;IAC/R,6fAA6f,EAAE,KAAK,CAAC,sCAAsC;IAC3iB,y1EAAy1E,EAAE,KAAK,CAAC,oDAAoD;CACx5E,CAAC;AAyFF,SAAgB,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC;AAFD,0BAEC"}