A Ruby toolkit for the GitHub API.
Questions tagged [octokit]
166 questions
0
votes
1 answer
How do I automatically create an issue in a new GitHub repository?
I am the admin of a GitHub organization. I have set up a Repository webhook for the organization. I am using ngrok to communicate to a local sinatra instance. Here is my server.rb file:
require 'sinatra'
require 'json'
set :port, 1234
post…

codeavenger07
- 53
- 7
0
votes
0 answers
github API using ocotokit: cannot create/update file for personal repos (no organization)
I created a github app. when user authorize the app I can access his organizations repos: list repo, branches, create and update files.
when the repos are not organization repos, (regular repos), I can list the repos and get files content BUT cannot…

Open Voip
- 133
- 3
- 7
0
votes
1 answer
How to get at least some data on the repository license?
I search for repositories according to the documentation.
https://github.com/octokit/octokit.net/blob/master/docs/search.md
How to get at least some data on the repository license?
I mean get data from this page. enter image description here
Or…

user9832524
- 35
- 7
0
votes
1 answer
Octokit: add_contents without pushing to repo
I am frequently getting an Octokit::AbuseDetected error because my app triggers too many API requests.
I am using the add_contents method to add each file inside of a specific directory to a remote repository: (one by one)
Dir.glob(wrapper +…

heroxav
- 1,387
- 1
- 22
- 65
0
votes
2 answers
Accessing gon variable that references form params
I'm trying to build a simple page that searches for github users and displays their followers on the page without refreshing the page. I'm using Octokit to access the Github api and Gon to create controller variables that can be accessed in js.erb…

Brett
- 49
- 2
- 8
0
votes
1 answer
GitHub API (Octokat.js): Cannot get Projects
I'm trying to access projects of a repository through GitHub API using Octokat.js.
The API guide says I need to use preview header, which I am using:
https://developer.github.com/v3/projects/
I'm getting error for property fetchAll of undefined (=…

Pakas
- 47
- 7
0
votes
1 answer
redirect_to is not working into rescue block
I am using Octokit so as to login.
helper_method :user
def show
end
def user
client = Octokit::Client.new(access_token: session[:access_token])
begin
@user = client.user
rescue => e
redirect_to root_path
return
end
end
The…

nacho c
- 311
- 1
- 3
- 15
0
votes
1 answer
How to create a file in a GitHub repository using Octokit in Ruby?
I am logged in using Octokit::Client.new and want to create a file inside one of my repos. Please tell me which method/function does this.
I tried searching a lot but cannot find a good reference for octokit; developer.github.com describes only HTTP…

Abhishek Kumar
- 298
- 4
- 10
0
votes
2 answers
Get issues CreatedBy user using Octokit
I am using Octokit to make a report and I need to get the issues of a given repository (which is not hard using the client.Issue.GetAllForRepository method) but then I need the issues' CreatedBy, and ClosedBy when it applies, however it seems both…

Luiso
- 4,173
- 2
- 37
- 60
0
votes
1 answer
Octokit Client create Repo for User
I have ruby on rails app and I'm using Octokit to connect to an enterprise GitHub (GHE) that I'm hosting myself.
Due to certain constraints, new users are signing up on my app and I create accounts for them on my GHE instance, which means I never…

drguthals
- 1
- 2
0
votes
2 answers
Pushing to Github from .Net app
I want my .NET/C# app to upload a few files to my Github repo. How can I do that?
Also, is local repo necessary for that? As the app won't be making changes to whole repo, only uploading a few files.
Tried using Octokit, but couldn't figure out how…

mindaugasw
- 1,116
- 13
- 18
0
votes
2 answers
Octokit - starring method
Is there a native method on Octokit that allows starring a repo?
Been looking around ex on client.Repositories and can not find anything.

Chris Hermut
- 1,708
- 3
- 17
- 32
0
votes
2 answers
.net github api - can't connect to repository
Using the code below I am trying to use octokit.net to connect to the jquery repository, but the code never seems to reach the print statement. Is there any reason why this is the case, I know the await keyword is causing the delay but the core…

user3904388
- 103
- 8
0
votes
1 answer
What does “If OAuth is used, the delete_repo scope is required.“ mean in GitHub API?
I want to use GitHub api to delete a repo, I also tried Octokit, but not work at all, there is a sentence I can't understand in the document, “If OAuth is used, the delete_repo scope is required.“, I can't get its point here, please help me,…

user3620613
- 151
- 1
- 7
0
votes
1 answer
Octokit.net - Github Xamarin
i'm using Xamarin and now i need to use Octokit.Net - a library for cross-platform.
I'm cant find any useful document or example about this library to work on xamarin(mobile)
Any one can help please...
Thanks.

Việt Phải Học Bài
- 51
- 1
- 8