Skip to content

Commit

Permalink
Fixed comment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
deetergp committed Apr 7, 2021
1 parent ce1b0e8 commit d4fb326
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const issueNumber = core.getInput('ISSUE_NUMBER', {required: true});
const comment = core.getInput('COMMENT', {required: true});

function reopenIssueWithComment() {
console.log(`Reopening issue # ${issueNumber}`);
console.log(`Reopening issue #${issueNumber}`);
octokit.issues.update({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
issue_number: issueNumber,
state: 'open',
})
.then(() => {
console.log(`Commenting on issue # ${issueNumber}`);
console.log(`Commenting on issue #${issueNumber}`);
octokit.issues.createComment({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -27,10 +27,10 @@ function reopenIssueWithComment() {

reopenIssueWithComment()
.then(() => {
console.log(`Issue # ${issueNumber} successfully reopened and commented: "${comment}"`);
console.log(`Issue #${issueNumber} successfully reopened and commented: "${comment}"`);
process.exit(0);
})
.catch((err) => {
console.error(`Something went wrong. The issue # ${issueNumber} was not successfully reopened`, err);
console.error(`Something went wrong. The issue #${issueNumber} was not successfully reopened`, err);
core.setFailed(err);
});
2 changes: 1 addition & 1 deletion .github/scripts/verifyActions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [[ EXIT_CODE -eq 0 ]]; then
echo -e "${GREEN}Github Actions are up to date!${NC}"
exit 0
else
echo -e "${RED}Error: Diff found when Github Actions were rebuilt. Did you forget to run \`npm run gh-actions-build\`? Do you need to pull master?${NC}"
echo -e "${RED}Error: Diff found when Github Actions were rebuilt. Did you forget to run \`npm run gh-actions-build\`? Do you need to merge master?${NC}"
echo "$DIFF_OUTPUT" | $LIB_PATH/diff-so-fancy | less --tabs=4 -RFX
exit 1
fi

0 comments on commit d4fb326

Please sign in to comment.