Skip to content

Commit 5345488

Browse files
committed
fix: logging and add admins
1 parent 698b90c commit 5345488

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/main/java/com/github/codingpot/github_org_member_manage_action/github/GitHubServiceV3Impl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public Status addMembers(Iterable<String> newMembers) {
4040
.forEach(
4141
u -> {
4242
try {
43+
System.out.printf("Adding a new member: %s%n", u);
4344
if (isDryRun) {
44-
System.out.printf("Adding a new member: %s%n", u);
4545
return;
4646
}
4747

@@ -60,8 +60,8 @@ public Status addAdmins(Iterable<String> newAdmins) {
6060
.forEach(
6161
u -> {
6262
try {
63+
System.out.printf("Adding a new admin: %s%n", u);
6364
if (isDryRun) {
64-
System.out.printf("Adding a new admin: %s%n", u);
6565
return;
6666
}
6767
final GHUser user = github.getUser(u);

app/src/main/java/com/github/codingpot/github_org_member_manage_action/producers/ProducersModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static Status addMembers(GitHubService service, Diff diff) {
3636
@Produces
3737
@AddAdminsStatusInternal
3838
static Status addAdmins(GitHubService service, Diff diff) {
39-
service.addMembers(diff.getNewAdmins());
39+
service.addAdmins(diff.getNewAdmins());
4040
return Status.ok();
4141
}
4242

0 commit comments

Comments
 (0)