Class GithubGraphQLService
java.lang.Object
edu.ucsb.cs156.frontiers.services.GithubGraphQLService
-
Constructor Summary
ConstructorsConstructorDescriptionGithubGraphQLService
(org.springframework.graphql.client.HttpSyncGraphQlClient graphQlClient, JwtService jwtService) -
Method Summary
-
Constructor Details
-
GithubGraphQLService
public GithubGraphQLService(org.springframework.graphql.client.HttpSyncGraphQlClient graphQlClient, JwtService jwtService)
-
-
Method Details
-
getDefaultBranchName
public String getDefaultBranchName(Course course, String owner, String repo) throws com.fasterxml.jackson.core.JsonProcessingException, NoSuchAlgorithmException, InvalidKeySpecException, NoLinkedOrganizationException Retrieves the name of the default branch for a given GitHub repository.- Parameters:
owner
- The owner (username or organization) of the repository.repo
- The name of the repository.- Returns:
- A Mono emitting the default branch name, or an empty Mono if not found.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
NoSuchAlgorithmException
InvalidKeySpecException
NoLinkedOrganizationException
-
getCommits
public String getCommits(Course course, String owner, String repo, String branch, int first, String after) throws com.fasterxml.jackson.core.JsonProcessingException, NoSuchAlgorithmException, InvalidKeySpecException, NoLinkedOrganizationException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
NoSuchAlgorithmException
InvalidKeySpecException
NoLinkedOrganizationException
-