Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9339149
Update check_pr_files.py
dhruvmanila Nov 20, 2020
bc99e97
Update check_pr_files.py
dhruvmanila Nov 20, 2020
6888ba6
Update check_pr_files.py
dhruvmanila Nov 20, 2020
a6cf9cb
Update check_pr_files.py
dhruvmanila Nov 21, 2020
ab38926
Update check_pr_files.py
dhruvmanila Nov 21, 2020
ca22238
Update check_pr_files.py
dhruvmanila Nov 23, 2020
8c0d17e
Update check_pr_files.py
dhruvmanila Nov 23, 2020
1bbdefa
Update check_pr_files.py
dhruvmanila Nov 23, 2020
6cad7a1
Update check_pr_files.py
dhruvmanila Nov 23, 2020
b922293
Update check_pr_files.py
dhruvmanila Nov 24, 2020
a38bdb7
Add random comment
dhruvmanila Nov 24, 2020
45b1552
Remove random comment
dhruvmanila Nov 26, 2020
591fafb
Update test.yml
dhruvmanila Nov 28, 2020
59a9763
Update check_run.py
dhruvmanila Nov 28, 2020
62baa23
Update check_run.py
dhruvmanila Nov 28, 2020
aceac4a
Update check_run.py
dhruvmanila Nov 28, 2020
3a9aada
Update check_run.py
dhruvmanila Nov 28, 2020
4969982
Update check_run.py
dhruvmanila Nov 28, 2020
23aa1f3
Update check_pr_files.py
dhruvmanila Nov 29, 2020
dcf258e
Update check_pr_files.py
dhruvmanila Nov 29, 2020
9e930ac
Update check_pr_files.py
dhruvmanila Nov 29, 2020
d52ab20
Update check_pr_files.py
dhruvmanila Nov 29, 2020
fd3ff99
Update check_run.py
dhruvmanila Nov 29, 2020
efcc759
Merge branch 'master' into testing_bot
dhruvmanila Nov 29, 2020
32808d0
Update check_run.py
dhruvmanila Nov 29, 2020
bcc2289
Update check_pr_files.py
dhruvmanila Dec 1, 2020
2490744
Update check_pr_files.py
dhruvmanila Dec 1, 2020
2f406bd
Update check_pr_files.py
dhruvmanila Dec 1, 2020
0391330
Update check_pr_files.py
dhruvmanila Dec 1, 2020
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
12 changes: 0 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,4 @@ jobs:
- run: echo $GITHUB_RUN_ID
- run: echo $GITHUB_EVENT_PATH
- run: echo $GITHUB_REF
- run: echo $GITHUB_ENV
- run: echo "HELLO=WORLD" >> $GITHUB_ENV
- run: |
echo 'JSON_RESPONSE<<EOF' >> $GITHUB_ENV
curl https://httpbin.org/json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- run: cat $GITHUB_ENV
- run: echo $GITHUB_PATH
- run: echo "/path/to/some/dir" >> $GITHUB_PATH
- run: cat $GITHUB_PATH
- run: python check_run.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions check_pr_files.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
def test1(a):
def test1(abc) -> bool:
"""
A test function
"""
return False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide doctest for the function.



def test3(e: int) -> None:
def test3(emhb) -> None:
"""
>>> test3(1, 1, 1)
"""
return None


class TClass:
def __init__(self, test: str) -> None:
def __init__(self, test: str):
self.test = test

def add(self, a: int, b: int) -> int:
def add(self, a: int, bdfgsd: int) -> int:
"""
Add two numbers
>>> add(1, 1)
2
"""
return a + b

Expand Down
16 changes: 13 additions & 3 deletions check_run.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import sys
import os
import json
from pprint import pprint

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

event_path = os.getenv("GITHUB_EVENT_PATH")
print("Event path:", event_path)

with open(event_path) as f:
event = json.load(f)

print(event["pull_request"]["url"] + "/files")
pprint(event["number"])
print(os.getcwd())

sys.exit(0)