Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to handle new changes on a repository? [question] #1343

Answered by Byron
ShivangKakkar asked this question in Q&A
Discussion options

I want to track new commits, issues, pull requests, etc of some (at least mine) github repository.
So is there a decorator like @repo.on_new_commit() or @repo.on_new_issue() or is there some other way to handle these updates in an easy fashion? I tried finding something in documentation but couldn't.

Please let me know how.

You must be logged in to vote

No, there is no such thing as GitHub API access via GitPython.

Replies: 1 comment 3 replies

Comment options

No, there is no such thing as GitHub API access via GitPython.

You must be logged in to vote
3 replies
Comment options

I know for sure it's possible using Github API. Do you mean GitPython can't handle any new updates (like Github sends notifications using emails and dashboard) on repositories? If yes, could I expect such feature in near future?

Comment options

All GitPython does is to interact with git repositories. Since commits or PRs can be fetched with the correct ref-spec, it's possible to see them in the local clone each time such a fetch is performed. Thus it's possible to observe some of what's happening on GitHub by polling.

As GitPython is in maintenance mode, new features or enhancements are contributed, there is no roadmap for new features either.

Comment options

Thanks for the reply, and for the library :)

Answer selected by ShivangKakkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #1342 on September 14, 2021 12:35.

AltStyle によって変換されたページ (->オリジナル) /