-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access token from identity provider #23
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #23 +/- ##
=============================================
+ Coverage 34.30% 50.57% +16.27%
- Complexity 30 40 +10
=============================================
Files 17 17
Lines 172 174 +2
Branches 5 5
=============================================
+ Hits 59 88 +29
+ Misses 112 84 -28
- Partials 1 2 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hizmailovich great!
Minor comments
|
||
@Test | ||
void invitesCollaboratorSuccessfully() { | ||
final Github github = Mockito.mock(Github.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about using MkGithub
here?
Its API is much simpler, take a look:
src/test/java/git/tracehub/pmo/platforms/github/package-info.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Aliaksei Bialiauski <aliaksei.bialiauski@hey.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hizmailovich see below
); | ||
new InviteCollaborator("user/repo", collaborator, github).exec(); | ||
MatcherAssert.assertThat( | ||
"Collaborator %s isn't invited".formatted(collaborator), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about Collaborator %s isn't invited as expected
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hizmailovich looks good to me!
@rultor merge |
@h1alexbel Thanks for your request; @hizmailovich please confirm this. |
@rultor merge |
PR-Codex overview
This PR focuses on adding functionality to invite collaborators to a GitHub repository.
Detailed summary
InviteCollaborator
class to invite collaborators to a GitHub repositoryProjectController
to useInviteCollaborator
to invite collaboratorsInviteCollaborator
classpom.xml
realm.json
IdpToken
class to retrieve token from IDPIdpToken
class