Skip to content

Commit

Permalink
Add successful message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Cao committed Aug 28, 2023
1 parent cb913f5 commit 64aff10
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion liferay/apps/create_pr_and_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_pr_to_team(github_connection, jira_ticket_number, local_branch):
return team_repo.create_pull(title=title, head=head, base=base, body=body, maintainer_can_modify=True)

def forward_pull_request(pull_request):
print("Run ci:forward")
print("Run ci:forward...")

time.sleep(3)

Expand All @@ -43,4 +43,6 @@ def main(local_branch, jira_ticket_number):

forward_pull_request(pr)

print("Successful")

print(pr.html_url)
2 changes: 2 additions & 0 deletions liferay/apps/create_test_fix_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,6 @@ def main(assigned, case_result_id, label, project_key):

add_label(issue, label)

print("Successful")

print(JIRA_INSTANCE + "/browse/" + str(issue))
2 changes: 2 additions & 0 deletions liferay/apps/forward_failure_pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ def main(pull_request_number):

add_comments_in_failure_pr(new_pr.html_url, failure_pr)

print("Successful")

print(new_pr.html_url)
2 changes: 2 additions & 0 deletions liferay/apps/write_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ def main(commit_id, description, env, ticket_number, type):

comment_id = jira_connection.add_comment(ticket_number, comment_template)

print("Successful")

print(JIRA_INSTANCE + "/browse/" + ticket_number + "?focusedCommentId=" + str(comment_id))
2 changes: 2 additions & 0 deletions liferay/apps/write_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ def main(ticket_number, type):

issue.update(description = description_template)

print("Successful")

print(JIRA_INSTANCE + "/browse/" + ticket_number)

0 comments on commit 64aff10

Please sign in to comment.