shipkit / shipkit-changelog

Minimalistic Gradle plugin that generates changelog based on commit history and GitHub pull requests/issues
Apache License 2.0
68 stars 10 forks source link

Private repositories #90

Closed ianbondoc closed 3 years ago

ianbondoc commented 3 years ago

Hi, is it possible to use this for private repos? Got this when i tried generateChangeLog and got this:

Caused by: java.io.IOException: GET https://api.github.com/repos/my/private/repository/issues?page=1&per_page=100&state=closed&filter=all&direction=desc failed, response code = 404, response body: {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/issues#list-repository-issues"} at org.shipkit.changelog.GithubApi.call(GithubApi.java:86) at org.shipkit.changelog.GithubApi.doRequest(GithubApi.java:66) at org.shipkit.changelog.GithubApi.get(GithubApi.java:35) at org.shipkit.changelog.GithubListFetcher.nextPage(GitHubListFetcher.java:46) at org.shipkit.changelog.GithubTicketFetcher.fetchTickets(GithubTicketFetcher.java:33)

mockitoguy commented 3 years ago

Sure! You can configure githubUrl and githubApiUrl, see example in "Usage" section of the readme: https://github.com/shipkit/shipkit-changelog#usage

mockitoguy commented 3 years ago

Sorry, I did not notice this issue opened earlier.

ianbondoc commented 3 years ago

thanks! will try that but for now ended up building the same functionality for our project

mockitoguy commented 3 years ago

Sounds good and good luck!