This commit is contained in:
alesapin 2021-09-15 17:12:23 +03:00
parent 04dc61dfc3
commit 77df16ea6d

View File

@ -11,7 +11,7 @@ class PRInfo:
if 'after' in github_event:
self.sha = github_event['after']
else:
self.sha = os.getenv('GITHUB_SHA')
self.sha = github_event['pull_request']['head']['sha']
self.labels = set([l['name'] for l in github_event['pull_request']['labels']])
self.user_login = github_event['pull_request']['user']['login']