Skip to content

Commit

Permalink
chore(docs): Improve slack documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fallion committed Feb 28, 2020
1 parent 828da3e commit d76dad7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: go run main.go publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

# Temp blocker until issue in GH Action fixed
# - name: goreleaser
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Expected output is [HERE](./expected-output.md)
1. [Setup](#setup)
- [Github](#github)
- [Gitlab](#gitlab)
- [Slack](#slack)
2. [Usage](#usage)

## Setup
Expand All @@ -31,7 +32,6 @@ Expected output is [HERE](./expected-output.md)
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| GITHUB_TOKEN | token (provided in Github Action or [HERE](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)) | true |
| GITHUB_REPOSITORY | commitsar-app/commitsar | true |
| SLACK_WEBHOOK | https://hooks.slack.com/services/something/something/something | false |

In Github actions GITHUB_REPOSITORY is provided in the correct format. Does not need to be explicitly added.

Expand All @@ -49,6 +49,13 @@ In Gitlab CI all the values are provided except for `GITLAB_TOKEN`. Documentatio
| CI_API_V4_URL | https://gitlab.com/api/v4 | true |
| CI_COMMIT_TAG | v0.0.4 | true |
| CI_PROJECT_ID | 1234 | true |

### Slack

Slack integration posts release notes into Slack using the `Incoming webhook` integration. [Slack Documentation](https://api.slack.com/messaging/webhooks)

| Name | Example value | Required |
| ------------- | -------------------------------------------------------------- | -------- |
| SLACK_WEBHOOK | https://hooks.slack.com/services/something/something/something | false |

## Usage
Expand Down

0 comments on commit d76dad7

Please sign in to comment.