Skip to content

Commit cc554f2

Browse files
authored
Update script.py
1 parent 929599a commit cc554f2

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

script.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,15 @@
2121
# Create a GitHub instance using the access token
2222
g = Github(ACCESS_TOKEN)
2323

24-
# Replace with your repository name and owner
25-
26-
27-
28-
state = "open"
29-
3024
# Get the repository object
3125
repo = g.get_repo(f"{repository_owner}/{repository_name}")
32-
print(repo)
3326

3427
# Get all the issues in the repository with the "auto-release" label
28+
state = "open"
3529
issues = repo.get_issues(labels=labels, state=state, sort='updated')
3630

31+
print(repo)
32+
3733
# Loop through each issue and get its comments
3834
for issue in issues:
3935
print(f"Issue: {issue.title}")

0 commit comments

Comments
 (0)