5#include <cpp_restapi/version.hpp>
7#if !CPP_RESTAPI_HAS_GITHUB
8#error "cpp_restapi was built without GitHub helpers. Rebuild with -DCppRestAPI_GitHub=ON to use cpp_restapi::GitHub::Request."
15#include "cpp_restapi_export.h"
38 explicit Request(std::unique_ptr<cpp_restapi::IConnection>);
61 std::string
getReleases(
const std::string& user,
const std::string& repo);
72 std::string
getRelease(
const std::string& user,
const std::string& repo,
int id);
116 std::string
getUser(
const std::string& username);
155 std::string
getIssue(
const std::string& owner,
const std::string& repo,
const std::string& issueNumber);
175 std::string
getPullRequest(
const std::string& owner,
const std::string& repo,
const std::string& pullNumber);
185 std::string
listPullRequestCommit(
const std::string& owner,
const std::string& repo,
const std::string& pullNumber);
197 std::string
listPullRequestfiles(
const std::string& owner,
const std::string& repo,
const std::string& pullNumber);
207 std::string
isPRmerged(
const std::string& owner,
const std::string& repo,
const std::string& pullNumber);
219 std::string
listCommits(
const std::string& owner,
const std::string& repo);
230 std::string
listBranchHeadCommit(
const std::string& owner,
const std::string& repo,
const std::string& commitSha);
252 std::string
getCommits(
const std::string& owner,
const std::string& repo,
const std::string& reference);
337 std::string
getRepoClones(
const std::string& owner,
const std::string& repo);
366 std::string
getPageViews(
const std::string& owner,
const std::string& repo);
394 std::string
listRepoEvent(
const std::string& owner,
const std::string& repo);
483 std::string
getRepository(
const std::string& owner,
const std::string& repo);
503 std::string
getRepoLang(
const std::string& owner,
const std::string& repo);
517 std::unique_ptr<cpp_restapi::IConnection> m_connection;
519 std::string doRequest(
const std::string &);
GitHub api actions.
Definition request.hpp:36
std::string listCommitPullRequest(const std::string &owner, const std::string &repo, const std::string &commitSha)
List pull requests associated with a commit.
std::string getcontributorsActivity(const std::string &owner, const std::string &repo)
Get all contributor commit activity.
std::string getRepoLang(const std::string &owner, const std::string &repo)
List repository languages.
std::string getRateLimit()
Request api limits.
std::string getRefferalPaths(const std::string &owner, const std::string &repo)
Get top referral paths.
std::string getUser(const std::string &username)
Provides publicly available information about someone with a GitHub account.
std::string getRepoClones(const std::string &owner, const std::string &repo)
Get repository clones.
std::string listRepoIssues(const std::string &owner, const std::string &repo)
List issues in a repository.
std::string listUserEvent(const std::string &username)
List events for the authenticated user.
Request(std::unique_ptr< cpp_restapi::IConnection >)
std::string getOrgRepo(const std::string &org)
List organization repositories.
Request(const Request &)=delete
std::string listPullRequest(const std::string &owner, const std::string &repo)
List pull request in a repository.
std::string getWeeklyCommit(const std::string &owner, const std::string &repo)
Get the weekly commit activity.
std::string repoContributors(const std::string &owner, const std::string &repo)
List repository contributors.
std::string listOrgEvent(const std::string &org)
List public organization events.
std::string getTopreferralSource(const std::string &owner, const std::string &repo)
Get top referral sources.
std::string getPullRequest(const std::string &owner, const std::string &repo, const std::string &pullNumber)
Lists details of a pull request by providing its number.
std::string getUserInfo(const std::string &user)
Request user info.
std::string listUsers()
Lists all users, in the order that they signed up on GitHub. This list includes personal user account...
std::string getHourlyCommitCount(const std::string &owner, const std::string &repo)
Get the hourly commit count for each day.
std::string listRepoCollaborators(const std::string &owner, const std::string &repo)
List repository collaborators.
std::string listNetworkRepoEvent(const std::string &owner, const std::string &repo)
List public events for a network of repositories.
std::string getPageViews(const std::string &owner, const std::string &repo)
Get page views. Get the total number of views and breakdown per day or week for the last 14 days.
std::string listAuthUserRepo()
List repositories for the authenticated user.
std::string getIssue(const std::string &owner, const std::string &repo, const std::string &issueNumber)
std::string isPRmerged(const std::string &owner, const std::string &repo, const std::string &pullNumber)
Check if a pull request has been merged.
std::string getRepoSubscription(const std::string &owner, const std::string &repo)
Get a repository subscription.
std::string getRelease(const std::string &user, const std::string &repo, int id)
Request release details.
std::string listCommits(const std::string &owner, const std::string &repo)
List commits.
std::string listPullRequestfiles(const std::string &owner, const std::string &repo, const std::string &pullNumber)
Responses include a maximum of 3000 files. The paginated response returns 30 files per page by defaul...
std::string issues()
List issues assigned to the authenticated user across all visible repositories including owned reposi...
std::string getCommunityProfileMetrics(const std::string &owner, const std::string &repo)
Get community profile metrics.
std::string listBranchHeadCommit(const std::string &owner, const std::string &repo, const std::string &commitSha)
List branches for HEAD commit.
Request & operator=(const Request &)=delete
std::string getAuthenticatedUser()
Get the authenticated user info.
std::string getLastYearCommit(const std::string &owner, const std::string &repo)
Get the last year of commit activity.
std::string getReleases(const std::string &user, const std::string &repo)
Request releases for repository.
std::string listStargazers(const std::string &owner, const std::string &repo)
Lists the people that have starred the repository.
std::string getCommitCount(const std::string &owner, const std::string &repo)
Get the weekly commit count.
std::string listPullRequestCommit(const std::string &owner, const std::string &repo, const std::string &pullNumber)
Lists a maximum of 250 commits for a pull request.
std::string listRepoWatchers(const std::string &owner, const std::string &repo)
Lists the people watching the specified repository.
std::string listRepoEvent(const std::string &owner, const std::string &repo)
List repository events.
std::string orgIssues(const std::string &org)
List issues in an organization assigned to the authenticated user.
std::string listUserWatchedRepos(const std::string &username)
List repositories watched by a user.
std::string getCommits(const std::string &owner, const std::string &repo, const std::string &reference)
Get a commit.
std::string listUserStarredRepo(const std::string &username)
List repositories starred by a user.
std::string listUserRepo(const std::string &user)
Request list of user repositories.
std::string getRepository(const std::string &owner, const std::string &repo)
Get a repository.
Definition connection_builder.hpp:14