Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreyd committed Apr 24, 2023
1 parent 6d52fb7 commit 3565f9e
Show file tree
Hide file tree
Showing 6 changed files with 399 additions and 107 deletions.
9 changes: 2 additions & 7 deletions elliottlib/bzutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,8 @@ def get_bugs(self, bugids: List[str], permissive=False, verbose=False, **kwargs)
logger.warn(msg)
return bugs

def get_bug_remote_links(self, bug: JIRABug):
remote_links = self._client.remote_links(bug)
link_dict = {}
for link in remote_links:
if link.__contains__('relationship'):
link_dict[link.relationship] = link.object.url
return link_dict
def get_bug_remote_links(self, bug_id: str):
return self._client.remote_links(bug_id)

def create_bug(self, bug_title: str, bug_description: str, target_status: str, keywords: List, noop=False) -> \
JIRABug:
Expand Down
4 changes: 2 additions & 2 deletions elliottlib/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
from elliottlib.cli.find_bugs_blocker_cli import find_bugs_blocker_cli
from elliottlib.cli.remove_bugs_cli import remove_bugs_cli
from elliottlib.cli.repair_bugs_cli import repair_bugs_cli
from elliottlib.cli.find_bugs_invalid import find_bugs_invalid_cli
from elliottlib.cli.find_bugs_fixed import find_bugs_fixed_cli

# 3rd party
import click
Expand Down Expand Up @@ -478,7 +478,7 @@ def poll_signed(runtime, minutes, advisory, default_advisory_type, noop):
cli.add_command(find_bugs_blocker_cli)
cli.add_command(remove_bugs_cli)
cli.add_command(repair_bugs_cli)
cli.add_command(find_bugs_invalid_cli)
cli.add_command(find_bugs_fixed_cli)


# -----------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 3565f9e

Please sign in to comment.