-
Notifications
You must be signed in to change notification settings - Fork 2
Testing bot #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Testing bot #34
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 bc99e97
Update check_pr_files.py
dhruvmanila 6888ba6
Update check_pr_files.py
dhruvmanila a6cf9cb
Update check_pr_files.py
dhruvmanila ab38926
Update check_pr_files.py
dhruvmanila ca22238
Update check_pr_files.py
dhruvmanila 8c0d17e
Update check_pr_files.py
dhruvmanila 1bbdefa
Update check_pr_files.py
dhruvmanila 6cad7a1
Update check_pr_files.py
dhruvmanila b922293
Update check_pr_files.py
dhruvmanila a38bdb7
Add random comment
dhruvmanila 45b1552
Remove random comment
dhruvmanila 591fafb
Update test.yml
dhruvmanila 59a9763
Update check_run.py
dhruvmanila 62baa23
Update check_run.py
dhruvmanila aceac4a
Update check_run.py
dhruvmanila 3a9aada
Update check_run.py
dhruvmanila 4969982
Update check_run.py
dhruvmanila 23aa1f3
Update check_pr_files.py
dhruvmanila dcf258e
Update check_pr_files.py
dhruvmanila 9e930ac
Update check_pr_files.py
dhruvmanila d52ab20
Update check_pr_files.py
dhruvmanila fd3ff99
Update check_run.py
dhruvmanila efcc759
Merge branch 'master' into testing_bot
dhruvmanila 32808d0
Update check_run.py
dhruvmanila bcc2289
Update check_pr_files.py
dhruvmanila 2490744
Update check_pr_files.py
dhruvmanila 2f406bd
Update check_pr_files.py
dhruvmanila 0391330
Update check_pr_files.py
dhruvmanila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,26 @@ | ||
| def test1(a): | ||
| def test1(abc) -> bool: | ||
dhruvmanila marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| A test function | ||
| """ | ||
| return False | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||
dhruvmanila marked this conversation as resolved.
Show resolved
Hide resolved
dhruvmanila marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| >>> test3(1, 1, 1) | ||
| """ | ||
| return None | ||
|
|
||
|
|
||
| class TClass: | ||
| def __init__(self, test: str) -> None: | ||
| def __init__(self, test: str): | ||
dhruvmanila marked this conversation as resolved.
Show resolved
Hide resolved
dhruvmanila marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| self.test = test | ||
|
|
||
| def add(self, a: int, b: int) -> int: | ||
| def add(self, a: int, bdfgsd: int) -> int: | ||
dhruvmanila marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| Add two numbers | ||
| >>> add(1, 1) | ||
| 2 | ||
| """ | ||
| return a + b | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.