adjust ERROR_PR_ALREADY_EXISTS based on updated failure message
Some checks failed
Auto-merge Dependabot / automerge (pull_request) Has been skipped
CI / test (built) (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / test (committed) (pull_request) Has been cancelled
CI / commentTestSuiteHelp (pull_request) Has been cancelled
CI / package (pull_request) Has been cancelled
Some checks failed
Auto-merge Dependabot / automerge (pull_request) Has been skipped
CI / test (built) (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / test (committed) (pull_request) Has been cancelled
CI / commentTestSuiteHelp (pull_request) Has been cancelled
CI / package (pull_request) Has been cancelled
Uses below error message as a basis: Create or update the pull request Attempting creation of pull request ::error::pull request already exists for these targets [id: 30, issue_id: 27, head_repo_id: 1, base_repo_id: 1, head_branch: update-flake-lock, base_branch: main]
This commit is contained in:
parent
c4253bfd7b
commit
01f3ceebde
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -1277,7 +1277,7 @@ const core = __importStar(__nccwpck_require__(7484));
|
|||||||
const octokit_client_1 = __nccwpck_require__(3489);
|
const octokit_client_1 = __nccwpck_require__(3489);
|
||||||
const p_limit_1 = __importDefault(__nccwpck_require__(7989));
|
const p_limit_1 = __importDefault(__nccwpck_require__(7989));
|
||||||
const utils = __importStar(__nccwpck_require__(9277));
|
const utils = __importStar(__nccwpck_require__(9277));
|
||||||
const ERROR_PR_ALREADY_EXISTS = 'A pull request already exists for';
|
const ERROR_PR_ALREADY_EXISTS = 'pull request already exists for';
|
||||||
const ERROR_PR_REVIEW_TOKEN_SCOPE = 'Validation Failed: "Could not resolve to a node with the global id of';
|
const ERROR_PR_REVIEW_TOKEN_SCOPE = 'Validation Failed: "Could not resolve to a node with the global id of';
|
||||||
const ERROR_PR_FORK_COLLAB = `Fork collab can't be granted by someone without permission`;
|
const ERROR_PR_FORK_COLLAB = `Fork collab can't be granted by someone without permission`;
|
||||||
const blobCreationLimit = (0, p_limit_1.default)(8);
|
const blobCreationLimit = (0, p_limit_1.default)(8);
|
||||||
|
@ -5,7 +5,7 @@ import {Octokit, OctokitOptions, throttleOptions} from './octokit-client'
|
|||||||
import pLimit from 'p-limit'
|
import pLimit from 'p-limit'
|
||||||
import * as utils from './utils'
|
import * as utils from './utils'
|
||||||
|
|
||||||
const ERROR_PR_ALREADY_EXISTS = 'A pull request already exists for'
|
const ERROR_PR_ALREADY_EXISTS = 'pull request already exists for'
|
||||||
const ERROR_PR_REVIEW_TOKEN_SCOPE =
|
const ERROR_PR_REVIEW_TOKEN_SCOPE =
|
||||||
'Validation Failed: "Could not resolve to a node with the global id of'
|
'Validation Failed: "Could not resolve to a node with the global id of'
|
||||||
const ERROR_PR_FORK_COLLAB = `Fork collab can't be granted by someone without permission`
|
const ERROR_PR_FORK_COLLAB = `Fork collab can't be granted by someone without permission`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user