Skip to content

Commit

Permalink
CID-3381: Address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Dec 19, 2024
1 parent 4734004 commit 0d64d3b
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ class WebhookEventService(

val installationToken = getInstallationToken(pushEventPayload.installation.id)

headCommit?.let {
if (pushEventPayload.ref == "refs/heads/$defaultBranch") {
handleManifestFileChanges(
defaultBranch,
headCommit,
repositoryFullName,
owner,
repositoryName,
installationToken
)
}
if (headCommit != null && pushEventPayload.ref == "refs/heads/$defaultBranch") {
handleManifestFileChanges(
defaultBranch,
headCommit,
repositoryFullName,
owner,
repositoryName,
installationToken
)
}
}

Expand Down

0 comments on commit 0d64d3b

Please sign in to comment.