Skip to content

Commit 5fb2110

Browse files
committed
Rename create_comment()
1 parent ac3d409 commit 5fb2110

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jbi/actions/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __call__( # pylint: disable=inconsistent-return-statements
7373
if event.target == "comment":
7474
log_context = log_context.update(operation=Operation.COMMENT)
7575
if linked_issue_key:
76-
return self.comment_create_or_noop(
76+
return self.create_comment(
7777
log_context=log_context,
7878
bug=bug,
7979
event=event,
@@ -108,7 +108,7 @@ def __call__( # pylint: disable=inconsistent-return-statements
108108
)
109109
return False, {}
110110

111-
def comment_create_or_noop(
111+
def create_comment(
112112
self,
113113
log_context: ActionLogContext,
114114
bug: BugzillaBug,

jbi/actions/default_with_assignee_and_status.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def on_create_issue(
4646
event: BugzillaWebhookEvent,
4747
issue_key: str,
4848
):
49+
"""Hook to modify the recently created Jira issue"""
4950
log_context = log_context.update(
5051
extra={
5152
**log_context.extra,
@@ -75,6 +76,7 @@ def on_update_issue(
7576
event: BugzillaWebhookEvent,
7677
issue_key: str,
7778
):
79+
"""Hook to modify the recently modified Jira issue"""
7880
# We don't do the upper class updates (add comments for status and assignee).
7981
log_context = log_context.update(
8082
extra={

0 commit comments

Comments
 (0)