File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import os
2+ import re
13from github import Github
24from dotenv import load_dotenv
3- import os
45
56load_dotenv ()
67
1617labels = ["test-label" ]
1718state = "open"
1819
19-
2020# Get the repository object
2121repo = g .get_repo (f"{ repository_owner } /{ repository_name } " )
2222print (repo )
2323
2424# Get all the issues in the repository with the "auto-release" label
25- issues = repo .get_issues (labels = labels , state = state )
25+ issues = repo .get_issues (labels = labels , state = state , sort = 'updated' )
2626
2727# Loop through each issue and get its comments
2828for issue in issues :
2929 print (f"Issue: { issue .title } " )
30- for comment in issue .get_comments ():
30+ print ("body: <<<" , issue .body , ">>>" )
31+
32+ comments = list (issue .get_comments ()).reverse ()
33+ for comment in comments :
3134 print (f"\t Comment: { comment .body } " )
35+
36+ print ("\n \n " )
You can’t perform that action at this time.
0 commit comments