检查是否在 github 页面上发生了提交

Check if a commit occurred on a github page

我正在尝试在 Android 中创建通知。

我想检查在 github link(例如:https://github.com/Bocci94/csv_corona/blob/master/files.csv)中是否发生了提交或此 csv 文件是否已被修改。我需要在 Android 中创建一个脚本,有时会检查是否有修改。

这可能吗?

感谢您的回答。

页面上有一个History按钮,显示文件修改的历史记录。

要访问 android 应用中的历史记录,您可以使用 GitHub API。您可以通过

访问文件提交历史记录

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

对于您的示例,它将是:

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