From f847c41636bb4b7510afdb9e4503e46ea9226f7a Mon Sep 17 00:00:00 2001 From: Jason Schroeder Date: Tue, 13 Jun 2023 13:19:57 -0700 Subject: [PATCH] feat: add "dependencies" labels to DFIU-created PRs --- dockerfile-image-update/pom.xml | 2 +- .../com/salesforce/dockerfileimageupdate/utils/GitHubUtil.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfile-image-update/pom.xml b/dockerfile-image-update/pom.xml index 7a475ff7..2ac7fa2b 100644 --- a/dockerfile-image-update/pom.xml +++ b/dockerfile-image-update/pom.xml @@ -120,7 +120,7 @@ org.kohsuke github-api - 1.308 + 1.315 com.amazonaws diff --git a/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GitHubUtil.java b/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GitHubUtil.java index ee88c6dc..20a94b9b 100644 --- a/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GitHubUtil.java +++ b/dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GitHubUtil.java @@ -105,6 +105,7 @@ public int createPullReq(GHRepository origRepo, String branch, try { GHPullRequest pullRequest = origRepo.createPullRequest(title, forkRepo.getOwnerName() + ":" + branch, origRepo.getDefaultBranch(), body); + pullRequest.setLabels("dependencies"); // origRepo.createPullRequest("Update base image in Dockerfile", forkRepo.getOwnerName() + ":" + branch, // origRepo.getDefaultBranch(), "Automatic Dockerfile Image Updater. Please merge."); log.info("A pull request has been created at {}", pullRequest.getHtmlUrl());