From 2594f3852bb6de564d5a33dda5837e1e774d5fd3 Mon Sep 17 00:00:00 2001 From: Han-Elliot Phan Date: Mon, 19 Aug 2024 15:09:54 -0700 Subject: [PATCH] Dummy commit to generate the PR checks again --- .../dockerfileimageupdate/utils/GithubAppCheck.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GithubAppCheck.java b/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GithubAppCheck.java index 12ae5ae5..ddf8dc48 100644 --- a/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GithubAppCheck.java +++ b/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GithubAppCheck.java @@ -62,7 +62,7 @@ public GithubAppCheck(final Namespace ns){ * @param fullRepoName = The repository full name, i.e, of the format "owner/repoName". Eg: "Salesforce/dockerfile-image-update" * @return True if github app is installed, false otherwise. */ - protected boolean isGithubAppEnabledOnRepository(String fullRepoName){ + protected boolean isGithubAppEnabledOnRepository(String fullRepoName) { refreshJwtIfNeeded(appId, privateKeyPath); try { gitHub.getApp().getInstallationByRepository(fullRepoName.split("/")[0], fullRepoName.split("/")[1]); @@ -85,7 +85,7 @@ protected boolean isGithubAppEnabledOnRepository(String fullRepoName){ * @param appId = The id of the Github App to generate the JWT for * @param privateKeyPath = The path to the private key of the Github App to generate the JWT for */ - private void refreshJwtIfNeeded(String appId, String privateKeyPath){ + private void refreshJwtIfNeeded(String appId, String privateKeyPath) { if (jwt == null || jwtExpiry.isBefore(Instant.now().minusSeconds(60))) { // Adding a buffer to ensure token validity try { generateJWT(appId, privateKeyPath);