Skip to content

Commit

Permalink
added approval for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy committed Dec 18, 2024
1 parent 07cf2e5 commit 55fe901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ private void labelPullRequests(Map<GHPullRequest, List<WhoAreYou>> filteredPullR
pullRequest.removeLabels("dont-merge/cant-find-user-in-ldap");
pullRequest.addLabels("merge-ok/user-in-ldap");
pullRequest.comment(stringWriter.toString());
pullRequest.createReview()
.event(GHPullRequestReviewEvent.APPROVE)
.create();

logger.infof("Labeled (merge-ok/user-in-ldap) and commented: %s", pullRequest.getNumber());
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/freemarker/templates/UserInLdap.ftl
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
All users in config.yaml have been validated.

/LGTM
All users in config.yaml have been validated.

0 comments on commit 55fe901

Please sign in to comment.