Questions tagged [octokit.net]

Octokit is a client library targeting .NET 4.5 and above that provides an easy way to interact with the GitHub API.

Octokit is a client library targeting .NET 4.5 and above that provides an easy way to interact with the GitHub API.

https://github.com/octokit/octokit.net

75 questions
9
votes
2 answers

Getting all files for repository using OctoKit

I want to get all informations about files from my github repository using octokit projectis: http://octokitnet.readthedocs.org/en/latest/contributing/ Updated: what I thought I can do is getAllFilesFromRepository that will return json with…
cpoDesign
  • 8,953
  • 13
  • 62
  • 106
6
votes
3 answers

How to check if a branch has been merged into master using github api (or octokit)

I'd like to check if a feature branch has been merged into my master branch using the github api/Octokit. I havent been able to find any documentation or posts on this topic. Is this possible? Does anyone know of any posts that address this topic?
Billy
  • 823
  • 3
  • 12
  • 28
6
votes
3 answers

How to get a list of all forks of a GitHub repo?

I would like to get a list of all forks of a GitHub repo (e.g. https://github.com/eternicode/bootstrap-datepicker), however I am unable to find out how to do it using octokit.net. I want also get a renamed repositories, I could not just search a…
TN.
  • 18,874
  • 30
  • 99
  • 157
5
votes
2 answers

How can I check github releases in c#?

Something like this. void UpdateCheck() { if (GithubApi.GetCurrentRelease().Version > CurrentVersion) } How can I do this? I found some API, https://github.com/octokit/octokit.net but I can't find this function.
Joy Hyuk Lee
  • 756
  • 11
  • 22
4
votes
2 answers

“Validation failed” error on searching in private repository with installation of GitHub App

I’ve created a GitHub app and installed it in my account, giving it access to a private repository in my account. The GitHub app has read permission to metadata. I then generated a JWT and used it to create an installation access token, following…
zane
  • 107
  • 1
  • 11
4
votes
1 answer

Can you use raw graphQL syntax to query github API v4 in c# using octokit.net library?

I am trying to use graphQL to query repositories and their content, but can't figure out how to build a desired query in LinQ. Is there any way I could execute raw GraphQL query avoiding the LinQ syntax? My functional GraphQL query looks like this:…
Jiří Melen
  • 147
  • 8
4
votes
1 answer

Is there any way to get repository insights via the GitHub Rest API v3

I want to get statistics for the number of issues opened/closed for a repository during a specified period of time. I can view this information in GitHub by clicking the insights tab. For example: https://github.com/nodejs/node/pulse Can I pull any…
sgonzalez
  • 741
  • 6
  • 20
3
votes
1 answer

C#: Download Release Asset from Github

I want to download release asset zipball´s in a C# application for further use. I´m using Octokit to get all release informations from the repo, including the respective browserdownload_url. After some research it seemed to me, that you cant…
Metal24
  • 31
  • 2
3
votes
1 answer

How to get list of files for every commit with octokit and c#

I have one class GitHub with one method which should return list of all commits for specific username and repo on GitHub: using System; using Octokit; using System.Threading.Tasks; using System.Collections.Generic; namespace ReadRepo { public…
Luka Lopusina
  • 2,557
  • 3
  • 27
  • 32
3
votes
1 answer

Getting a Git repo submodule's target hash/SHA via Octokit.net?

Is there any way to see the current target SHA of a GitHub repository submodule via Octokit[.net] (without cloning it locally)? I've been able to track down all the submodules by retrieving the .gitmodules file from the "parent" repo, but that file…
patridge
  • 26,385
  • 18
  • 89
  • 135
3
votes
2 answers

Octokit.net Creating new repository

I have a problem with creating new repository with Octokit.net. This is my code: public async Task stvoriNovi(FormCollection collection) { string name = collection.Get("name"); NewRepository newRepo = new…
Nodios
  • 439
  • 6
  • 18
3
votes
1 answer

Cannot get repository contents as .zip file (zipball) in Octokit.net

I am using Octokit.net version 0.9.0 (GitHub API for .NET) for getting zip contents of few repositories. I already have the list of repositories I need but I am having trouble with getting the the content of the repositories as .zip files (called…
Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123
3
votes
2 answers

Authenticate with Octokit.net and push with LibGit2Sharp to GitHub repository

I use the LibGit2Sharp library to clone/push the authenticated user's GitHub repository, but LibGit2Sharp doesn't accept an access token to authorize the user. LibGit2Sharp.Credentials credentials = new UsernamePasswordCredentials() { …
Gábor Domonkos
  • 1,081
  • 1
  • 17
  • 33
2
votes
1 answer

How do we add the members to the repo team in GitHub via Email Id

I want to sent an invite to GitHub user to join any particular team in any Organization based on email id. Currently, I am able to sent an invite for same but using GitHub Username using Octokit Library method AddOrEditMembership(id, name, role) Is…
2
votes
1 answer

Updating a file in GitHub repository using Octokit

I am trying to develop a windows forms application that can create, update and delete files in a GitHub repository using Octokit. public Form1() { InitializeComponent(); var ghClient = new GitHubClient(new…
coder
  • 203
  • 5
  • 15
1
2 3 4 5