-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/v0.5.0
- Loading branch information
Showing
93 changed files
with
2,753 additions
and
665 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Main Workflow | |
|
||
on: | ||
pull_request: {} | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- '*' | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,47 @@ | ||
# Slack Guides | ||
|
||
Guides for setting up the [Slack](../../services/slack.md) service | ||
|
||
## Getting a token | ||
|
||
To enable all features, either the Legacy Webhook- (deprecated and might stop working) or the bot API tokens needs to | ||
be used. Only use the non-legacy Webhook if you don't need to customize the bot name or icon. | ||
|
||
### Bot API (preferred) | ||
|
||
1. Create a new App for your bot using the [Basic app setup guide](https://api.slack.com/authentication/basics) | ||
2. Install the App into your workspace ([slack docs](https://api.slack.com/authentication/basics#installing)). | ||
3. From [Apps](https://api.slack.com/apps), select your new App and go to **Oauth & Permissions** | ||
<figure><img alt="Slack app management menu screenshot" src="app-api-oauth-menu.png" height="248" /></figure> | ||
4. Copy the Bot User OAuth Token | ||
<figure><img alt="Copy OAuth token screenshot" src="app-api-copy-oauth-token.png" height="209" /></figure> | ||
|
||
!!! example | ||
Given the API token | ||
<pre><code><b>xoxb</b>-<b>123456789012</b>-<b>1234567890123</b>-<b>4mt0t4l1YL3g1T5L4cK70k3N</b></code></pre> | ||
and the channel ID `C001CH4NN3L` (obtained by using the [guide below](#getting_the_channel_id)), the Shoutrrr URL | ||
should look like this: | ||
<pre><code>slack://<b>xoxb</b>:<b>123456789012</b>-<b>1234567890123</b>-<b>4mt0t4l1YL3g1T5L4cK70k3N</b>@<b>C001CH4NN3L</b></code></pre> | ||
|
||
### Webhook tokens | ||
|
||
Get a Webhook URL using the legacy [WebHooks Integration](https://slack.com/apps/new/A0F7XDUAZ-incoming-webhooks), | ||
or by using the [Getting started with Incoming Webhooks](https://api.slack.com/messaging/webhooks#getting_started) guide and | ||
replace the initial `https://hooks.slack.com/services/` part of the webhook URL with `slack://hook:` to get your Shoutrrr URL. | ||
|
||
!!! info "Slack Webhook URL" | ||
<code>https://hooks.slack.com/services/<b>T00000000</b>/<b>B00000000</b>/<b>XXXXXXXXXXXXXXXXXXXXXXXX</b></code> | ||
|
||
!!! info "Shoutrrr URL" | ||
<code>slack://hook:<b>T00000000</b>-<b>B00000000</b>-<b>XXXXXXXXXXXXXXXXXXXXXXXX</b>@webhook</code> | ||
|
||
## Getting the Channel ID | ||
|
||
!!! note "" | ||
Only needed for API token. Use `webhook` as the channel for webhook tokens. | ||
|
||
1. In the channel you wish to post to, open **Channel Details** by clicking on the channel title. | ||
<figure><img alt="Opening channel details screenshot" src="app-api-select-channel.png" height="270" /></figure> | ||
|
||
2. Copy the Channel ID from the bottom of the popup and append it to your Shoutrrr URL | ||
<figure><img alt="Copy channel ID screenshot" src="app-api-channel-details-id.png" height="99" /></figure> |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
# Shoutrrr | ||
|
||
<div align="center"> | ||
<img src="https://raw.githubusercontent.com/containrrr/shoutrrr/master/docs/shoutrrr-logotype.png" width="450" /> | ||
<img src="https://raw.githubusercontent.com/containrrr/shoutrrr/main/docs/shoutrrr-logotype.png" height="450" width="450" /> | ||
</div> | ||
|
||
<p align="center"> | ||
Notification library for gophers and their furry friends.<br /> | ||
Heavily inspired by <a href="https://github.com/caronc/apprise">caronc/apprise</a>. | ||
</p> | ||
|
||
<p align="center"> | ||
<p align="center" class="badges"> | ||
<a target="_blank" rel="noopener noreferrer" href="https://github.com/containrrr/shoutrrr/workflows/Main%20Workflow/badge.svg"> | ||
<img src="https://github.com/containrrr/shoutrrr/workflows/Main%20Workflow/badge.svg" alt="github actions workflow status" style="max-width:100%;"> | ||
<img src="https://github.com/containrrr/shoutrrr/workflows/Main%20Workflow/badge.svg" alt="github actions workflow status"> | ||
</a> | ||
<a href="https://codecov.io/gh/containrrr/shoutrrr" rel="nofollow"> | ||
<img alt="codecov" src="https://codecov.io/gh/containrrr/shoutrrr/branch/master/graph/badge.svg" style="max-width:100%;"> | ||
<img alt="codecov" src="https://codecov.io/gh/containrrr/shoutrrr/branch/main/graph/badge.svg"> | ||
</a> | ||
<a href="https://www.codacy.com/gh/containrrr/shoutrrr/dashboard?utm_source=github.com&utm_medium=referral&utm_content=containrrr/shoutrrr&utm_campaign=Badge_Grade" rel="nofollow"> | ||
<img alt="Codacy Badge" src="https://app.codacy.com/project/badge/Grade/47eed72de79448e2a6e297d770355544" style="max-width:100%;"> | ||
<img alt="Codacy Badge" src="https://app.codacy.com/project/badge/Grade/47eed72de79448e2a6e297d770355544"> | ||
</a> | ||
<a href="https://goreportcard.com/badge/github.com/containrrr/shoutrrr" rel="nofollow"> | ||
<img alt="report card" src="https://goreportcard.com/badge/github.com/containrrr/shoutrrr" style="max-width:100%;"> | ||
<img alt="report card" src="https://goreportcard.com/badge/github.com/containrrr/shoutrrr"> | ||
</a> | ||
<a href="https://pkg.go.dev/github.com/containrrr/shoutrrr" rel="nofollow"> | ||
<img alt="go.dev reference" src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square" style="max-width:100%;"> | ||
<img alt="go.dev reference" src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square"> | ||
</a> | ||
<a href="https://github.com/containrrr/shoutrrr"> | ||
<img alt="github code size in bytes" src="https://img.shields.io/github/languages/code-size/containrrr/shoutrrr.svg?style=flat-square" style="max-width:100%;"> | ||
<img alt="github code size in bytes" src="https://img.shields.io/github/languages/code-size/containrrr/shoutrrr.svg?style=flat-square"> | ||
</a> | ||
<a href="https://github.com/containrrr/shoutrrr/blob/master/LICENSE"> | ||
<img alt="license" src="https://img.shields.io/github/license/containrrr/shoutrrr.svg?style=flat-square" style="max-width:100%;"> | ||
<a href="https://github.com/containrrr/shoutrrr/blob/main/LICENSE"> | ||
<img alt="license" src="https://img.shields.io/github/license/containrrr/shoutrrr.svg?style=flat-square"> | ||
</a> | ||
</p> | ||
|
||
|
||
|
||
To make it easy and streamlined to consume shoutrrr regardless of the notification service you want to use, | ||
we've implemented a notification service url schema. To send notifications, instantiate the `ShoutrrrClient` using one of | ||
the service urls from the [overview](/shoutrrr/services/overview). | ||
the service urls from the [overview](services/overview.md). |
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,5 @@ | ||
# Generic | ||
|
||
## URL Format | ||
|
||
--8<-- "docs/services/generic/config.md" |
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 @@ | ||
# Google Chat | ||
|
||
## URL Format | ||
|
||
Your Google Chat Incoming Webhook URL will look like this: | ||
|
||
!!! info "" | ||
https://chat.googleapis.com/v1/spaces/__`FOO`__/messages?key=__`bar`__&token=__`baz`__ | ||
|
||
The shoutrrr service URL should look like this: | ||
|
||
!!! info "" | ||
googlechat://chat.googleapis.com/v1/spaces/__`FOO`__/messages?key=__`bar`__&token=__`baz`__ | ||
|
||
In other words the incoming webhook URL with `https` replaced by `googlechat`. | ||
|
||
Google Chat was previously known as Hangouts Chat. Using `hangouts` in | ||
the service URL instead `googlechat` is still supported, although | ||
deprecated. | ||
|
||
## Creating an incoming webhook in Google Chat | ||
|
||
1. Open the room you would like to add Shoutrrr to and open the chat | ||
room menu. | ||
![Screenshot 1](googlechat/hangouts-1.png) | ||
|
||
2. Then click on *Configure webhooks*. | ||
![Screenshot 2](googlechat/hangouts-2.png) | ||
|
||
3. Name the webhook and save. | ||
![Screenshot 3](googlechat/hangouts-3.png) | ||
|
||
4. Copy the URL. | ||
![Screenshot 4](googlechat/hangouts-4.png) | ||
|
||
|
||
5. Format the service URL by replacing `https` with `googlechat`. |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -1,33 +1,7 @@ | ||
# Hangouts Chat | ||
|
||
## URL Format | ||
Google Chat was previously known as *Hangouts Chat*. See [Google | ||
Chat](googlechat.md). | ||
|
||
Your Hangouts Chat Incoming Webhook URL will look like this: | ||
|
||
!!! info "" | ||
https://chat.googleapis.com/v1/spaces/__`FOO`__/messages?key=__`bar`__&token=__`baz`__ | ||
|
||
The shoutrrr service URL should look like this: | ||
|
||
!!! info "" | ||
hangouts://chat.googleapis.com/v1/spaces/__`FOO`__/messages?key=__`bar`__&token=__`baz`__ | ||
|
||
In other words the incoming webhook URL with `https` replaced by `hangouts`. | ||
|
||
## Creating an incoming webhook in Hangouts Chat | ||
|
||
1. Open the room you would like to add Shoutrrr to and open the chat | ||
room menu. | ||
![Screenshot 1](hangouts/hangouts-1.png) | ||
|
||
2. Then click on *Configure webhooks*. | ||
![Screenshot 2](hangouts/hangouts-2.png) | ||
|
||
3. Name the webhook and save. | ||
![Screenshot 3](hangouts/hangouts-3.png) | ||
|
||
4. Copy the URL. | ||
![Screenshot 4](hangouts/hangouts-4.png) | ||
|
||
|
||
5. Format the service URL by replacing `https` with `hangouts`. | ||
Using `hangouts` in the service URL instead `googlechat` is still | ||
supported, although deprecated. |
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,6 @@ | ||
# Logger | ||
|
||
No configuration options are available for this service. | ||
|
||
It simply emits notifications to the Shoutrrr log which is | ||
configured by the consumer. |
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.