-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated modules (go get -u && go mod tidy) - Updated GitHub Actions: Added Lint action - Updated build to Go 1.14 - Fix linter error by having template error go to stdout - Change return from sendMessage to capture and embellish any error - Output log message that message was sent to Slack - Fix TestSendMessage to include template - README updates Signed-off-by: Todd Campbell <todd@sensu.io>
- Loading branch information
Todd Campbell
committed
Feb 4, 2021
1 parent
af64ac1
commit a1181d9
Showing
10 changed files
with
252 additions
and
157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Go Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Lint | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Run golangci-lint | ||
uses: actions-contrib/golangci-lint@v1 |
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
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,10 +1,34 @@ | ||
module github.com/sensu/sensu-slack-handler | ||
|
||
go 1.13 | ||
go 1.14 | ||
|
||
require ( | ||
github.com/bluele/slack v0.0.0-20180528010058-b4b4d354a079 | ||
github.com/sensu-community/sensu-plugin-sdk v0.8.0 | ||
github.com/sensu/sensu-go/api/core/v2 v2.2.3 | ||
github.com/coreos/etcd v3.3.25+incompatible // indirect | ||
github.com/fsnotify/fsnotify v1.4.9 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/protobuf v1.4.3 // indirect | ||
github.com/google/uuid v1.2.0 // indirect | ||
github.com/json-iterator/go v1.1.10 // indirect | ||
github.com/magiconair/properties v1.8.4 // indirect | ||
github.com/mitchellh/mapstructure v1.4.1 // indirect | ||
github.com/pelletier/go-toml v1.8.1 // indirect | ||
github.com/robertkrimen/otto v0.0.0-20200922221731-ef014fd054ac // indirect | ||
github.com/sensu-community/sensu-plugin-sdk v0.11.0 | ||
github.com/sensu/sensu-go/api/core/v2 v2.6.0 | ||
github.com/sensu/sensu-go/types v0.5.0 // indirect | ||
github.com/sirupsen/logrus v1.7.0 // indirect | ||
github.com/spf13/afero v1.5.1 // indirect | ||
github.com/spf13/cast v1.3.1 // indirect | ||
github.com/spf13/cobra v1.1.1 // indirect | ||
github.com/spf13/jwalterweatherman v1.1.0 // indirect | ||
github.com/spf13/viper v1.7.1 // indirect | ||
github.com/stretchr/testify v1.6.0 | ||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect | ||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect | ||
golang.org/x/text v0.3.5 // indirect | ||
google.golang.org/genproto v0.0.0-20210204154452-deb828366460 // indirect | ||
google.golang.org/grpc v1.35.0 // indirect | ||
gopkg.in/ini.v1 v1.62.0 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) |
Oops, something went wrong.