提交 6a5ebb1a 编写于 作者: A Athul Cyriac Ajay 提交者: athul

Merge pull request #3 from gautamkrishnar/patch-2

Updated code to do commit only if readme changed
......@@ -2,6 +2,7 @@ FROM python:latest
# Install dependencies.
ADD requirements.txt /requirements.txt
ADD main.py /main.py
RUN pip install -r requirements.txt
CMD python main.py
\ No newline at end of file
......@@ -53,5 +53,6 @@ if __name__ == '__main__':
stats = getStats()
rdmd = decodeReadme(contents.content)
newreadme = generatenewReadme(stats=stats, readme=rdmd)
repo.update_file(path=contents.path, message="Updated with Dev Metrics",
if newreadme != rdmd:
repo.update_file(path=contents.path, message="Updated with Dev Metrics",
content=newreadme, sha=contents.sha, branch="master")
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册