Skip to content
Snippets Groups Projects
Unverified Commit 22d82d9a authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(dashboard): handle update-not-scheduled PRs (#10337)

Closes #9275
parent c7ca78ba
No related merge requests found
...@@ -220,7 +220,7 @@ exports[`workers/branch/index processBranch skips branch if not scheduled and no ...@@ -220,7 +220,7 @@ exports[`workers/branch/index processBranch skips branch if not scheduled and no
Object { Object {
"branchExists": true, "branchExists": true,
"prNo": undefined, "prNo": undefined,
"result": "not-scheduled", "result": "update-not-scheduled",
} }
`; `;
......
...@@ -241,7 +241,7 @@ export async function processBranch( ...@@ -241,7 +241,7 @@ export async function processBranch(
return { return {
branchExists, branchExists,
prNo: branchPr?.number, prNo: branchPr?.number,
result: BranchResult.NotScheduled, result: BranchResult.UpdateNotScheduled,
}; };
} }
// istanbul ignore if // istanbul ignore if
......
...@@ -89,6 +89,7 @@ export enum BranchResult { ...@@ -89,6 +89,7 @@ export enum BranchResult {
CommitLimitReached = 'commit-limit-reached', CommitLimitReached = 'commit-limit-reached',
BranchLimitReached = 'branch-limit-reached', BranchLimitReached = 'branch-limit-reached',
Rebase = 'rebase', Rebase = 'rebase',
UpdateNotScheduled = 'update-not-scheduled',
} }
export interface BranchConfig export interface BranchConfig
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment