backport 10.2.0 → 11.0.0-beta.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.
- package/bin/backport +1 -1
- package/dist/src/backport-run.d.ts +5 -22
- package/dist/src/backport-run.js +76 -130
- package/dist/src/backport-run.js.map +1 -1
- package/dist/src/entrypoint.api.d.ts +18 -22
- package/dist/src/entrypoint.api.js +55 -88
- package/dist/src/entrypoint.api.js.map +1 -1
- package/dist/src/entrypoint.cli.d.ts +1 -1
- package/dist/src/entrypoint.cli.js +17 -13
- package/dist/src/entrypoint.cli.js.map +1 -1
- package/dist/src/graphql/generated/gql.d.ts +1 -1
- package/dist/src/graphql/generated/gql.js +4 -38
- package/dist/src/graphql/generated/gql.js.map +1 -1
- package/dist/src/graphql/generated/graphql.d.ts +2000 -1619
- package/dist/src/graphql/generated/graphql.js +659 -581
- package/dist/src/graphql/generated/graphql.js.map +1 -1
- package/dist/src/graphql/generated/index.d.ts +1 -1
- package/dist/src/graphql/generated/index.js +1 -17
- package/dist/src/graphql/generated/index.js.map +1 -1
- package/dist/src/lib/author.d.ts +2 -2
- package/dist/src/lib/author.js +1 -4
- package/dist/src/lib/author.js.map +1 -1
- package/dist/src/lib/backport-error.d.ts +53 -7
- package/dist/src/lib/backport-error.js +39 -15
- package/dist/src/lib/backport-error.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/auto-merge-now-or-later.d.ts +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/auto-merge-now-or-later.js +19 -23
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/auto-merge-now-or-later.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/cherrypick-and-create-target-pull-request.d.ts +2 -3
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/cherrypick-and-create-target-pull-request.js +60 -57
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/cherrypick-and-create-target-pull-request.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/copy-source-pull-request-reviewers-to-target-pull-request.d.ts +2 -2
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/copy-source-pull-request-reviewers-to-target-pull-request.js +7 -10
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/copy-source-pull-request-reviewers-to-target-pull-request.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-backport-branch-name.d.ts +2 -2
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-backport-branch-name.js +6 -12
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-backport-branch-name.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-commits-without-backports.d.ts +2 -2
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-commits-without-backports.js +10 -16
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-commits-without-backports.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-merge-commit.d.ts +2 -2
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-merge-commit.js +6 -9
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-merge-commit.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-configured-target-pr-labels.d.ts +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-configured-target-pr-labels.js +7 -10
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-configured-target-pr-labels.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-source-pr-labels-to-copy.d.ts +2 -2
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-source-pr-labels-to-copy.js +3 -6
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-source-pr-labels-to-copy.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-target-prlabels.d.ts +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-target-prlabels.js +7 -10
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-target-prlabels.js.map +1 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/list-conflicting-and-unstaged-files.d.ts +7 -0
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/list-conflicting-and-unstaged-files.js +44 -0
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/list-conflicting-and-unstaged-files.js.map +1 -0
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/wait-for-cherrypick.d.ts +6 -4
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/wait-for-cherrypick.js +63 -86
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/wait-for-cherrypick.js.map +1 -1
- package/dist/src/lib/child-process-promisified.d.ts +1 -1
- package/dist/src/lib/child-process-promisified.js +27 -48
- package/dist/src/lib/child-process-promisified.js.map +1 -1
- package/dist/src/lib/env.d.ts +3 -3
- package/dist/src/lib/env.js +12 -21
- package/dist/src/lib/env.js.map +1 -1
- package/dist/src/lib/get-commits.d.ts +2 -2
- package/dist/src/lib/get-commits.js +30 -32
- package/dist/src/lib/get-commits.js.map +1 -1
- package/dist/src/lib/get-source-branch-from-commits.d.ts +1 -1
- package/dist/src/lib/get-source-branch-from-commits.js +6 -6
- package/dist/src/lib/get-source-branch-from-commits.js.map +1 -1
- package/dist/src/lib/get-target-branches.d.ts +3 -3
- package/dist/src/lib/get-target-branches.js +20 -20
- package/dist/src/lib/get-target-branches.js.map +1 -1
- package/dist/src/lib/git/branch.d.ts +12 -0
- package/dist/src/lib/git/branch.js +83 -0
- package/dist/src/lib/git/branch.js.map +1 -0
- package/dist/src/lib/git/cherrypick.d.ts +27 -0
- package/dist/src/lib/git/cherrypick.js +106 -0
- package/dist/src/lib/git/cherrypick.js.map +1 -0
- package/dist/src/lib/git/clone.d.ts +4 -0
- package/dist/src/lib/git/clone.js +47 -0
- package/dist/src/lib/git/clone.js.map +1 -0
- package/dist/src/lib/git/commit.d.ts +19 -0
- package/dist/src/lib/git/commit.js +86 -0
- package/dist/src/lib/git/commit.js.map +1 -0
- package/dist/src/lib/git/config-file-status.d.ts +9 -0
- package/dist/src/lib/git/config-file-status.js +37 -0
- package/dist/src/lib/git/config-file-status.js.map +1 -0
- package/dist/src/lib/git/diff.d.ts +12 -0
- package/dist/src/lib/git/diff.js +73 -0
- package/dist/src/lib/git/diff.js.map +1 -0
- package/dist/src/lib/git/index.d.ts +8 -0
- package/dist/src/lib/git/index.js +9 -0
- package/dist/src/lib/git/index.js.map +1 -0
- package/dist/src/lib/git/push.d.ts +10 -0
- package/dist/src/lib/git/push.js +36 -0
- package/dist/src/lib/git/push.js.map +1 -0
- package/dist/src/lib/git/remote.d.ts +13 -0
- package/dist/src/lib/git/remote.js +85 -0
- package/dist/src/lib/git/remote.js.map +1 -0
- package/dist/src/lib/github/commit-formatters.js +4 -9
- package/dist/src/lib/github/commit-formatters.js.map +1 -1
- package/dist/src/lib/github/v3/add-assignees-to-pull-request.js +11 -26
- package/dist/src/lib/github/v3/add-assignees-to-pull-request.js.map +1 -1
- package/dist/src/lib/github/v3/add-labels-to-pull-request.js +11 -26
- package/dist/src/lib/github/v3/add-labels-to-pull-request.js.map +1 -1
- package/dist/src/lib/github/v3/add-reviewers-to-pull-request.d.ts +10 -2
- package/dist/src/lib/github/v3/add-reviewers-to-pull-request.js +12 -32
- package/dist/src/lib/github/v3/add-reviewers-to-pull-request.js.map +1 -1
- package/dist/src/lib/github/v3/{getPullRequest → create-pull-request}/create-pull-request.d.ts +1 -2
- package/dist/src/lib/github/v3/create-pull-request/create-pull-request.js +57 -0
- package/dist/src/lib/github/v3/create-pull-request/create-pull-request.js.map +1 -0
- package/dist/src/lib/github/v3/{getPullRequest → create-pull-request}/get-pull-request-body.d.ts +5 -3
- package/dist/src/lib/github/v3/create-pull-request/get-pull-request-body.js +72 -0
- package/dist/src/lib/github/v3/create-pull-request/get-pull-request-body.js.map +1 -0
- package/dist/src/lib/github/v3/{getPullRequest → create-pull-request}/get-title.d.ts +2 -2
- package/dist/src/lib/github/v3/create-pull-request/get-title.js +27 -0
- package/dist/src/lib/github/v3/create-pull-request/get-title.js.map +1 -0
- package/dist/src/lib/github/v3/create-status-comment.d.ts +2 -2
- package/dist/src/lib/github/v3/create-status-comment.js +54 -84
- package/dist/src/lib/github/v3/create-status-comment.js.map +1 -1
- package/dist/src/lib/github/v3/get-github-v3-error-message.d.ts +2 -14
- package/dist/src/lib/github/v3/get-github-v3-error-message.js +4 -6
- package/dist/src/lib/github/v3/get-github-v3-error-message.js.map +1 -1
- package/dist/src/lib/github/v3/get-reviewers-from-pull-requests.js +14 -21
- package/dist/src/lib/github/v3/get-reviewers-from-pull-requests.js.map +1 -1
- package/dist/src/lib/github/v3/index.d.ts +13 -0
- package/dist/src/lib/github/v3/index.js +13 -0
- package/dist/src/lib/github/v3/index.js.map +1 -0
- package/dist/src/lib/github/v3/merge-pull-request.d.ts +1 -1
- package/dist/src/lib/github/v3/merge-pull-request.js +5 -13
- package/dist/src/lib/github/v3/merge-pull-request.js.map +1 -1
- package/dist/src/lib/github/v3/octokit-client.d.ts +10 -0
- package/dist/src/lib/github/v3/octokit-client.js +30 -0
- package/dist/src/lib/github/v3/octokit-client.js.map +1 -0
- package/dist/src/lib/github/v4/client/graphql-client.d.ts +17 -12
- package/dist/src/lib/github/v4/client/graphql-client.js +69 -23
- package/dist/src/lib/github/v4/client/graphql-client.js.map +1 -1
- package/dist/src/lib/github/v4/disable-pull-request-auto-merge.d.ts +1 -1
- package/dist/src/lib/github/v4/disable-pull-request-auto-merge.js +12 -12
- package/dist/src/lib/github/v4/disable-pull-request-auto-merge.js.map +1 -1
- package/dist/src/lib/github/v4/enable-pull-request-auto-merge.d.ts +1 -3
- package/dist/src/lib/github/v4/enable-pull-request-auto-merge.js +27 -16
- package/dist/src/lib/github/v4/enable-pull-request-auto-merge.js.map +1 -1
- package/dist/src/lib/github/v4/fetch-author-id.js +10 -10
- package/dist/src/lib/github/v4/fetch-author-id.js.map +1 -1
- package/dist/src/lib/github/v4/fetch-existing-pull-request.d.ts +2 -2
- package/dist/src/lib/github/v4/fetch-existing-pull-request.js +12 -12
- package/dist/src/lib/github/v4/fetch-existing-pull-request.js.map +1 -1
- package/dist/src/lib/github/v4/fetch-pull-request-auto-merge-method.d.ts +2 -2
- package/dist/src/lib/github/v4/fetch-pull-request-auto-merge-method.js +10 -10
- package/dist/src/lib/github/v4/fetch-pull-request-auto-merge-method.js.map +1 -1
- package/dist/src/lib/github/v4/{fetch-pull-request-id2.d.ts → fetch-pull-request-id.d.ts} +1 -1
- package/dist/src/lib/github/v4/fetch-pull-request-id.js +36 -0
- package/dist/src/lib/github/v4/fetch-pull-request-id.js.map +1 -0
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.d.ts +2 -2
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.js +26 -21
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.js.map +1 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-sha.d.ts +2 -2
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-sha.js +19 -16
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-sha.js.map +1 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.d.ts +2 -2
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.js +41 -33
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.js.map +1 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-for-rebase-and-merge-strategy.d.ts +1 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-for-rebase-and-merge-strategy.js +16 -16
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-for-rebase-and-merge-strategy.js.map +1 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-pull-requests-by-search-query.d.ts +1 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-pull-requests-by-search-query.js +24 -22
- package/dist/src/lib/github/v4/fetchCommits/fetch-pull-requests-by-search-query.js.map +1 -1
- package/dist/src/lib/github/v4/get-invalid-access-token-message.d.ts +1 -1
- package/dist/src/lib/github/v4/get-invalid-access-token-message.js +18 -17
- package/dist/src/lib/github/v4/get-invalid-access-token-message.js.map +1 -1
- package/dist/src/lib/github/v4/get-repo-owner-and-name-from-git-remotes.js +18 -19
- package/dist/src/lib/github/v4/get-repo-owner-and-name-from-git-remotes.js.map +1 -1
- package/dist/src/lib/github/v4/getOptionsFromGithub/get-options-from-github.d.ts +4 -8
- package/dist/src/lib/github/v4/getOptionsFromGithub/get-options-from-github.js +48 -42
- package/dist/src/lib/github/v4/getOptionsFromGithub/get-options-from-github.js.map +1 -1
- package/dist/src/lib/github/v4/index.d.ts +20 -0
- package/dist/src/lib/github/v4/index.js +23 -0
- package/dist/src/lib/github/v4/index.js.map +1 -0
- package/dist/src/lib/github/v4/mocks/commits-by-author-mock.d.ts +1 -1
- package/dist/src/lib/github/v4/mocks/commits-by-author-mock.js +3 -6
- package/dist/src/lib/github/v4/mocks/commits-by-author-mock.js.map +1 -1
- package/dist/src/lib/github/v4/validate-target-branch.js +13 -14
- package/dist/src/lib/github/v4/validate-target-branch.js.map +1 -1
- package/dist/src/lib/logger.js +15 -56
- package/dist/src/lib/logger.js.map +1 -1
- package/dist/src/lib/ora.d.ts +4 -4
- package/dist/src/lib/ora.js +5 -12
- package/dist/src/lib/ora.js.map +1 -1
- package/dist/src/lib/prompts.d.ts +2 -2
- package/dist/src/lib/prompts.js +56 -59
- package/dist/src/lib/prompts.js.map +1 -1
- package/dist/src/lib/register-handlebars-helpers.js +5 -11
- package/dist/src/lib/register-handlebars-helpers.js.map +1 -1
- package/dist/src/lib/remote-config.d.ts +6 -3
- package/dist/src/lib/remote-config.js +14 -14
- package/dist/src/lib/remote-config.js.map +1 -1
- package/dist/src/lib/run-sequentially.d.ts +11 -14
- package/dist/src/lib/run-sequentially.js +27 -52
- package/dist/src/lib/run-sequentially.js.map +1 -1
- package/dist/src/lib/sequential-helper.d.ts +2 -0
- package/dist/src/lib/sequential-helper.js +9 -0
- package/dist/src/lib/sequential-helper.js.map +1 -0
- package/dist/src/lib/setup-repo.d.ts +1 -1
- package/dist/src/lib/setup-repo.js +31 -37
- package/dist/src/lib/setup-repo.js.map +1 -1
- package/dist/src/lib/sourceCommit/get-mock-source-commit.d.ts +1 -1
- package/dist/src/lib/sourceCommit/get-mock-source-commit.js +2 -5
- package/dist/src/lib/sourceCommit/get-mock-source-commit.js.map +1 -1
- package/dist/src/lib/sourceCommit/get-pull-request-states.d.ts +2 -2
- package/dist/src/lib/sourceCommit/get-pull-request-states.js +18 -22
- package/dist/src/lib/sourceCommit/get-pull-request-states.js.map +1 -1
- package/dist/src/lib/sourceCommit/get-source-pull-request.d.ts +22 -2
- package/dist/src/lib/sourceCommit/get-source-pull-request.js +2 -5
- package/dist/src/lib/sourceCommit/get-source-pull-request.js.map +1 -1
- package/dist/src/lib/sourceCommit/is-pull-request-cross-referenced-event.d.ts +1 -1
- package/dist/src/lib/sourceCommit/is-pull-request-cross-referenced-event.js +1 -4
- package/dist/src/lib/sourceCommit/is-pull-request-cross-referenced-event.js.map +1 -1
- package/dist/src/lib/sourceCommit/parse-source-commit.d.ts +3 -3
- package/dist/src/lib/sourceCommit/parse-source-commit.js +17 -21
- package/dist/src/lib/sourceCommit/parse-source-commit.js.map +1 -1
- package/dist/src/options/cli-args.d.ts +19 -19
- package/dist/src/options/cli-args.js +29 -25
- package/dist/src/options/cli-args.js.map +1 -1
- package/dist/src/options/config/config.d.ts +6 -10
- package/dist/src/options/config/config.js +5 -8
- package/dist/src/options/config/config.js.map +1 -1
- package/dist/src/options/config/global-config.d.ts +1 -1
- package/dist/src/options/config/global-config.js +22 -28
- package/dist/src/options/config/global-config.js.map +1 -1
- package/dist/src/options/config/project-config.d.ts +1 -1
- package/dist/src/options/config/project-config.js +7 -13
- package/dist/src/options/config/project-config.js.map +1 -1
- package/dist/src/options/config/read-config-file.d.ts +1 -1
- package/dist/src/options/config/read-config-file.js +16 -20
- package/dist/src/options/config/read-config-file.js.map +1 -1
- package/dist/src/options/config-options.d.ts +3 -1
- package/dist/src/options/config-options.js +1 -2
- package/dist/src/options/option-schema.d.ts +189 -0
- package/dist/src/options/option-schema.js +123 -0
- package/dist/src/options/option-schema.js.map +1 -0
- package/dist/src/options/options.d.ts +6 -119
- package/dist/src/options/options.js +65 -108
- package/dist/src/options/options.js.map +1 -1
- package/dist/src/scripts/postinstall.js +10 -13
- package/dist/src/scripts/postinstall.js.map +1 -1
- package/dist/src/scripts/run-postinstall.js +2 -4
- package/dist/src/scripts/run-postinstall.js.map +1 -1
- package/dist/src/types/index.d.ts +10 -0
- package/dist/src/types/index.js +6 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/utils/exclude-undefined.js +1 -4
- package/dist/src/utils/exclude-undefined.js.map +1 -1
- package/dist/src/utils/filter-empty.js +1 -4
- package/dist/src/utils/filter-empty.js.map +1 -1
- package/dist/src/utils/filter-unmerged-commits.d.ts +1 -1
- package/dist/src/utils/filter-unmerged-commits.js +1 -4
- package/dist/src/utils/filter-unmerged-commits.js.map +1 -1
- package/dist/src/utils/is-errno-error.js +1 -4
- package/dist/src/utils/is-errno-error.js.map +1 -1
- package/dist/src/utils/package-version.d.ts +1 -1
- package/dist/src/utils/package-version.js +20 -9
- package/dist/src/utils/package-version.js.map +1 -1
- package/package.json +66 -71
- package/dist/package.json +0 -125
- package/dist/src/entrypoint.module.private.test.d.ts +0 -1
- package/dist/src/entrypoint.module.private.test.js +0 -501
- package/dist/src/entrypoint.module.private.test.js.map +0 -1
- package/dist/src/lib/apm.d.ts +0 -1
- package/dist/src/lib/apm.js +0 -33
- package/dist/src/lib/apm.js.map +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/cherrypick-and-create-target-pull-request.test.d.ts +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/cherrypick-and-create-target-pull-request.test.js +0 -371
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/cherrypick-and-create-target-pull-request.test.js.map +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-backport-branch-name.test.d.ts +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-backport-branch-name.test.js +0 -74
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-backport-branch-name.test.js.map +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-commits-without-backports.test.d.ts +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-commits-without-backports.test.js +0 -382
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/get-commits-without-backports.test.js.map +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-configured-target-pr-labels.test.d.ts +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-configured-target-pr-labels.test.js +0 -126
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-configured-target-pr-labels.test.js.map +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-source-pr-labels-to-copy.test.d.ts +0 -1
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-source-pr-labels-to-copy.test.js +0 -85
- package/dist/src/lib/cherrypickAndCreateTargetPullRequest/getTargetPRLabels/get-source-pr-labels-to-copy.test.js.map +0 -1
- package/dist/src/lib/env.test.d.ts +0 -1
- package/dist/src/lib/env.test.js +0 -27
- package/dist/src/lib/env.test.js.map +0 -1
- package/dist/src/lib/get-target-branches.test.d.ts +0 -1
- package/dist/src/lib/get-target-branches.test.js +0 -263
- package/dist/src/lib/get-target-branches.test.js.map +0 -1
- package/dist/src/lib/git.d.ts +0 -89
- package/dist/src/lib/git.js +0 -537
- package/dist/src/lib/git.js.map +0 -1
- package/dist/src/lib/git.private.test.d.ts +0 -1
- package/dist/src/lib/git.private.test.js +0 -619
- package/dist/src/lib/git.private.test.js.map +0 -1
- package/dist/src/lib/git.test.d.ts +0 -1
- package/dist/src/lib/git.test.js +0 -1053
- package/dist/src/lib/git.test.js.map +0 -1
- package/dist/src/lib/github/commit-formatters.test.d.ts +0 -1
- package/dist/src/lib/github/commit-formatters.test.js +0 -12
- package/dist/src/lib/github/commit-formatters.test.js.map +0 -1
- package/dist/src/lib/github/v3/add-assignees-to-pull-request.test.d.ts +0 -1
- package/dist/src/lib/github/v3/add-assignees-to-pull-request.test.js +0 -31
- package/dist/src/lib/github/v3/add-assignees-to-pull-request.test.js.map +0 -1
- package/dist/src/lib/github/v3/create-status-comment.test.d.ts +0 -1
- package/dist/src/lib/github/v3/create-status-comment.test.js +0 -664
- package/dist/src/lib/github/v3/create-status-comment.test.js.map +0 -1
- package/dist/src/lib/github/v3/get-reviewers-from-pull-requests.ts.private.test.d.ts +0 -1
- package/dist/src/lib/github/v3/get-reviewers-from-pull-requests.ts.private.test.js +0 -34
- package/dist/src/lib/github/v3/get-reviewers-from-pull-requests.ts.private.test.js.map +0 -1
- package/dist/src/lib/github/v3/getPullRequest/create-pull-request.js +0 -67
- package/dist/src/lib/github/v3/getPullRequest/create-pull-request.js.map +0 -1
- package/dist/src/lib/github/v3/getPullRequest/get-pull-request-body.js +0 -63
- package/dist/src/lib/github/v3/getPullRequest/get-pull-request-body.js.map +0 -1
- package/dist/src/lib/github/v3/getPullRequest/get-pull-request-body.test.d.ts +0 -1
- package/dist/src/lib/github/v3/getPullRequest/get-pull-request-body.test.js +0 -447
- package/dist/src/lib/github/v3/getPullRequest/get-pull-request-body.test.js.map +0 -1
- package/dist/src/lib/github/v3/getPullRequest/get-title.js +0 -33
- package/dist/src/lib/github/v3/getPullRequest/get-title.js.map +0 -1
- package/dist/src/lib/github/v3/getPullRequest/get-title.test.d.ts +0 -1
- package/dist/src/lib/github/v3/getPullRequest/get-title.test.js +0 -111
- package/dist/src/lib/github/v3/getPullRequest/get-title.test.js.map +0 -1
- package/dist/src/lib/github/v4/client/graphql-client.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/client/graphql-client.private.test.js +0 -93
- package/dist/src/lib/github/v4/client/graphql-client.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/client/logging-exchange.d.ts +0 -2
- package/dist/src/lib/github/v4/client/logging-exchange.js +0 -21
- package/dist/src/lib/github/v4/client/logging-exchange.js.map +0 -1
- package/dist/src/lib/github/v4/client/response-meta-interceptor-exchange.d.ts +0 -2
- package/dist/src/lib/github/v4/client/response-meta-interceptor-exchange.js +0 -45
- package/dist/src/lib/github/v4/client/response-meta-interceptor-exchange.js.map +0 -1
- package/dist/src/lib/github/v4/enable-pull-request-auto-merge.mutation.test.d.ts +0 -1
- package/dist/src/lib/github/v4/enable-pull-request-auto-merge.mutation.test.js +0 -245
- package/dist/src/lib/github/v4/enable-pull-request-auto-merge.mutation.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetch-author-id.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetch-author-id.private.test.js +0 -26
- package/dist/src/lib/github/v4/fetch-author-id.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetch-existing-pull-request.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetch-existing-pull-request.private.test.js +0 -47
- package/dist/src/lib/github/v4/fetch-existing-pull-request.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetch-pull-request-id2.js +0 -33
- package/dist/src/lib/github/v4/fetch-pull-request-id2.js.map +0 -1
- package/dist/src/lib/github/v4/fetchCommits/all-fetchers.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetchCommits/all-fetchers.private.test.js +0 -126
- package/dist/src/lib/github/v4/fetchCommits/all-fetchers.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.private.test.js +0 -110
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-sha.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-sha.private.test.js +0 -76
- package/dist/src/lib/github/v4/fetchCommits/fetch-commit-by-sha.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.private.test.js +0 -179
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.test.js +0 -168
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-by-author.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-for-rebase-and-merge-strategy.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-for-rebase-and-merge-strategy.private.test.js +0 -30
- package/dist/src/lib/github/v4/fetchCommits/fetch-commits-for-rebase-and-merge-strategy.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-pull-request-by-search-query.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/fetchCommits/fetch-pull-request-by-search-query.private.test.js +0 -150
- package/dist/src/lib/github/v4/fetchCommits/fetch-pull-request-by-search-query.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/get-invalid-access-token-message.test.d.ts +0 -1
- package/dist/src/lib/github/v4/get-invalid-access-token-message.test.js +0 -99
- package/dist/src/lib/github/v4/get-invalid-access-token-message.test.js.map +0 -1
- package/dist/src/lib/github/v4/get-repo-owner-and-name-from-git-remotes.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/get-repo-owner-and-name-from-git-remotes.private.test.js +0 -50
- package/dist/src/lib/github/v4/get-repo-owner-and-name-from-git-remotes.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/getOptionsFromGithub/get-options-from-github.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/getOptionsFromGithub/get-options-from-github.private.test.js +0 -119
- package/dist/src/lib/github/v4/getOptionsFromGithub/get-options-from-github.private.test.js.map +0 -1
- package/dist/src/lib/github/v4/validate-target-branch.private.test.d.ts +0 -1
- package/dist/src/lib/github/v4/validate-target-branch.private.test.js +0 -24
- package/dist/src/lib/github/v4/validate-target-branch.private.test.js.map +0 -1
- package/dist/src/lib/prompt.test.d.ts +0 -1
- package/dist/src/lib/prompt.test.js +0 -181
- package/dist/src/lib/prompt.test.js.map +0 -1
- package/dist/src/lib/sequentially.d.ts +0 -1
- package/dist/src/lib/sequentially.js +0 -11
- package/dist/src/lib/sequentially.js.map +0 -1
- package/dist/src/lib/setup-repo.test.d.ts +0 -1
- package/dist/src/lib/setup-repo.test.js +0 -283
- package/dist/src/lib/setup-repo.test.js.map +0 -1
- package/dist/src/lib/sourceCommit/get-pull-request-states.test.d.ts +0 -1
- package/dist/src/lib/sourceCommit/get-pull-request-states.test.js +0 -706
- package/dist/src/lib/sourceCommit/get-pull-request-states.test.js.map +0 -1
- package/dist/src/lib/sourceCommit/parse-source-commit.test.d.ts +0 -1
- package/dist/src/lib/sourceCommit/parse-source-commit.test.js +0 -295
- package/dist/src/lib/sourceCommit/parse-source-commit.test.js.map +0 -1
- package/dist/src/options/cli-args.test.d.ts +0 -1
- package/dist/src/options/cli-args.test.js +0 -307
- package/dist/src/options/cli-args.test.js.map +0 -1
- package/dist/src/options/config/config.test.d.ts +0 -1
- package/dist/src/options/config/config.test.js +0 -32
- package/dist/src/options/config/config.test.js.map +0 -1
- package/dist/src/options/config/global-config.test.d.ts +0 -1
- package/dist/src/options/config/global-config.test.js +0 -62
- package/dist/src/options/config/global-config.test.js.map +0 -1
- package/dist/src/options/config/project-config.test.d.ts +0 -1
- package/dist/src/options/config/project-config.test.js +0 -110
- package/dist/src/options/config/project-config.test.js.map +0 -1
- package/dist/src/options/options.test.d.ts +0 -1
- package/dist/src/options/options.test.js +0 -505
- package/dist/src/options/options.test.js.map +0 -1
- package/dist/src/scripts/binary.integration.test.d.ts +0 -1
- package/dist/src/scripts/binary.integration.test.js +0 -87
- package/dist/src/scripts/binary.integration.test.js.map +0 -1
- package/dist/src/scripts/postinstall.integration.test.d.ts +0 -1
- package/dist/src/scripts/postinstall.integration.test.js +0 -92
- package/dist/src/scripts/postinstall.integration.test.js.map +0 -1
- package/dist/src/scripts/postinstall.test.d.ts +0 -1
- package/dist/src/scripts/postinstall.test.js +0 -68
- package/dist/src/scripts/postinstall.test.js.map +0 -1
- package/dist/src/test/child-process-helper.d.ts +0 -7
- package/dist/src/test/child-process-helper.js +0 -19
- package/dist/src/test/child-process-helper.js.map +0 -1
- package/dist/src/test/e2e/cli/binary.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/binary.private.test.js +0 -53
- package/dist/src/test/e2e/cli/binary.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/commit-author.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/commit-author.private.test.js +0 -79
- package/dist/src/test/e2e/cli/commit-author.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/copy-reviewers-to-target-pull-request.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/copy-reviewers-to-target-pull-request.private.test.js +0 -63
- package/dist/src/test/e2e/cli/copy-reviewers-to-target-pull-request.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/date-filters.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/date-filters.private.test.js +0 -56
- package/dist/src/test/e2e/cli/date-filters.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/different-merge-strategies.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/different-merge-strategies.private.test.js +0 -260
- package/dist/src/test/e2e/cli/different-merge-strategies.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/entrypoint.cli.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/entrypoint.cli.private.test.js +0 -228
- package/dist/src/test/e2e/cli/entrypoint.cli.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/error-handling-interactive-mode.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/error-handling-interactive-mode.private.test.js +0 -91
- package/dist/src/test/e2e/cli/error-handling-interactive-mode.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/error-handling-non-interactive-mode.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/error-handling-non-interactive-mode.private.test.js +0 -203
- package/dist/src/test/e2e/cli/error-handling-non-interactive-mode.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/gracefully-handles-corrupt-repo.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/gracefully-handles-corrupt-repo.private.test.js +0 -57
- package/dist/src/test/e2e/cli/gracefully-handles-corrupt-repo.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/repo-with-backportrc-removed.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/repo-with-backportrc-removed.private.test.js +0 -51
- package/dist/src/test/e2e/cli/repo-with-backportrc-removed.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/repo-with-changing-branch-label-mapping.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/repo-with-changing-branch-label-mapping.private.test.js +0 -98
- package/dist/src/test/e2e/cli/repo-with-changing-branch-label-mapping.private.test.js.map +0 -1
- package/dist/src/test/e2e/cli/repo-with-programatically-added-commits.mutation.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/repo-with-programatically-added-commits.mutation.test.js +0 -114
- package/dist/src/test/e2e/cli/repo-with-programatically-added-commits.mutation.test.js.map +0 -1
- package/dist/src/test/e2e/cli/run-backport-via-cli.d.ts +0 -21
- package/dist/src/test/e2e/cli/run-backport-via-cli.js +0 -104
- package/dist/src/test/e2e/cli/run-backport-via-cli.js.map +0 -1
- package/dist/src/test/e2e/cli/test-that-repo-can-be-cloned.private.test.d.ts +0 -1
- package/dist/src/test/e2e/cli/test-that-repo-can-be-cloned.private.test.js +0 -91
- package/dist/src/test/e2e/cli/test-that-repo-can-be-cloned.private.test.js.map +0 -1
- package/dist/src/test/e2e/module/entrypoint.module.mutation.test.d.ts +0 -1
- package/dist/src/test/e2e/module/entrypoint.module.mutation.test.js +0 -378
- package/dist/src/test/e2e/module/entrypoint.module.mutation.test.js.map +0 -1
- package/dist/src/test/handle-unbackported-pull-requests.private.test.d.ts +0 -1
- package/dist/src/test/handle-unbackported-pull-requests.private.test.js +0 -71
- package/dist/src/test/handle-unbackported-pull-requests.private.test.js.map +0 -1
- package/dist/src/test/mock-config-files.d.ts +0 -5
- package/dist/src/test/mock-config-files.js +0 -21
- package/dist/src/test/mock-config-files.js.map +0 -1
- package/dist/src/test/nock-helpers.d.ts +0 -18
- package/dist/src/test/nock-helpers.js +0 -33
- package/dist/src/test/nock-helpers.js.map +0 -1
- package/dist/src/test/private/get-dev-access-token.d.ts +0 -2
- package/dist/src/test/private/get-dev-access-token.js +0 -12
- package/dist/src/test/private/get-dev-access-token.js.map +0 -1
- package/dist/src/test/replace-string-and-linebreaks.d.ts +0 -6
- package/dist/src/test/replace-string-and-linebreaks.js +0 -14
- package/dist/src/test/replace-string-and-linebreaks.js.map +0 -1
- package/dist/src/test/sandbox.d.ts +0 -6
- package/dist/src/test/sandbox.js +0 -63
- package/dist/src/test/sandbox.js.map +0 -1
- package/dist/src/test/setupFiles/automatic-mocks.d.ts +0 -1
- package/dist/src/test/setupFiles/automatic-mocks.js +0 -79
- package/dist/src/test/setupFiles/automatic-mocks.js.map +0 -1
- package/dist/src/test/setupFiles/jest-retry.d.ts +0 -0
- package/dist/src/test/setupFiles/jest-retry.js +0 -3
- package/dist/src/test/setupFiles/jest-retry.js.map +0 -1
- package/dist/src/test/setupFiles/nock-cleanup.d.ts +0 -1
- package/dist/src/test/setupFiles/nock-cleanup.js +0 -16
- package/dist/src/test/setupFiles/nock-cleanup.js.map +0 -1
- package/dist/src/utils/exclude-undefined.test.d.ts +0 -1
- package/dist/src/utils/exclude-undefined.test.js +0 -25
- package/dist/src/utils/exclude-undefined.test.js.map +0 -1
- package/dist/src/utils/maybe.d.ts +0 -1
- package/dist/src/utils/maybe.js +0 -7
- package/dist/src/utils/maybe.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-client.js","sourceRoot":"","sources":["../../../../../../src/lib/github/v4/client/graphql-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql-client.js","sourceRoot":"","sources":["../../../../../../src/lib/github/v4/client/graphql-client.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../options/options';
|
|
1
|
+
import type { ValidConfigOptions } from '../../../options/options.js';
|
|
2
2
|
export declare function disablePullRequestAutoMerge(options: ValidConfigOptions, pullNumber: number): Promise<number | undefined>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const fetch_pull_request_id2_1 = require("./fetch-pull-request-id2");
|
|
7
|
-
async function disablePullRequestAutoMerge(options, pullNumber) {
|
|
1
|
+
import { graphql } from '../../../graphql/generated/index.js';
|
|
2
|
+
import { BackportError } from '../../backport-error.js';
|
|
3
|
+
import { graphqlRequest } from './client/graphql-client.js';
|
|
4
|
+
import { fetchPullRequestId } from './fetch-pull-request-id.js';
|
|
5
|
+
export async function disablePullRequestAutoMerge(options, pullNumber) {
|
|
8
6
|
const { accessToken, githubApiBaseUrlV4 } = options;
|
|
9
|
-
const pullRequestId = await
|
|
10
|
-
const query =
|
|
7
|
+
const pullRequestId = await fetchPullRequestId(options, pullNumber);
|
|
8
|
+
const query = graphql(`
|
|
11
9
|
mutation DisablePullRequestAutoMerge($pullRequestId: ID!) {
|
|
12
10
|
disablePullRequestAutoMerge(input: { pullRequestId: $pullRequestId }) {
|
|
13
11
|
pullRequest {
|
|
@@ -16,12 +14,14 @@ async function disablePullRequestAutoMerge(options, pullNumber) {
|
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
`);
|
|
19
|
-
const
|
|
20
|
-
const result = await client.mutation(query, {
|
|
17
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, {
|
|
21
18
|
pullRequestId,
|
|
22
19
|
});
|
|
23
20
|
if (result.error) {
|
|
24
|
-
throw new
|
|
21
|
+
throw new BackportError({
|
|
22
|
+
code: 'github-api-exception',
|
|
23
|
+
message: result.error.message,
|
|
24
|
+
});
|
|
25
25
|
}
|
|
26
26
|
return result.data?.disablePullRequestAutoMerge?.pullRequest?.number;
|
|
27
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-pull-request-auto-merge.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/disable-pull-request-auto-merge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"disable-pull-request-auto-merge.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/disable-pull-request-auto-merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,OAA2B,EAC3B,UAAkB;IAElB,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;IACpD,MAAM,aAAa,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAEpE,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;;;GAQrB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL;QACE,aAAa;KACd,CACF,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,CAAC;AACvE,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../options/options';
|
|
2
|
-
import { GithubV4Exception } from './client/graphql-client';
|
|
1
|
+
import type { ValidConfigOptions } from '../../../options/options.js';
|
|
3
2
|
export declare function enablePullRequestAutoMerge(options: ValidConfigOptions, targetPullRequestNumber: number): Promise<number | undefined>;
|
|
4
|
-
export declare function isMissingStatusChecksError(e: GithubV4Exception<unknown>): boolean | undefined;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const fetch_pull_request_id2_1 = require("./fetch-pull-request-id2");
|
|
8
|
-
async function enablePullRequestAutoMerge(options, targetPullRequestNumber) {
|
|
1
|
+
import { PullRequestMergeMethod } from '../../../graphql/generated/graphql.js';
|
|
2
|
+
import { graphql } from '../../../graphql/generated/index.js';
|
|
3
|
+
import { BackportError } from '../../backport-error.js';
|
|
4
|
+
import { graphqlRequest } from './client/graphql-client.js';
|
|
5
|
+
import { fetchPullRequestId } from './fetch-pull-request-id.js';
|
|
6
|
+
export async function enablePullRequestAutoMerge(options, targetPullRequestNumber) {
|
|
9
7
|
const { accessToken, githubApiBaseUrlV4, autoMergeMethod = 'merge', } = options;
|
|
10
|
-
const pullRequestId = await
|
|
11
|
-
const query =
|
|
8
|
+
const pullRequestId = await fetchPullRequestId(options, targetPullRequestNumber);
|
|
9
|
+
const query = graphql(`
|
|
12
10
|
mutation EnablePullRequestAutoMerge(
|
|
13
11
|
$pullRequestId: ID!
|
|
14
12
|
$mergeMethod: PullRequestMergeMethod!
|
|
@@ -22,19 +20,32 @@ async function enablePullRequestAutoMerge(options, targetPullRequestNumber) {
|
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
`);
|
|
23
|
+
const mergeMethodMap = {
|
|
24
|
+
merge: PullRequestMergeMethod.Merge,
|
|
25
|
+
squash: PullRequestMergeMethod.Squash,
|
|
26
|
+
rebase: PullRequestMergeMethod.Rebase,
|
|
27
|
+
};
|
|
25
28
|
const variables = {
|
|
26
29
|
pullRequestId,
|
|
27
|
-
mergeMethod: autoMergeMethod.
|
|
30
|
+
mergeMethod: mergeMethodMap[autoMergeMethod] ?? PullRequestMergeMethod.Merge,
|
|
28
31
|
};
|
|
29
|
-
const
|
|
30
|
-
const result = await client.mutation(query, variables);
|
|
32
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, variables);
|
|
31
33
|
if (result.error) {
|
|
32
|
-
|
|
34
|
+
if (isMissingStatusChecksError(result)) {
|
|
35
|
+
throw new BackportError({
|
|
36
|
+
code: 'auto-merge-not-available-exception',
|
|
37
|
+
message: result.error.message,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
throw new BackportError({
|
|
41
|
+
code: 'github-api-exception',
|
|
42
|
+
message: result.error.message,
|
|
43
|
+
});
|
|
33
44
|
}
|
|
34
45
|
return result.data?.enablePullRequestAutoMerge?.pullRequest?.number;
|
|
35
46
|
}
|
|
36
|
-
function isMissingStatusChecksError(
|
|
37
|
-
return
|
|
47
|
+
function isMissingStatusChecksError(result) {
|
|
48
|
+
return result.error?.graphQLErrors.some((e) => e.extensions.type === 'UNPROCESSABLE' &&
|
|
38
49
|
(e.message.includes('Branch does not have required protected branch rules') ||
|
|
39
50
|
e.message.includes('Pull request is in clean status')));
|
|
40
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-pull-request-auto-merge.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/enable-pull-request-auto-merge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enable-pull-request-auto-merge.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/enable-pull-request-auto-merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,OAA2B,EAC3B,uBAA+B;IAE/B,MAAM,EACJ,WAAW,EACX,kBAAkB,EAClB,eAAe,GAAG,OAAO,GAC1B,GAAG,OAAO,CAAC;IAEZ,MAAM,aAAa,GAAG,MAAM,kBAAkB,CAC5C,OAAO,EACP,uBAAuB,CACxB,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;;;;;;;;GAarB,CAAC,CAAC;IAEH,MAAM,cAAc,GAA2C;QAC7D,KAAK,EAAE,sBAAsB,CAAC,KAAK;QACnC,MAAM,EAAE,sBAAsB,CAAC,MAAM;QACrC,MAAM,EAAE,sBAAsB,CAAC,MAAM;KACtC,CAAC;IAEF,MAAM,SAAS,GAAG;QAChB,aAAa;QACb,WAAW,EACT,cAAc,CAAC,eAAe,CAAC,IAAI,sBAAsB,CAAC,KAAK;KAClE,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,IAAI,0BAA0B,CAAC,MAAM,CAAC,EAAE,CAAC;YACvC,MAAM,IAAI,aAAa,CAAC;gBACtB,IAAI,EAAE,oCAAoC;gBAC1C,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;aAC9B,CAAC,CAAC;QACL,CAAC;QACD,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,WAAW,EAAE,MAAM,CAAC;AACtE,CAAC;AAED,SAAS,0BAA0B,CAAC,MAAwC;IAC1E,OAAO,MAAM,CAAC,KAAK,EAAE,aAAa,CAAC,IAAI,CACrC,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,UAAU,CAAC,IAAI,KAAK,eAAe;QACrC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CACjB,sDAAsD,CACvD;YACC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const graphql_client_1 = require("./client/graphql-client");
|
|
6
|
-
async function fetchAuthorId({ accessToken, author, githubApiBaseUrlV4 = 'https://api.github.com/graphql', }) {
|
|
1
|
+
import { graphql } from '../../../graphql/generated/index.js';
|
|
2
|
+
import { BackportError } from '../../backport-error.js';
|
|
3
|
+
import { graphqlRequest } from './client/graphql-client.js';
|
|
4
|
+
export async function fetchAuthorId({ accessToken, author, githubApiBaseUrlV4 = 'https://api.github.com/graphql', }) {
|
|
7
5
|
if (author === null) {
|
|
8
6
|
return null;
|
|
9
7
|
}
|
|
10
|
-
const query =
|
|
8
|
+
const query = graphql(`
|
|
11
9
|
query AuthorId($author: String!) {
|
|
12
10
|
user(login: $author) {
|
|
13
11
|
id
|
|
@@ -15,10 +13,12 @@ async function fetchAuthorId({ accessToken, author, githubApiBaseUrlV4 = 'https:
|
|
|
15
13
|
}
|
|
16
14
|
`);
|
|
17
15
|
const variables = { author };
|
|
18
|
-
const
|
|
19
|
-
const result = await client.query(query, variables);
|
|
16
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, variables);
|
|
20
17
|
if (result.error) {
|
|
21
|
-
throw new
|
|
18
|
+
throw new BackportError({
|
|
19
|
+
code: 'github-api-exception',
|
|
20
|
+
message: result.error.message,
|
|
21
|
+
});
|
|
22
22
|
}
|
|
23
23
|
return result.data?.user?.id;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-author-id.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/fetch-author-id.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-author-id.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/fetch-author-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAClC,WAAW,EACX,MAAM,EACN,kBAAkB,GAAG,gCAAgC,GAKtD;IACC,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;GAMrB,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,EAAE,MAAM,EAAE,CAAC;IAE7B,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../options/options';
|
|
2
|
-
import type { PullRequestPayload } from '../v3/
|
|
1
|
+
import type { ValidConfigOptions } from '../../../options/options.js';
|
|
2
|
+
import type { PullRequestPayload } from '../v3/create-pull-request/create-pull-request.js';
|
|
3
3
|
export declare function fetchExistingPullRequest({ options, prPayload, }: {
|
|
4
4
|
options: ValidConfigOptions;
|
|
5
5
|
prPayload: PullRequestPayload;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const graphql_client_1 = require("./client/graphql-client");
|
|
7
|
-
async function fetchExistingPullRequest({ options, prPayload, }) {
|
|
1
|
+
import { first } from 'lodash-es';
|
|
2
|
+
import { graphql } from '../../../graphql/generated/index.js';
|
|
3
|
+
import { BackportError } from '../../backport-error.js';
|
|
4
|
+
import { graphqlRequest } from './client/graphql-client.js';
|
|
5
|
+
export async function fetchExistingPullRequest({ options, prPayload, }) {
|
|
8
6
|
const { githubApiBaseUrlV4, accessToken } = options;
|
|
9
|
-
const query =
|
|
7
|
+
const query = graphql(`
|
|
10
8
|
query ExistingPullRequest(
|
|
11
9
|
$repoOwner: String!
|
|
12
10
|
$repoName: String!
|
|
@@ -41,12 +39,14 @@ async function fetchExistingPullRequest({ options, prPayload, }) {
|
|
|
41
39
|
base: prPayload.base,
|
|
42
40
|
head: head,
|
|
43
41
|
};
|
|
44
|
-
const
|
|
45
|
-
const result = await client.query(query, variables);
|
|
42
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, variables);
|
|
46
43
|
if (result.error) {
|
|
47
|
-
throw new
|
|
44
|
+
throw new BackportError({
|
|
45
|
+
code: 'github-api-exception',
|
|
46
|
+
message: result.error.message,
|
|
47
|
+
});
|
|
48
48
|
}
|
|
49
|
-
const existingPullRequest =
|
|
49
|
+
const existingPullRequest = first(result.data?.repository?.ref?.associatedPullRequests.edges);
|
|
50
50
|
if (!existingPullRequest?.node) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-existing-pull-request.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/fetch-existing-pull-request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-existing-pull-request.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/fetch-existing-pull-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAC7C,OAAO,EACP,SAAS,GAIV;IACC,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IACpD,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BrB,CAAC,CAAC;IAEH,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;IAErD,MAAM,SAAS,GAAG;QAChB,SAAS,EAAE,aAAa;QACxB,QAAQ,EAAE,SAAS,CAAC,IAAI;QACxB,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,IAAI,EAAE,IAAI;KACX,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,mBAAmB,GAAG,KAAK,CAC/B,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,sBAAsB,CAAC,KAAK,CAC3D,CAAC;IAEF,IAAI,CAAC,mBAAmB,EAAE,IAAI,EAAE,CAAC;QAC/B,OAAO;IACT,CAAC;IAED,OAAO;QACL,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,GAAG;QACjC,MAAM,EAAE,mBAAmB,CAAC,IAAI,CAAC,MAAM;KACxC,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,SAA6B;IAC9C,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxD,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AACjC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../options/options';
|
|
2
|
-
export declare function fetchPullRequestAutoMergeMethod(options: ValidConfigOptions, pullNumber: number): Promise<import("../../../graphql/generated/graphql").PullRequestMergeMethod | undefined>;
|
|
1
|
+
import type { ValidConfigOptions } from '../../../options/options.js';
|
|
2
|
+
export declare function fetchPullRequestAutoMergeMethod(options: ValidConfigOptions, pullNumber: number): Promise<import("../../../graphql/generated/graphql.js").PullRequestMergeMethod | undefined>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const graphql_client_1 = require("./client/graphql-client");
|
|
6
|
-
async function fetchPullRequestAutoMergeMethod(options, pullNumber) {
|
|
1
|
+
import { graphql } from '../../../graphql/generated/index.js';
|
|
2
|
+
import { BackportError } from '../../backport-error.js';
|
|
3
|
+
import { graphqlRequest } from './client/graphql-client.js';
|
|
4
|
+
export async function fetchPullRequestAutoMergeMethod(options, pullNumber) {
|
|
7
5
|
const { accessToken, githubApiBaseUrlV4, repoName, repoOwner } = options;
|
|
8
|
-
const query =
|
|
6
|
+
const query = graphql(`
|
|
9
7
|
query PullRequestAutoMergeMethod(
|
|
10
8
|
$repoOwner: String!
|
|
11
9
|
$repoName: String!
|
|
@@ -26,10 +24,12 @@ async function fetchPullRequestAutoMergeMethod(options, pullNumber) {
|
|
|
26
24
|
repoName,
|
|
27
25
|
pullNumber,
|
|
28
26
|
};
|
|
29
|
-
const
|
|
30
|
-
const result = await client.query(query, variables);
|
|
27
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, variables);
|
|
31
28
|
if (result.error) {
|
|
32
|
-
throw new
|
|
29
|
+
throw new BackportError({
|
|
30
|
+
code: 'github-api-exception',
|
|
31
|
+
message: result.error.message,
|
|
32
|
+
});
|
|
33
33
|
}
|
|
34
34
|
return result.data?.repository?.pullRequest?.autoMergeRequest?.mergeMethod;
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-pull-request-auto-merge-method.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/fetch-pull-request-auto-merge-method.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-pull-request-auto-merge-method.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/fetch-pull-request-auto-merge-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,OAA2B,EAC3B,UAAkB;IAElB,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAEzE,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;GAerB,CAAC,CAAC;IACH,MAAM,SAAS,GAAG;QAChB,SAAS;QACT,QAAQ;QACR,UAAU;KACX,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,CAAC;AAC7E,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../options/options';
|
|
1
|
+
import type { ValidConfigOptions } from '../../../options/options.js';
|
|
2
2
|
export declare function fetchPullRequestId(options: ValidConfigOptions, pullNumber: number): Promise<string>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { graphql } from '../../../graphql/generated/index.js';
|
|
2
|
+
import { BackportError } from '../../backport-error.js';
|
|
3
|
+
import { graphqlRequest } from './client/graphql-client.js';
|
|
4
|
+
export async function fetchPullRequestId(options, pullNumber) {
|
|
5
|
+
const { accessToken, githubApiBaseUrlV4, repoName, repoOwner } = options;
|
|
6
|
+
const query = graphql(`
|
|
7
|
+
query PullRequestId(
|
|
8
|
+
$repoOwner: String!
|
|
9
|
+
$repoName: String!
|
|
10
|
+
$pullNumber: Int!
|
|
11
|
+
) {
|
|
12
|
+
repository(owner: $repoOwner, name: $repoName) {
|
|
13
|
+
pullRequest(number: $pullNumber) {
|
|
14
|
+
id
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`);
|
|
19
|
+
const variables = { repoOwner, repoName, pullNumber };
|
|
20
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, variables);
|
|
21
|
+
if (result.error) {
|
|
22
|
+
throw new BackportError({
|
|
23
|
+
code: 'github-api-exception',
|
|
24
|
+
message: result.error.message,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const pullRequestId = result.data?.repository?.pullRequest?.id;
|
|
28
|
+
if (!pullRequestId) {
|
|
29
|
+
throw new BackportError({
|
|
30
|
+
code: 'pr-not-found-exception',
|
|
31
|
+
pullNumber,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return pullRequestId;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=fetch-pull-request-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-pull-request-id.js","sourceRoot":"","sources":["../../../../../src/lib/github/v4/fetch-pull-request-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAA2B,EAC3B,UAAkB;IAElB,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAEzE,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;;;;;;;GAYrB,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACtD,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,CAAC;IAC/D,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,wBAAwB;YAC9B,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../../options/options';
|
|
2
|
-
import type { Commit } from '../../../sourceCommit/parse-source-commit';
|
|
1
|
+
import type { ValidConfigOptions } from '../../../../options/options.js';
|
|
2
|
+
import type { Commit } from '../../../sourceCommit/parse-source-commit.js';
|
|
3
3
|
export declare function fetchCommitsByPullNumber(options: {
|
|
4
4
|
accessToken: string;
|
|
5
5
|
branchLabelMapping?: ValidConfigOptions['branchLabelMapping'];
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const fetch_commit_by_sha_1 = require("./fetch-commit-by-sha");
|
|
9
|
-
const fetch_commits_for_rebase_and_merge_strategy_1 = require("./fetch-commits-for-rebase-and-merge-strategy");
|
|
10
|
-
async function fetchCommitsByPullNumber(options) {
|
|
1
|
+
import { graphql } from '../../../../graphql/generated/index.js';
|
|
2
|
+
import { BackportError } from '../../../backport-error.js';
|
|
3
|
+
import { isMissingConfigFileException } from '../../../remote-config.js';
|
|
4
|
+
import { graphqlRequest } from '../client/graphql-client.js';
|
|
5
|
+
import { fetchCommitBySha } from './fetch-commit-by-sha.js';
|
|
6
|
+
import { fetchCommitsForRebaseAndMergeStrategy } from './fetch-commits-for-rebase-and-merge-strategy.js';
|
|
7
|
+
export async function fetchCommitsByPullNumber(options) {
|
|
11
8
|
const { accessToken, githubApiBaseUrlV4 = 'https://api.github.com/graphql', pullNumber, repoName, repoOwner, } = options;
|
|
12
|
-
const query =
|
|
9
|
+
const query = graphql(`
|
|
13
10
|
query CommitByPullNumber(
|
|
14
11
|
$repoOwner: String!
|
|
15
12
|
$repoName: String!
|
|
@@ -48,32 +45,40 @@ async function fetchCommitsByPullNumber(options) {
|
|
|
48
45
|
}
|
|
49
46
|
`);
|
|
50
47
|
const variables = { repoOwner, repoName, pullNumber };
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, variables);
|
|
49
|
+
if (result.error && !isMissingConfigFileException(result)) {
|
|
50
|
+
throw new BackportError({
|
|
51
|
+
code: 'github-api-exception',
|
|
52
|
+
message: result.error.message,
|
|
53
|
+
});
|
|
55
54
|
}
|
|
56
55
|
const { data } = result;
|
|
57
56
|
const pullRequestNode = data?.repository?.pullRequest;
|
|
58
57
|
if (!pullRequestNode) {
|
|
59
|
-
throw new
|
|
58
|
+
throw new BackportError({
|
|
59
|
+
code: 'pr-not-found-exception',
|
|
60
|
+
pullNumber,
|
|
61
|
+
});
|
|
60
62
|
}
|
|
61
63
|
const { mergeCommit } = pullRequestNode;
|
|
62
64
|
if (mergeCommit === null) {
|
|
63
|
-
throw new
|
|
65
|
+
throw new BackportError({
|
|
66
|
+
code: 'pr-not-merged-exception',
|
|
67
|
+
pullNumber,
|
|
68
|
+
});
|
|
64
69
|
}
|
|
65
|
-
const lastCommitInPullRequest = pullRequestNode.commits.edges?.
|
|
66
|
-
const firstCommitInBaseBranch = mergeCommit?.history.edges?.
|
|
70
|
+
const lastCommitInPullRequest = pullRequestNode.commits.edges?.at(0)?.node?.commit;
|
|
71
|
+
const firstCommitInBaseBranch = mergeCommit?.history.edges?.at(0)?.node;
|
|
67
72
|
const isRebaseAndMergeStrategy = pullRequestNode.commits.totalCount > 0 &&
|
|
68
73
|
mergeCommit?.history.edges?.every((c) => c?.node?.committedDate === mergeCommit.committedDate) &&
|
|
69
74
|
lastCommitInPullRequest?.message === firstCommitInBaseBranch?.message;
|
|
70
75
|
if (isRebaseAndMergeStrategy) {
|
|
71
|
-
const commits = await
|
|
76
|
+
const commits = await fetchCommitsForRebaseAndMergeStrategy(options, pullRequestNode.commits.totalCount);
|
|
72
77
|
if (commits) {
|
|
73
78
|
return commits;
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
|
-
const commit = await
|
|
81
|
+
const commit = await fetchCommitBySha({ ...options, sha: mergeCommit?.oid });
|
|
77
82
|
return [commit];
|
|
78
83
|
}
|
|
79
84
|
//# sourceMappingURL=fetch-commit-by-pull-number.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-commit-by-pull-number.js","sourceRoot":"","sources":["../../../../../../src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-commit-by-pull-number.js","sourceRoot":"","sources":["../../../../../../src/lib/github/v4/fetchCommits/fetch-commit-by-pull-number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qCAAqC,EAAE,MAAM,kDAAkD,CAAC;AAEzG,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,OAQ9C;IACC,MAAM,EACJ,WAAW,EACX,kBAAkB,GAAG,gCAAgC,EACrD,UAAU,EACV,QAAQ,EACR,SAAS,GACV,GAAG,OAAO,CAAC;IAEZ,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCrB,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACtD,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,IAAI,CAAC,4BAA4B,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAExB,MAAM,eAAe,GAAG,IAAI,EAAE,UAAU,EAAE,WAAW,CAAC;IACtD,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,wBAAwB;YAC9B,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IACxC,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QACzB,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,yBAAyB;YAC/B,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IAED,MAAM,uBAAuB,GAC3B,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC;IACrD,MAAM,uBAAuB,GAAG,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;IACxE,MAAM,wBAAwB,GAC5B,eAAe,CAAC,OAAO,CAAC,UAAU,GAAG,CAAC;QACtC,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,CAC/B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,KAAK,WAAW,CAAC,aAAa,CAC5D;QACD,uBAAuB,EAAE,OAAO,KAAK,uBAAuB,EAAE,OAAO,CAAC;IAExE,IAAI,wBAAwB,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,MAAM,qCAAqC,CACzD,OAAO,EACP,eAAe,CAAC,OAAO,CAAC,UAAU,CACnC,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,OAAO,CAAC;QACjB,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../../options/options';
|
|
2
|
-
import type { Commit } from '../../../sourceCommit/parse-source-commit';
|
|
1
|
+
import type { ValidConfigOptions } from '../../../../options/options.js';
|
|
2
|
+
import type { Commit } from '../../../sourceCommit/parse-source-commit.js';
|
|
3
3
|
export declare function fetchCommitBySha(options: {
|
|
4
4
|
accessToken: string;
|
|
5
5
|
branchLabelMapping?: ValidConfigOptions['branchLabelMapping'];
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const parse_source_commit_1 = require("../../../sourceCommit/parse-source-commit");
|
|
8
|
-
const graphql_client_1 = require("../client/graphql-client");
|
|
9
|
-
async function fetchCommitBySha(options) {
|
|
1
|
+
import { graphql } from '../../../../graphql/generated/index.js';
|
|
2
|
+
import { BackportError } from '../../../backport-error.js';
|
|
3
|
+
import { isMissingConfigFileException } from '../../../remote-config.js';
|
|
4
|
+
import { parseSourceCommit } from '../../../sourceCommit/parse-source-commit.js';
|
|
5
|
+
import { graphqlRequest } from '../client/graphql-client.js';
|
|
6
|
+
export async function fetchCommitBySha(options) {
|
|
10
7
|
const { accessToken, githubApiBaseUrlV4 = 'https://api.github.com/graphql', repoName, repoOwner, sha, sourceBranch, } = options;
|
|
11
|
-
const query =
|
|
8
|
+
const query = graphql(`
|
|
12
9
|
query CommitsBySha($repoOwner: String!, $repoName: String!, $sha: String!) {
|
|
13
10
|
repository(owner: $repoOwner, name: $repoName) {
|
|
14
11
|
object(expression: $sha) {
|
|
@@ -19,16 +16,22 @@ async function fetchCommitBySha(options) {
|
|
|
19
16
|
}
|
|
20
17
|
`);
|
|
21
18
|
const variables = { repoOwner, repoName, sha };
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
const result = await graphqlRequest({ accessToken, githubApiBaseUrlV4 }, query, variables);
|
|
20
|
+
if (result.error && !isMissingConfigFileException(result)) {
|
|
21
|
+
throw new BackportError({
|
|
22
|
+
code: 'github-api-exception',
|
|
23
|
+
message: result.error.message,
|
|
24
|
+
});
|
|
26
25
|
}
|
|
27
26
|
const { data } = result;
|
|
28
27
|
const sourceCommit = data?.repository?.object;
|
|
29
28
|
if (sourceCommit?.__typename !== 'Commit') {
|
|
30
|
-
throw new
|
|
29
|
+
throw new BackportError({
|
|
30
|
+
code: 'commit-not-found-exception',
|
|
31
|
+
sha,
|
|
32
|
+
sourceBranch,
|
|
33
|
+
});
|
|
31
34
|
}
|
|
32
|
-
return
|
|
35
|
+
return parseSourceCommit({ options, sourceCommit });
|
|
33
36
|
}
|
|
34
37
|
//# sourceMappingURL=fetch-commit-by-sha.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-commit-by-sha.js","sourceRoot":"","sources":["../../../../../../src/lib/github/v4/fetchCommits/fetch-commit-by-sha.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-commit-by-sha.js","sourceRoot":"","sources":["../../../../../../src/lib/github/v4/fetchCommits/fetch-commit-by-sha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,OAQtC;IACC,MAAM,EACJ,WAAW,EACX,kBAAkB,GAAG,gCAAgC,EACrD,QAAQ,EACR,SAAS,EACT,GAAG,EACH,YAAY,GACb,GAAG,OAAO,CAAC;IAEZ,MAAM,KAAK,GAAG,OAAO,CAAC;;;;;;;;;GASrB,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;IAC/C,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,EAAE,WAAW,EAAE,kBAAkB,EAAE,EACnC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,CAAC,KAAK,IAAI,CAAC,4BAA4B,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAExB,MAAM,YAAY,GAAG,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC;IAC9C,IAAI,YAAY,EAAE,UAAU,KAAK,QAAQ,EAAE,CAAC;QAC1C,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,4BAA4B;YAClC,GAAG;YACH,YAAY;SACb,CAAC,CAAC;IACL,CAAC;IAED,OAAO,iBAAiB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ValidConfigOptions } from '../../../../options/options';
|
|
2
|
-
import type { Commit } from '../../../sourceCommit/parse-source-commit';
|
|
1
|
+
import type { ValidConfigOptions } from '../../../../options/options.js';
|
|
2
|
+
import type { Commit } from '../../../sourceCommit/parse-source-commit.js';
|
|
3
3
|
export declare function fetchCommitsByAuthor(options: {
|
|
4
4
|
accessToken: string;
|
|
5
5
|
author: string | null;
|