Skip to content

Commit

Permalink
test17
Browse files Browse the repository at this point in the history
  • Loading branch information
akiioto committed Oct 18, 2024
1 parent e33997a commit db1871d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/cloud-run/slack-message-sender/slack-message-sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,12 @@ def get_slack_user_mapping():
return {}


# Cache the user mapping to avoid frequent API calls
slack_user_mapping = get_slack_user_mapping()


@app.route("/issue-labeled", methods=["POST"])
def issue_labeled() -> Response:
'''This function sends information about labeled issues in a Slack channel'''
# Cache the user mapping to avoid frequent API calls
slack_user_mapping = get_slack_user_mapping()
log_fields: Dict[str, Any] = prepare_log_fields()
log_fields["labels"]["io.kyma.app"] = "issue-labeled"
try:
Expand Down

0 comments on commit db1871d

Please sign in to comment.