Skip to content

Commit f2dcb06

Browse files
committed
Rename create_comment()
1 parent ac3d409 commit f2dcb06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, status_map, resolution_map, **kwargs):
3939
self.status_map = status_map
4040
self.resolution_map = resolution_map
4141

42-
def on_create_issue(
42+
def on_bug_creation(
4343
self,
4444
log_context: ActionLogContext,
4545
bug: BugzillaBug,
@@ -68,7 +68,7 @@ def on_create_issue(
6868
jira_status = self.status_map.get(bz_status)
6969
update_issue_status(log_context, issue_key, jira_status)
7070

71-
def on_update_issue(
71+
def on_bug_update(
7272
self,
7373
log_context: ActionLogContext,
7474
bug: BugzillaBug,

0 commit comments

Comments
 (0)