derek-thomas commited on
Commit
5a23388
·
1 Parent(s): 5802d42

Logg the git url

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -89,6 +89,7 @@ async def community(payload: WebhookPayload, task_queue: BackgroundTasks):
89
  try:
90
  commit_files_url = f"""{payload.repo.url.api}/compare/{payload.updatedRefs[0].oldSha}..{payload.updatedRefs[0].newSha}?raw=true"""
91
  response_text = requests.get(commit_files_url, headers=build_hf_headers()).text
 
92
  if 'README.md' in response_text:
93
  response_content = "No task scheduled: its a README update."
94
  logger.info(response_content)
 
89
  try:
90
  commit_files_url = f"""{payload.repo.url.api}/compare/{payload.updatedRefs[0].oldSha}..{payload.updatedRefs[0].newSha}?raw=true"""
91
  response_text = requests.get(commit_files_url, headers=build_hf_headers()).text
92
+ logger.info(f"Git Compare URl: {commit_files_url}")
93
  if 'README.md' in response_text:
94
  response_content = "No task scheduled: its a README update."
95
  logger.info(response_content)