Community
Participate
Working Groups
I'm an admin on a private repository. Tried to create a new Milestone but I receive the following exception: Exception in thread "main" org.eclipse.egit.github.core.client.RequestException: Invalid request. "closed_issues", "created_at", "creator", "number", "open_issues", "url" are not permitted keys. (422) at org.eclipse.egit.github.core.client.GitHubClient.createException(GitHubClient.java:585) at org.eclipse.egit.github.core.client.GitHubClient.sendJson(GitHubClient.java:676) at org.eclipse.egit.github.core.client.GitHubClient.post(GitHubClient.java:795) at org.eclipse.egit.github.core.service.MilestoneService.createMilestone(MilestoneService.java:146) at org.eclipse.egit.github.core.service.MilestoneService.createMilestone(MilestoneService.java:115) at test.TestClass.main(TestClass.java:31) This is my code: GitHubClient gheclient = new GitHubClient("github.ibm.com"); gheclient.setOAuth2Token("XXX"); RepositoryService repoService = new RepositoryService(gheclient); Repository repository = repoService.getRepository("XXX", "mytestrepo"); Milestone newMile = new Milestone(); newMile.setTitle("test"); newMile.setState("open"); Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, 2020); cal.set(Calendar.YEAR, 1); cal.add(Calendar.DAY_OF_YEAR, 30); newMile.setDueOn(cal.getTime()); MilestoneService mileService = new MilestoneService(gheclient); mileService.createMilestone(repository, newMile);
Moreover fields cannot be null (e.g. description or due date)
New Gerrit change created: https://git.eclipse.org/r/155094
Gerrit change https://git.eclipse.org/r/155094 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit-github.git/commit/?id=c53b9b34fb56f3e80a0e0bfb17625fb09fa0e49d
just a curiosity... when there will be another maven build of the project?