Fix wonky comment

This commit is contained in:
Simon Engledew 2021-01-22 14:07:46 +00:00
parent 6be1f5ce0e
commit ee4d06713e
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
3 changed files with 5 additions and 5 deletions

4
lib/actions-util.js generated
View file

@ -153,8 +153,8 @@ function toCodedErrors(errors) {
return acc;
}, {});
}
// codes to send back via status report
// if message is set to a string a warning annotation will also be added to the run
// code to send back via status report
// message to add as a warning annotation to the run
exports.WorkflowErrors = toCodedErrors({
MismatchedBranches: `Please make sure that every branch in on.pull_request is also in on.push so that Code Scanning can compare pull requests against the state of the base branch.`,
MissingHooks: `Please specify on.push and on.pull_request hooks so that Code Scanning can compare pull requests against the state of the base branch.`,

File diff suppressed because one or more lines are too long

View file

@ -195,8 +195,8 @@ function toCodedErrors<T>(errors: T): Record<keyof T, CodedError> {
}, {} as Record<keyof T, CodedError>);
}
// codes to send back via status report
// if message is set to a string a warning annotation will also be added to the run
// code to send back via status report
// message to add as a warning annotation to the run
export const WorkflowErrors = toCodedErrors({
MismatchedBranches: `Please make sure that every branch in on.pull_request is also in on.push so that Code Scanning can compare pull requests against the state of the base branch.`,
MissingHooks: `Please specify on.push and on.pull_request hooks so that Code Scanning can compare pull requests against the state of the base branch.`,