Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bot_pr_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ This is the 25th iteration, please work.
What happens when a PR fails again?
Ok, so nothing happens when a PR fails again. Now I have removed the label manually and other changes to the code.
We will also test what happens when the test runs are a success and the label exist.
The feature is complete!!
13 changes: 1 addition & 12 deletions check_run_test.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
import sys
import os
import json

print(os.getenv("GITHUB_REF"))
print("Pull request:", os.getenv("GITHUB_REF").split("/")[2])
print(os.getenv("GITHUB_EVENT_PATH"))

with open(os.getenv("GITHUB_EVENT_PATH")) as fp:
json_obj = json.load(fp)

print("Pull Request from event.json:", json_obj["number"])

sys.exit(1)
sys.exit(0)