File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def get_random_open_issues(repository, number_to_return):
50
50
repo = gh .get_repo (repository )
51
51
# Get all open issues
52
52
open_issues = repo .get_issues (state = 'open' )
53
- open_issues_list = [issue for issue in open_issues ]
53
+ open_issues_list = [issue for issue in open_issues if "pull" not in issue . html_url ]
54
54
55
55
# Randomly select the specified number of issues
56
56
random_issues = random .sample (
@@ -108,6 +108,7 @@ def main():
108
108
sys .exit (1 )
109
109
110
110
repository = sys .argv [1 ]
111
+ num_issues = 5
111
112
if len (sys .argv ) == 3 :
112
113
try :
113
114
num_issues = int (sys .argv [2 ])
@@ -118,9 +119,6 @@ def main():
118
119
"*** ERROR: You did something weird when declaring the number of issues. Defaulting to 5.\n "
119
120
f"(For posterity, this is the error that was returned: { e } )\n "
120
121
)
121
- num_issues = 5
122
- else :
123
- num_issues = 5
124
122
125
123
print ("Spinning the Big Wheel of Misfortune...\n " )
126
124
print_big_wheel ()
You can’t perform that action at this time.
0 commit comments