Skip to content
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

Merged
merged 14 commits into from
Jan 31, 2024
Merged

Access token from identity provider #23

merged 14 commits into from
Jan 31, 2024

Conversation

dukris
Copy link
Collaborator

@dukris dukris commented Jan 25, 2024

PR-Codex overview

This PR focuses on adding functionality to invite collaborators to a GitHub repository.

Detailed summary

  • Added InviteCollaborator class to invite collaborators to a GitHub repository
  • Updated ProjectController to use InviteCollaborator to invite collaborators
  • Added tests for InviteCollaborator class
  • Updated dependencies in pom.xml
  • Updated realm configuration in realm.json
  • Updated IdpToken class to retrieve token from IDP
  • Added tests for IdpToken class

The following files were skipped due to too many changes: src/test/java/git/tracehub/pmo/security/IpdTokenTest.java, src/test/java/git/tracehub/pmo/controller/ProjectControllerTest.java

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

codecov bot commented Jan 25, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (5e15108) 34.30% compared to head (2f2eb7c) 50.57%.

Files Patch % Lines
...git/tracehub/pmo/controller/ProjectController.java 0.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@dukris dukris requested a review from h1alexbel January 30, 2024 14:35
Copy link
Collaborator

@h1alexbel h1alexbel left a 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

pom.xml Show resolved Hide resolved

@Test
void invitesCollaboratorSuccessfully() {
final Github github = Mockito.mock(Github.class);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dukris and others added 4 commits January 30, 2024 18:46
@dukris dukris requested a review from h1alexbel January 30, 2024 16:12
Copy link
Collaborator

@h1alexbel h1alexbel left a 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),
Copy link
Collaborator

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 ?

Copy link
Collaborator

@h1alexbel h1alexbel left a 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!

@h1alexbel
Copy link
Collaborator

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 31, 2024

@rultor merge

@h1alexbel Thanks for your request; @hizmailovich please confirm this.

@dukris
Copy link
Collaborator Author

dukris commented Jan 31, 2024

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jan 31, 2024

@rultor merge

@hizmailovich OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 748f413 into master Jan 31, 2024
8 checks passed
@rultor
Copy link
Collaborator

rultor commented Jan 31, 2024

@rultor merge

@hizmailovich Done! FYI, the full log is here (took me 7min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants