-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add docs for Slack integration #2815
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
877dba8
add docs for Slack integration
b11b3d3
Bullet point instructions for Slack integration.
jennifer-shehane ebe6dc2
Add image of what Slack notification looks like + update headers
jennifer-shehane 9e5cb0f
Update themes/cypress/languages/es.yml
jennifer-shehane 996bd27
Update source/guides/dashboard/slack-integration.md
jennifer-shehane 7acf8d4
Update source/guides/dashboard/slack-integration.md
jennifer-shehane c673c05
Update source/guides/dashboard/slack-integration.md
jennifer-shehane 953bdf7
Update source/guides/dashboard/slack-integration.md
jennifer-shehane e4d0878
Add links to Slack integration to Intro and Projects pages.
jennifer-shehane 3c2d463
Merge branch 'develop' into add-slack-integration
jennifer-shehane 140d0cb
Merge branch 'develop' into add-slack-integration
jennifer-shehane f4f0a75
Replace 'GitHub' mention with 'Slack'
jennifer-shehane 58bab30
update main image for slack integration
jennifer-shehane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
--- | ||
title: Slack Integration | ||
--- | ||
|
||
Slack Integration allows you to see your Cypress test results directly in your teams' Slack channels. | ||
|
||
{% imgTag /img/dashboard/cypress-slack-integration-channel-feed.png "Cypress App notification feed in Slack channel" %} | ||
|
||
# Install the Cypress Slack app | ||
|
||
{% note warning Ownership Requirements %} | ||
In order to install the Slack Integration, you must be an admin or owner of both your Cypress Dashboard organization and your Slack workspace. | ||
{% endnote %} | ||
|
||
**To install the Slack Integration:** | ||
|
||
1. Go to the Dashboard {% url "Organizations page" https://dashboard.cypress.io/organizations %} or open the organization switcher. | ||
1. Select the organization you wish to integrate with Slack. | ||
{% imgTag /img/dashboard/select-cypress-organization.png "Select an organization" width-600 %} | ||
1. Visit the selected organization's **Integrations** page via the side navigation. | ||
{% imgTag /img/dashboard/navigate-to-organization-integrations.png "Install Cypress Slack from Integrations" %} | ||
1. Click the **Install Slack Integration** button. | ||
1. You'll see a popup window that requests permission for Cypress to access the workspace and allows you to choose your Slack workspace and channel to associate with the installation. Once you've selected a channel and allowed access, the installation is complete! The Cypress Dashboard will post run results for all projects in your organization to the specified Slack channel. | ||
|
||
# Per-organization configuration | ||
|
||
## Add additional Slack channels | ||
|
||
You can have the Cypress Dashboard post run results to an additional channels. To add a channel: | ||
|
||
1. Navigate to the **Integrations** page for the organization with the installed Slack integration. | ||
1. Within the Slack integration, click **Configure**. | ||
1. Click **Add Slack Channel**. | ||
1. You'll see a popup window that allows you to choose the channel to associate with the organization. The Cypress Dashboard will post run results for all projects in your organization to the new Slack channel. | ||
|
||
## Set notification preferences | ||
|
||
By default, the Cypress Dashboard will post a Slack message to each configured channel only for failing runs. If you'd like to change these preferences: | ||
|
||
1. Navigate to the **Integrations** page for the organization with the installed Slack integration. | ||
1. Within the Slack integration, click **Configure**. | ||
1. Under **Notifications**, select your preference for each Slack channel: | ||
- **All runs**: will notify on all runs (including passed) | ||
- **Failed runs only**: will only notify on runs with a fail status. | ||
|
||
## Mute a channel | ||
|
||
If you want the Cypress Dashboard to temporarily stop posting Slack messages to a certain channel, you can **Mute** that channel. This allows you to easily pause and resume notifications for a specific channel without losing the configuration you’ve put in place. | ||
|
||
1. Navigate to the **Integrations** page for the organization with the installed Slack integration. | ||
1. Within the Slack integration, click **Configure**. | ||
1. Under **Actions**, select your **Mute** for each Slack channel you want muted. | ||
|
||
## Remove a Slack channel | ||
|
||
You can have the Cypress Dashboard stop posting notifications to a channel. You can remove all Slack channels if you’d prefer to disable global notifications altogether in favor of per-project notifications. | ||
|
||
1. Navigate to the **Integrations** page for the organization with the installed Slack integration. | ||
1. Within the Slack integration, click **Configure**. | ||
1. Under **Actions**, select your **Delete** for each Slack channel you want deleted. | ||
|
||
# Per-project configuration | ||
|
||
If your organization has multiple teams working on separate projects, you can tailor the Slack notifications of each project to match your teams' needs. | ||
|
||
## Add a new Slack channel | ||
|
||
You can have the Cypress Dashboard post run results for a specific project to an additional channel. | ||
|
||
1. Select your organization in the organization switcher. | ||
{% imgTag /img/dashboard/select-cypress-organization.png "Select an organization" width-600 %} | ||
1. Select the project you wish to integrate with Slack. | ||
{% imgTag /img/dashboard/select-cypress-project.png "Select a project" %} | ||
1. Go to the project's settings page. | ||
{% imgTag /img/dashboard/visit-project-settings.png "Visit project settings" %} | ||
1. Scroll down to the **Slack Integration** section. | ||
1. Click **Add Slack Channel**. | ||
1. You'll see a popup window that allows you to choose the channel to associate with the project. | ||
|
||
## Set notification preferences | ||
|
||
By default, the Cypress Dashboard will post a Slack message to each configured channel only for failing runs. You cannot override the notification preferences for the global organization channels. If you'd like to change these preferences: | ||
|
||
1. Navigate to the **Integrations** page for the project with the installed Slack integration. | ||
1. Scroll down to the **Slack Integration** section. | ||
1. Under **Notifications**, select your preference for each Slack channel: | ||
- **All runs**: will notify on all runs (including passed) | ||
- **Failed runs only**: will only notify on runs with a fail status. | ||
|
||
## Mute a channel | ||
|
||
If you want the Cypress Dashboard to temporarily stop posting Slack messages to a certain channel, you can **Mute** that channel. This allows you to easily pause and resume notifications for a specific channel without losing the configuration you’ve put in place. You can even mute the messages for the global organization channels! | ||
|
||
1. Navigate to the **Integrations** page for the project with the installed Slack integration. | ||
1. Scroll down to the **Slack Integration** section. | ||
1. Under **Actions**, select your **Mute** for each Slack channel you want muted. | ||
|
||
## Remove a channel | ||
|
||
You can have the Cypress Dashboard stop posting notifications to a channel. You cannot delete the global notification channels from a project. | ||
|
||
1. Navigate to the **Integrations** page for the project with the installed Slack integration. | ||
1. Scroll down to the **Slack Integration** section. | ||
1. Under **Actions**, select your **Delete** for each Slack channel you want deleted. | ||
|
||
# Remove the integration | ||
jennifer-shehane marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
You can completely remove the Slack Integration from your workspace. This will remove the @cypress bot from your workspace and will delete all of the Slack configurations you’ve set in the Cypress Dashboard. You cannot undo this, but you will be able to install the Slack Integration again in the future. | ||
|
||
1. Navigate to the **Integrations** page for the organization with the installed Slack Integration. | ||
1. Within the Slack Integration, click **Configure**. | ||
1. Click **Uninstall Slack Integration** to uninstall the Slack Integration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+88.9 KB
themes/cypress/source/img/dashboard/cypress-slack-integration-channel-feed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-305 KB
...ithub-integration/install-github-integration-with-cypress-from-org-settings.png
Binary file not shown.
Binary file added
BIN
+43.4 KB
themes/cypress/source/img/dashboard/navigate-to-organization-integrations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.