Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ibakshay committed Feb 5, 2021
2 parents 73d4b10 + 30f7381 commit 50267bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/main.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/pullrequest/pullRequestComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import {
import { getUseDcoFlag } from '../shared/getInputs'



export default async function prCommentSetup(signed: boolean, committerMap: CommitterMap, committers: CommittersDetails[]) {
try {
const claBotComment = await getComment()
if (!claBotComment) {
if (!claBotComment && !signed) {
return createComment(signed, committerMap)
} else if (claBotComment?.id) {
if (signed) {
Expand Down
2 changes: 1 addition & 1 deletion src/setupClaCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function setupClaCheck() {
signed = true
}
try {
const reactedCommitters: any = (await prCommentSetup(signed, committerMap, committers)) as ReactedCommitterMap
const reactedCommitters: ReactedCommitterMap = (await prCommentSetup(signed, committerMap, committers)) as ReactedCommitterMap

if (signed) {
core.info(`All committers have signed the CLA`)
Expand Down

0 comments on commit 50267bf

Please sign in to comment.