Adding Star/Unstar Methods
Description
This PR adds star/unstar a repository for a authenticated user.
Fixes : #1354
Before submitting a PR:
- [x] Changes must not break binary backwards compatibility. If you are unclear on how to make the change you think is needed while maintaining backward compatibility, CONTRIBUTING.md for details.
- [x] Add JavaDocs and other comments as appropriate. Consider including links in comments to relevant documentation on https://docs.github.com/en/rest .
- [ ] Add tests that cover any added or changed code. This generally requires capturing snapshot test data. See CONTRIBUTING.md for details.
- [x] Run
mvn -D enable-ci clean install sitelocally. If this command doesn't succeed, your change will not pass CI. - [x] Push your changes to a branch other than
main. You will create your PR from that branch.
When creating a PR:
- [x] Fill in the "Description" above with clear summary of the changes. This includes:
- [x] If this PR fixes one or more issues, include "Fixes #
" lines for each issue. - [x] Provide links to relevant documentation on https://docs.github.com/en/rest where possible.
- [x] If this PR fixes one or more issues, include "Fixes #
- [ ] All lines of new code should be covered by tests as reported by code coverage. Any lines that are not covered must have PR comments explaining why they cannot be covered. For example, "Reaching this particular exception is hard and is not a particular common scenario."
- [x] Enable "Allow edits from maintainers".
Codecov Report
Base: 79.50% // Head: 79.53% // Increases project coverage by +0.02% :tada:
Coverage data is based on head (
b898bdb) compared to base (1dcedba). Patch coverage: 100.00% of modified lines in pull request are covered.
Additional details and impacted files
@@ Coverage Diff @@
## main #1372 +/- ##
============================================
+ Coverage 79.50% 79.53% +0.02%
- Complexity 2154 2157 +3
============================================
Files 206 206
Lines 6601 6605 +4
Branches 364 364
============================================
+ Hits 5248 5253 +5
+ Misses 1141 1140 -1
Partials 212 212
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/main/java/org/kohsuke/github/GHRepository.java | 70.33% <100.00%> (+0.33%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@antrix190
I've invited you to hub4j-test-org so you can create and record tests.
@bitwiseman can you trigger build for this PR.
@bitwiseman Can you have a look at the PR, have addressed all the open comments