-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (25 loc) · 722 Bytes
/
main.py
File metadata and controls
29 lines (25 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
from dotenv import load_dotenv
from GITHUB import GITHUB
import random
load_dotenv()
range = os.getenv("RANGE")
github = GITHUB(
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN"),
USERNAME = os.getenv("USERNAME"),
REPO = os.getenv("REPO")
)
def main():
# issueData = github.createIssue()
# commentData = github.commentIssue(issueData['number'])
# github.delCommentIssue(commentData['id'])
# github.closeIssue(issueData['number'])
# res = github.updateFile('README.md')
_range = list(map(int, range.split('-')))
random_number = random.randint(*_range)
i = 0
while i < random_number:
i+=1
github.updateFile('README.md')
if __name__ == '__main__':
main()