Skip to content

Commit

Permalink
nvm that didnt work this should fix it
Browse files Browse the repository at this point in the history
Signed-off-by: IThundxr <[email protected]>
  • Loading branch information
IThundxr committed Jul 26, 2023
1 parent 2bcfda5 commit fd973de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webserver/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ const actionCompleted = async (client: Client, req: Request) => {
};

const generateCommitsString = (head_sha: string) => {
if (!commitMap.get(head_sha)) {
return 'No commits found';
}
const commitsArray = commitMap.get(head_sha);
if (!commitsArray) return;
if (commitsArray.commits.length == 0) return;
const commitString = commitsArray.commits
.map((commit) => {
const committer = commit.committer;
Expand Down

0 comments on commit fd973de

Please sign in to comment.