Generates an aggregate stability report of multiple Bugsnag projects and posts it to Slack.
In the Run / Debug configuration, specify under Configuration > Program arguments:
--bugsnag-token
- the Bugsnag API token--slack-token
- the Slack API token--slack-channel-id
- the Slack channel to post to
- My Account > Personal auth tokens
- Create a Slack app
- OAuth & Permissions > Scopes >
chat:write
- Install app into workspace, add to channel
- OAuth & Permissions > Bot User OAuth Token
Read more on Slack token types.
- Open channel details
- Find Channel ID in the bottom
To build and run the program using Gradle, use run
:
./gradlew run --args="--bugsnag-token=TOKEN --slack-token=TOKEN --slack-channel-id=CHANNEL_ID"