-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* beta * stealth * Button to job * rhaaa * Allow multiple channels * fix * Fix slack actions * doc * Fix url link * again * PR info * branch * unfurl * find PR * PR info * prinfo * dbg * fix * fix * I'm walkng on sunshine * MegaLinter * Walking on sunshiiiiiine wohoooo * Author login * View PR * changelog * Reformat slack message + rename folder :) * dx * Factorize repoOwner & repoName * [Mega-Linter] Apply linters fixes :) * Slack notifs for gitlab * Send only on deployment success * cspell * [Mega-Linter] Apply linters fixes --------- Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
- Loading branch information
Showing
19 changed files
with
725 additions
and
221 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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,37 @@ | ||
--- | ||
title: Configure Integrations between sfdx-hardis and Slack | ||
description: Send notifications on slack channels during CI/CD operations | ||
--- | ||
<!-- markdownlint-disable MD013 --> | ||
|
||
## Slack Integration | ||
|
||
You can receive notifications on slack channels when CI/CD events are happening: | ||
- Deployment from a major branch to a major Salesforce org (ex: integration git branch to Integration Org) | ||
- More soon (ask for them !) | ||
|
||
## Configure Slack Application | ||
|
||
### Create slack app | ||
|
||
> Process only if a sfdx-hardis bot has not yet been configured on your slack. Otherwise, just request the slack token value to your slack administrator | ||
Create a slack app here -> <https://api.slack.com/apps> | ||
|
||
- Name it `sfdx-hardis bot`` or _any nickname you like_, like your guinea pig name ! | ||
- Go to permissions and add the following scopes | ||
- chat-write | ||
- chat-write.customize | ||
- chat-write.public | ||
- Create auth token and copy its values | ||
|
||
### Configure sfdx-hardis for slack | ||
|
||
- Create a secret value named **SLACK_TOKEN** with auth token value in your Git provider configuration | ||
- Create a slack channel that will receive all notifications (ex: _#notifs-sfdx-hardis_) | ||
- Open the channel info, copy its ID and create a secret value named **SLACK_CHANNEL_ID** in your git provider configuration | ||
- Additionally, you can create branch-scoped channels by creating new channels and create appropriate variables | ||
- Example: Channel _#notifs-sfdx-hardis-integration_ and variable **SLACK_CHANNEL_ID_iNTEGRATION** | ||
- Make sure all those variables are visible to your CI/CD pipelines | ||
|
||
That's all, you're all set ! |
This file contains 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 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 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 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 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
Oops, something went wrong.