Convenience method to auth with app installation token && documentation examples #583
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @bitwiseman
This PR fixes #570 #582 things discussed there.
List of things done:
Added a convenience method to authenticate with app installation tokens;
Converted existing markdown doc to APT due to formatting features;
The maven-site-plugin (even the 3.3 onwards) Markdown implementation is rather limited and it wasn't exactly clear, visually, when the code snippets started when I started adding more of them.
Before:

After:

Replaced occurrences of kohsuke user to github-api org where applicable;
I noticed that you transferred the github-api project to an org with the same name so I seized the opportunity to fix references in the source code to it too.
Fixed repositoryIds method on GHAppCreateTokenBuilder;
That was something that slipped through the cracks on my last PR that both of us didn't notice during the review. The type should be
Long
rather thanInteger
. Considering that you haven't released it yet, I thought that now was the perfect opportunity to fix it.In case you want me to deprecate the original method and create a second one with the right method signature instead of replacing it, let me now ... it's up to you tbh.
Future work:
I plan to create another documentation page with the steps related to deal with Github apps but I decided to first focus on the several ways people can authenticate to Github with this library before anything else (most recurrent question IMHO). Also, I needed to know if I am heading in the right direction that you guys have in mind.