Class: Gitdig::Commands::Pr::Team
- Inherits:
-
Gitdig::Command
- Object
- Gitdig::Command
- Gitdig::Commands::Pr::Team
- Defined in:
- lib/gitdig/commands/pr/team.rb
Constant Summary collapse
- REPO_REGEX =
%r{[^/]+/[^/]+$}.freeze
Constants inherited from Gitdig::Command
Instance Method Summary collapse
- #execute(input: $stdin, output: $stdout) ⇒ Object
-
#initialize(team_id, options) ⇒ Team
constructor
A new instance of Team.
Methods inherited from Gitdig::Command
#command, #configs, #cursor, #editor, #exec_exist?, #generator, #github_client, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(team_id, options) ⇒ Team
Returns a new instance of Team.
11 12 13 14 |
# File 'lib/gitdig/commands/pr/team.rb', line 11 def initialize(team_id, ) @team_id = team_id @options = end |
Instance Method Details
#execute(input: $stdin, output: $stdout) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/gitdig/commands/pr/team.rb', line 16 def execute(input: $stdin, output: $stdout) issues = github_client.search_issues( search_str, sort: 'created', order: 'asc', per_page: 100 ) issues.items.each do |i| output.puts pr_output(i) end end |