Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include CircleCI workflow name in Slack message #78

Open
devatherock opened this issue Jun 7, 2024 · 0 comments
Open

Include CircleCI workflow name in Slack message #78

devatherock opened this issue Jun 7, 2024 · 0 comments

Comments

@devatherock
Copy link
Owner

Multiple slack notifications might be triggered from different workflows within the same pipeline. Including the workflow name in the message would help differentiate them. Below is what the messages from different workflows look like now:

Screenshot from 2024-06-07 02-19-17

The workflow name is present in the name field of the CircleCI workflow API response. Sample response below:

{
  "pipeline_id" : "a4a66555-3b52-401e-a7ed-e7a2f4cee910",
  "id" : "cd47d758-b3c4-4c66-8528-2e2ea21aac1d",
  "name" : "release_plugin",
  "project_slug" : "gh/devatherock/simple-slack",
  "status" : "success",
  "started_by" : "8818d349-2523-4da8-a0fa-6cda8f303973",
  "pipeline_number" : 234,
  "created_at" : "2024-06-07T07:00:32Z",
  "stopped_at" : "2024-06-07T07:00:59Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant