Skip to content

Commit

Permalink
Merge pull request #114 from s2t2/main
Browse files Browse the repository at this point in the history
Simplify process and instructions
  • Loading branch information
gwutrexl authored Apr 19, 2024
2 parents 9760ba5 + 9f96662 commit 3647b63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/AutoInviteToOrgByNewIssue.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@
# print(data)

COMMENT = data["issue"]["title"]
USERNAME = data["issue"]["user"]["login"]
USERNAME = data["issue"]["user"]["login"] # assumes this value is always present

# print("COMMENT:")
# print(COMMENT)
# print("USERNAME:")
# print(USERNAME)

if "RaiseHigh @" not in COMMENT and "RaiseHigh me" not in COMMENT:
if "RAISEHIGH" not in COMMENT.upper():
sys.exit()
else:

if "RaiseHigh @" in COMMENT:
USERNAME = COMMENT.replace("RaiseHigh @", "")

print('Send invite for the @'+USERNAME)

# TODO: check user already joined or no....
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To use this service, you must be invited to the 'GWUniversity' github organizati
![Repository Issues](RepoTitle.png)
- Create a New Issue
![New Issue Dialog](NewIssueDialog.png)
- The ISSUE MUST BE Titled: RaiseHigh @githubusername OR RaiseHigh me
- The ISSUE TITLE MUST INCLUDE THE PHRASE "RaiseHigh"
- Submit the issue
![Submit Issue](SubmitIssue.png)

Expand Down

0 comments on commit 3647b63

Please sign in to comment.