diff --git a/lib/newsman.rb b/lib/newsman.rb index 8e0ab96..7253b8c 100755 --- a/lib/newsman.rb +++ b/lib/newsman.rb @@ -78,6 +78,7 @@ def options.require_option(key, message) one_week_ago = date_one_week_ago(Date.today) # Display pull request query = "is:pr author:#{github_username} created:>=#{one_week_ago} #{github_repositories}" + issues_query = "is:issue is:open author:#{github_username} author:0pdd created:>=#{one_week_ago} #{github_repositories}" puts "Searching pull requests for #{github_username}." puts "Newsman uses the following request to GitHub to gather the required information about user activity: '#{query}'" prs = []