Skip to content

Commit

Permalink
fix(github-actions): make check title more succinct (#941)
Browse files Browse the repository at this point in the history
PR Close #941
  • Loading branch information
josephperrott committed Dec 14, 2022
1 parent 64dedab commit 51b292e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions github-actions/unified-status-check/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24048,9 +24048,9 @@ function getState(results) {
return "pending";
}
function getTitle(state, results) {
const openMoreInfoText = " (open details for more info)";
const openMoreInfoText = " (open details for more)";
if (state === "success") {
return "Pull Request is ready for merge!";
return "Pull Request is ready for merge";
}
let title = results[state].map(({ description }) => description).join(" ");
if (title.length >= 160) {
Expand Down
4 changes: 2 additions & 2 deletions github-actions/unified-status-check/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ function getState(results: ValidationResults): NormalizedState {
}

function getTitle(state: NormalizedState, results: ValidationResults) {
const openMoreInfoText = ' (open details for more info)';
const openMoreInfoText = ' (open details for more)';

if (state === 'success') {
return 'Pull Request is ready for merge!';
return 'Pull Request is ready for merge';
}

let title = results[state].map(({description}) => description).join(' ');
Expand Down

0 comments on commit 51b292e

Please sign in to comment.