Check if a commit occurred on a github page

Francesco Bocci :

I'm trying to create a notification in Android.

I want to check if in a github link (for example: https://github.com/Bocci94/csv_corona/blob/master/files.csv) a commit occurred or this csv file has been modified. I need to create a script in Android that somethimes check if there is a modify.

Is this possible?

Thnks for answer.

EresDev :

There is a History button on the page, which displays the history of the file changes.

To access the history in your android app, you can use GitHub API. You can access a file commit history via

http://api.github.com/repos/:owner/:repo/commits?path=PATH_TO_FILE

For your example, it will be:

http://api.github.com/Bocci94/csv_corona/commits?path=master/files.csv

enter image description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=217503&siteId=1