Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Petr Šplíchal <psplicha@redhat.com>
  • Loading branch information
martinhoyer and psss authored Aug 21, 2024
1 parent 888754e commit e8bd09c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ quickly overwrite existing files with the right content.

.. _linking_tmt_objects:

Linking tmt objects
Linking Issues
------------------------------------------------------------------
If you create a Jira issue for a bug or a feature, you can link it
to the test or plan that covers it. This can be either done automatically
Expand Down
4 changes: 2 additions & 2 deletions tmt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ def plans_lint(
help='Finish phase content in yaml format.')
@option(
'--link', metavar='[RELATION:]TARGET', multiple=True,
help='Link to the relevant issues.')
help='Link created plan to the relevant issues.')
@verbosity_options
@force_dry_options
def plans_create(
Expand Down Expand Up @@ -1350,7 +1350,7 @@ def stories_show(
help=f'Story template ({_story_templates}).')
@option(
'--link', metavar='[RELATION:]TARGET', multiple=True,
help='Link to the relevant issues.')
help='Link created story to the relevant issues.')
@verbosity_options
@force_dry_options
def stories_create(
Expand Down
4 changes: 2 additions & 2 deletions tmt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7275,13 +7275,13 @@ def render_rst(text: str, logger: Logger) -> str:


def import_jira() -> None:
""" Import polarion Python Jira library """
""" Import Python Jira library """
try:
global JIRA
from jira import JIRA
except ImportError:
raise GeneralError(
"Install 'tmt+link-jira' to use the Jira linking")
"Install 'tmt+link-jira' to use the Jira linking.")


def jira_link(
Expand Down

0 comments on commit e8bd09c

Please sign in to comment.