This action is really useful for us, but we have a situation that occassionally happens in our GitHub Actions workflow where some jobs can be in a pending status waiting on our self-hosted runners becoming available. When this happens, the allcheckspassed action doesn't seem to recognise these and considers all checks to have passed prematurely and ends, before our runner has picked up the pending job.
Current Behaviour
In the GitHub API documentation I can see these values for check run status:
queued
in_progress
completed
waiting
requested
pending
In src/checks/checksConstants.ts:
export const checkStatus = {
QUEUED: "queued",
IN_PROGRESS: "in_progress",
COMPLETED: "completed",
WAITING: "waiting",
};
In src/checks/checks.ts:
let inProgressQueuedWaiting = [
checkStatus.IN_PROGRESS,
checkStatus.QUEUED,
checkStatus.WAITING,
];
The pending (and requested) statuses are missing, so I suspect checks in these status are not being treated as "in progress".
It may be they have been left out here on purpose for some reason, otherwise hopefully we can add the pending status in please.
Proposed Behaviour
- Add
pending (and maybe requested as well?) to src/checks/checksConstants.ts:
export const checkStatus = {
QUEUED: "queued",
IN_PROGRESS: "in_progress",
COMPLETED: "completed",
WAITING: "waiting",
PENDING: "pending", // add
REQUESTED: "requested", // add
};
- Include in src/checks/checks.ts:
let inProgressQueuedWaiting = [
checkStatus.IN_PROGRESS,
checkStatus.QUEUED,
checkStatus.WAITING,
checkStatus.PENDING, // add
checkStatus.REQUESTED, // add
];
This action is really useful for us, but we have a situation that occassionally happens in our GitHub Actions workflow where some jobs can be in a
pendingstatus waiting on our self-hosted runners becoming available. When this happens, theallcheckspassedaction doesn't seem to recognise these and considers all checks to have passed prematurely and ends, before our runner has picked up thependingjob.Current Behaviour
In the GitHub API documentation I can see these values for check run status:
queuedin_progresscompletedwaitingrequestedpendingIn src/checks/checksConstants.ts:
In src/checks/checks.ts:
The
pending(andrequested) statuses are missing, so I suspect checks in these status are not being treated as "in progress".It may be they have been left out here on purpose for some reason, otherwise hopefully we can add the
pendingstatus in please.Proposed Behaviour
pending(and mayberequestedas well?) to src/checks/checksConstants.ts: