Add CI checks for every commit

This commit is contained in:
Rafał Mikrut 2024-02-28 19:18:32 +01:00 committed by Mathieu Comandon
parent 467993d41a
commit 5378de4060
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,4 @@
on: on: [push, pull_request]
pull_request:
name: Static Analysis name: Static Analysis
jobs: jobs:

View file

@ -14,8 +14,8 @@ response = subprocess.check_output(
) )
issues = json.loads(response) issues = json.loads(response)
for issue in issues: for issue in issues:
print(f"Locking issue {issue["number"]}") print(f"Locking issue {issue['number']}")
subprocess.check_output( subprocess.check_output(
f"gh api --method PUT /repos/{OWNER}/{REPO}/issues/{issue["number"]}/lock -f lock_reason='resolved'", f"gh api --method PUT /repos/{OWNER}/{REPO}/issues/{issue['number']}/lock -f lock_reason='resolved'",
shell=True, shell=True,
) )