Skip to content

Commit

Permalink
Dummy commit to generate the PR checks again
Browse files Browse the repository at this point in the history
  • Loading branch information
hanelliotphan committed Aug 19, 2024
1 parent 9685288 commit 2594f38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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);
Expand Down

0 comments on commit 2594f38

Please sign in to comment.