From 933914919c27856552c1003b5e41f8e355f55ace Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Fri, 20 Nov 2020 19:25:11 +0530 Subject: [PATCH 01/28] Update check_pr_files.py --- check_pr_files.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/check_pr_files.py b/check_pr_files.py index a95ea27..b937338 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -4,11 +4,6 @@ def test1(a): """ return False -def test2(d): - """ - A test function - """ - return None def test3(e: int) -> None: """ From bc99e9741c3145b7b59aa3af117143fccb53cd9f Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Fri, 20 Nov 2020 19:31:26 +0530 Subject: [PATCH 02/28] Update check_pr_files.py --- check_pr_files.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_pr_files.py b/check_pr_files.py index b937338..53df3f2 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,11 +1,11 @@ -def test1(a): +def test1(abc: int) -> bool: """ A test function """ return False -def test3(e: int) -> None: +def test3(efg: int) -> None: """ >>> test3(1, 1, 1) """ @@ -16,7 +16,7 @@ class TClass: def __init__(self, test: str) -> None: self.test = test - def add(self, a: int, b: int) -> int: + def add(self, ab: int, bd: int) -> int: """ Add two numbers """ From 6888ba64806818ad18ba5d78f83da16b1ad7049d Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Fri, 20 Nov 2020 19:34:04 +0530 Subject: [PATCH 03/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 53df3f2..0ed9144 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,4 +1,4 @@ -def test1(abc: int) -> bool: +def test1(abc: int): """ A test function """ From a6cf9cb3c89541299477bbff7ba04b5796fab624 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 21 Nov 2020 15:13:59 +0530 Subject: [PATCH 04/28] Update check_pr_files.py --- check_pr_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_pr_files.py b/check_pr_files.py index 0ed9144..0d76328 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -5,9 +5,9 @@ def test1(abc: int): return False -def test3(efg: int) -> None: +def test2(efg: int) -> None: """ - >>> test3(1, 1, 1) + >>> test2(1, 1, 1) """ return None From ab38926ecdcef76f4deeee92b3259180d08b2edf Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 21 Nov 2020 16:23:18 +0530 Subject: [PATCH 05/28] Update check_pr_files.py --- check_pr_files.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 0d76328..108914e 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,6 +1,8 @@ -def test1(abc: int): +def test1(abc: int) -> bool: """ A test function + >>> test1() + False """ return False @@ -19,6 +21,8 @@ def __init__(self, test: str) -> None: def add(self, ab: int, bd: int) -> int: """ Add two numbers + >>> add(1, 1) + 2 """ return a + b From ca22238d0d83d3a572f8a6547d80939d14a196b4 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Mon, 23 Nov 2020 21:09:17 +0530 Subject: [PATCH 06/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 108914e..8804bf5 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,4 +1,4 @@ -def test1(abc: int) -> bool: +def test1(a: int): """ A test function >>> test1() From 8c0d17ed578be76e4293e585d053d5a91ab947b9 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Mon, 23 Nov 2020 21:14:36 +0530 Subject: [PATCH 07/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 8804bf5..108914e 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,4 +1,4 @@ -def test1(a: int): +def test1(abc: int) -> bool: """ A test function >>> test1() From 1bbdefa27f3eed3c1360a98e6aaf21a7fa151790 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Mon, 23 Nov 2020 21:24:05 +0530 Subject: [PATCH 08/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 108914e..8804bf5 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,4 +1,4 @@ -def test1(abc: int) -> bool: +def test1(a: int): """ A test function >>> test1() From 6cad7a1ff922c99631993123214dab46688328bf Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Mon, 23 Nov 2020 21:32:19 +0530 Subject: [PATCH 09/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 8804bf5..108914e 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,4 +1,4 @@ -def test1(a: int): +def test1(abc: int) -> bool: """ A test function >>> test1() From b9222938a4e52167a673a0ec04e36fdfb9373338 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Tue, 24 Nov 2020 21:34:11 +0530 Subject: [PATCH 10/28] Update check_pr_files.py --- check_pr_files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_pr_files.py b/check_pr_files.py index 108914e..d4d0a34 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -10,6 +10,7 @@ def test1(abc: int) -> bool: def test2(efg: int) -> None: """ >>> test2(1, 1, 1) + None """ return None From a38bdb74fd836b1d4ca83f8ebb0797fd658a8c68 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Tue, 24 Nov 2020 22:02:51 +0530 Subject: [PATCH 11/28] Add random comment --- check_pr_files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_pr_files.py b/check_pr_files.py index d4d0a34..50c6ad5 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,3 +1,4 @@ +# Some random comment def test1(abc: int) -> bool: """ A test function From 45b1552ba7f2afd416eadfb7934ae58777de719d Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Thu, 26 Nov 2020 11:05:59 +0530 Subject: [PATCH 12/28] Remove random comment --- check_pr_files.py | 1 - 1 file changed, 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 50c6ad5..d4d0a34 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,4 +1,3 @@ -# Some random comment def test1(abc: int) -> bool: """ A test function From 591fafb30d518507c54d2332a11e175c5e771aca Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 28 Nov 2020 09:26:41 +0530 Subject: [PATCH 13/28] Update test.yml --- .github/workflows/test.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f96e875..0c81eba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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<> $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 }} From 59a97631c6dc671d5ddb7f13e0cd2763e54d3037 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 28 Nov 2020 09:28:41 +0530 Subject: [PATCH 14/28] Update check_run.py --- check_run.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/check_run.py b/check_run.py index 56d62b9..011c112 100644 --- a/check_run.py +++ b/check_run.py @@ -1,9 +1,14 @@ 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")) +event_path = os.getenv("GITHUB_EVENT_PATH") +print("Event path:", event_path) +with open(event_path) as f: + event = json.load(f) + +pprint(event) + sys.exit(0) From 62baa235a36079d81a9a097d2a6bfbfadeab160f Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 28 Nov 2020 09:31:34 +0530 Subject: [PATCH 15/28] Update check_run.py --- check_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_run.py b/check_run.py index 011c112..3c480d9 100644 --- a/check_run.py +++ b/check_run.py @@ -9,6 +9,6 @@ with open(event_path) as f: event = json.load(f) -pprint(event) +pprint(event["number"]) sys.exit(0) From aceac4a4c865d345f65642aa93f3eceb191368a9 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 28 Nov 2020 09:45:04 +0530 Subject: [PATCH 16/28] Update check_run.py --- check_run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_run.py b/check_run.py index 3c480d9..5123a30 100644 --- a/check_run.py +++ b/check_run.py @@ -3,6 +3,8 @@ import json from pprint import pprint +print(os.getenv("GITHUB_API_URL")) + event_path = os.getenv("GITHUB_EVENT_PATH") print("Event path:", event_path) From 3a9aadabc21cd2965c37a5ffc10cafc076e91ced Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 28 Nov 2020 10:05:28 +0530 Subject: [PATCH 17/28] Update check_run.py --- check_run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_run.py b/check_run.py index 5123a30..9eb1d03 100644 --- a/check_run.py +++ b/check_run.py @@ -12,5 +12,6 @@ event = json.load(f) pprint(event["number"]) +print(os.getcwd()) sys.exit(0) From 49699824d960b2392bb85b3b1706abe3582b55a5 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sat, 28 Nov 2020 10:13:31 +0530 Subject: [PATCH 18/28] Update check_run.py --- check_run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_run.py b/check_run.py index 9eb1d03..125fa9c 100644 --- a/check_run.py +++ b/check_run.py @@ -4,6 +4,7 @@ from pprint import pprint print(os.getenv("GITHUB_API_URL")) +print(os.getenv("GITHUB_EVENT_NAME")) event_path = os.getenv("GITHUB_EVENT_PATH") print("Event path:", event_path) From 23aa1f30d133c786a01fdb4de972d5fd5d717fb7 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sun, 29 Nov 2020 11:22:40 +0530 Subject: [PATCH 19/28] Update check_pr_files.py --- check_pr_files.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/check_pr_files.py b/check_pr_files.py index d4d0a34..6dfb946 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,20 +1,12 @@ -def test1(abc: int) -> bool: +def test1(abc) -> bool: """ A test function - >>> test1() + # >>> test1() False """ return False -def test2(efg: int) -> None: - """ - >>> test2(1, 1, 1) - None - """ - return None - - class TClass: def __init__(self, test: str) -> None: self.test = test From dcf258e56fa825264f72ad3427ed6f8346761828 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sun, 29 Nov 2020 11:40:12 +0530 Subject: [PATCH 20/28] Update check_pr_files.py --- check_pr_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_pr_files.py b/check_pr_files.py index 6dfb946..8523a3d 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,7 +1,7 @@ -def test1(abc) -> bool: +def test1(abc: int) -> bool: """ A test function - # >>> test1() + >>> test1() False """ return False From 9e930ac4e9ddc1917c7fb30565c76c0648edbf47 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sun, 29 Nov 2020 16:04:57 +0530 Subject: [PATCH 21/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 8523a3d..f10c749 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,7 +1,7 @@ def test1(abc: int) -> bool: """ A test function - >>> test1() + # >>> test1() False """ return False From d52ab20bc860ed241186700a3a2dac499bc51576 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sun, 29 Nov 2020 16:10:35 +0530 Subject: [PATCH 22/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index f10c749..8523a3d 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,7 +1,7 @@ def test1(abc: int) -> bool: """ A test function - # >>> test1() + >>> test1() False """ return False From fd3ff9938f4940a183c3ed11f71b18e8dedef3c6 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sun, 29 Nov 2020 22:21:30 +0530 Subject: [PATCH 23/28] Update check_run.py --- check_run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_run.py b/check_run.py index 125fa9c..99b3551 100644 --- a/check_run.py +++ b/check_run.py @@ -12,6 +12,7 @@ with open(event_path) as f: event = json.load(f) +print(event["url"] + "/files") pprint(event["number"]) print(os.getcwd()) From 32808d03e6601deddf4142c46d9ca7d8f405612e Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Sun, 29 Nov 2020 22:24:29 +0530 Subject: [PATCH 24/28] Update check_run.py --- check_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_run.py b/check_run.py index 99b3551..4d8c916 100644 --- a/check_run.py +++ b/check_run.py @@ -12,7 +12,7 @@ with open(event_path) as f: event = json.load(f) -print(event["url"] + "/files") +print(event["pull_request"]["url"] + "/files") pprint(event["number"]) print(os.getcwd()) From bcc22893268186f6bcf35c7ec60848b22026ae15 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Tue, 1 Dec 2020 13:29:10 +0530 Subject: [PATCH 25/28] Update check_pr_files.py --- check_pr_files.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/check_pr_files.py b/check_pr_files.py index 078d4f0..6dcb65b 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,13 +1,11 @@ def test1(abc: int) -> bool: """ A test function - >>> test1() - False """ return False -def test3(e: int) -> None: +def test3(e) -> None: """ >>> test3(1, 1, 1) """ @@ -15,7 +13,7 @@ def test3(e: int) -> None: class TClass: - def __init__(self, test: str) -> None: + def __init__(self, test: str): self.test = test def add(self, ab: int, bd: int) -> int: From 2490744f5d0ecbbf2e9500a48ee1dece07e6c3ad Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Tue, 1 Dec 2020 16:15:33 +0530 Subject: [PATCH 26/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index 6dcb65b..f56fc12 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -5,7 +5,7 @@ def test1(abc: int) -> bool: return False -def test3(e) -> None: +def test3(emhb) -> None: """ >>> test3(1, 1, 1) """ From 2f406bd0a74e54e780426e6f7b483826c97837cd Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Tue, 1 Dec 2020 16:19:38 +0530 Subject: [PATCH 27/28] Update check_pr_files.py --- check_pr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pr_files.py b/check_pr_files.py index f56fc12..556d3a8 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -16,7 +16,7 @@ class TClass: def __init__(self, test: str): self.test = test - def add(self, ab: int, bd: int) -> int: + def add(self, aadfb: int, bdfgsd: int) -> int: """ Add two numbers >>> add(1, 1) From 0391330ef229884fdd5494094f497aa5cf6aaa23 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Tue, 1 Dec 2020 19:48:10 +0530 Subject: [PATCH 28/28] Update check_pr_files.py --- check_pr_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_pr_files.py b/check_pr_files.py index 556d3a8..83ab661 100644 --- a/check_pr_files.py +++ b/check_pr_files.py @@ -1,4 +1,4 @@ -def test1(abc: int) -> bool: +def test1(abc) -> bool: """ A test function """ @@ -16,7 +16,7 @@ class TClass: def __init__(self, test: str): self.test = test - def add(self, aadfb: int, bdfgsd: int) -> int: + def add(self, a: int, bdfgsd: int) -> int: """ Add two numbers >>> add(1, 1)