Skip to content
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

Pull Request Reviewer Tasks #2534

Closed
wants to merge 1 commit into from
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
17 changes: 17 additions & 0 deletions .github/reviewer-tasks/default_task.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import sys
import json

def main():
event_path = sys.argv[1]
with open(event_path, 'r') as f:
event_data = json.load(f)

# Now event_data is a dictionary containing all the GitHub event details
reviewer = event_data["review"]["reviewers"][0]["login"]

print(f"Greetings {reviewer}! This is the default reviewer task, \
but you can implement your very own custom reviewer task by \
adding a .github/reviewer-tasks/{reviewer}_task.py python script .")

if __name__ == "__main__":
main()
Loading
Loading