Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from atomist-skills/atomist/eslint-master
Browse files Browse the repository at this point in the history
ESLint fixes
  • Loading branch information
cdupuis authored Jul 28, 2020
2 parents 01abc5c + af23095 commit f3a25dd
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions lib/events/rebaseOnPush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ export const handler: EventHandler<

if (!!prs?.PullRequest && prs.PullRequest.length > 0) {
const commits = push.commits
.map(c => `- ${c.sha.slice(0, 7)} _${truncateCommitMessage(c.message)}_`)
.map(
c =>
`- ${c.sha.slice(0, 7)} _${truncateCommitMessage(
c.message,
)}_`,
)
.join("\n");

for (const pr of prs.PullRequest) {
Expand Down Expand Up @@ -193,11 +198,14 @@ ${github.formatMarkers(ctx)}`,
);
results.push({
code: 0,
reason: `Pull request [${pr.repo.owner}/${pr.repo.name}#${pr.number}](${
reason: `Pull request [${pr.repo.owner}/${pr.repo.name}#${
pr.number
}](${
pr.url
}) was successfully rebased onto [${push.after.sha.slice(0, 7)}](${
push.after.url
}) by @${push.after.author.login}`,
}) was successfully rebased onto [${push.after.sha.slice(
0,
7,
)}](${push.after.url}) by @${push.after.author.login}`,
});
}
}
Expand Down

0 comments on commit f3a25dd

Please sign in to comment.