mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Enable automatic code formatter with CI validation
This may be controversial but it we're doing it. Having code formatting needs to be consistent and a non-issue during code review. I'm willing modify the configuration if people see a strong need, but formatting needs to be present and enforced.
This commit is contained in:
@@ -21,8 +21,7 @@ public class GHMilestoneTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
|
||||
for (GHMilestone milestone : getRepository(gitHubBeforeAfter).listMilestones(GHIssueState.ALL)) {
|
||||
if ("Original Title".equals(milestone.getTitle()) ||
|
||||
"Updated Title".equals(milestone.getTitle())) {
|
||||
if ("Original Title".equals(milestone.getTitle()) || "Updated Title".equals(milestone.getTitle())) {
|
||||
milestone.delete();
|
||||
}
|
||||
}
|
||||
@@ -31,8 +30,7 @@ public class GHMilestoneTest extends AbstractGitHubWireMockTest {
|
||||
@Test
|
||||
public void testUpdateMilestone() throws Exception {
|
||||
GHRepository repo = getRepository();
|
||||
GHMilestone milestone = repo.createMilestone("Original Title",
|
||||
"To test the update methods");
|
||||
GHMilestone milestone = repo.createMilestone("Original Title", "To test the update methods");
|
||||
|
||||
String NEW_TITLE = "Updated Title";
|
||||
String NEW_DESCRIPTION = "Updated Description";
|
||||
|
||||
Reference in New Issue
Block a user