Skip to main content

All Questions

Tagged with
1 vote
0 answers
76 views

Github access token for Apps

I have a GitHub App configured with a Webhook that listens to Github events. The App is installed on a private repo and has both read and write permissions. git clone https://x-access-token:<TOKEN&...
newkid's user avatar
  • 1,468
0 votes
1 answer
391 views

How to get number of lines of code of a file in a remote repo using PyGithub/ Githubsearch api?

commit = repo.get_commit(sha="0adf369fda5c2d4231881d66e3bc0bd12fb86c9a") print(commit.stats.total) i = commit.files[0].filename I can get the filename, even the file sha; but can't seem to ...
BrimBramBrum's user avatar
1 vote
1 answer
297 views

Given a giturl,how to retrieve all the projects names present in that link?

Suppose given any GitHub url for example https://github.com/github, I want to retrieve or list out all the repository names present under that url with language as java. For example given the above ...
aditi sirigeri's user avatar
-1 votes
1 answer
44 views

Commits from branch master appear in other branch - GitHub

I am analyzing commits from project apache/mina-sshd but I am running to a problem: All commits in the branch 0.9.x from project mina-sshd (except for the first 3 commits) belongs to branch master ...
Zui Vu's user avatar
  • 1
0 votes
0 answers
113 views

python script to find the difference between forked repository with the remote github repository

I have forked github repository to my github account and cloned to my local machine, whenever I want to execute my tool written in python, I need to make sure that my local copy [it may be on master ...
user3365592's user avatar
1 vote
1 answer
377 views

Git command to get pull request subject body from issue number

I would like to get pull request body, subject and URL from issue number by git command especially by gitPython library. How can I do it?
jacobcan118's user avatar
  • 9,189
1 vote
2 answers
1k views

pushing zipped files on github using python

i want to push a .zip file on github using python code or API, but in doing so with some resources which i found on stackoverflow, the file is being pushed but the data pushed is corrupted and cannot ...
User6670's user avatar
  • 160
0 votes
1 answer
302 views

Getting the time when the file was committed on Github

I want to somehow want to see if there is a way to get the time for when a file was committed on Github. I have tried using PyGithub and GitPython, but they don't have any options as such. Does anyone ...
Harshdeep Singh's user avatar