Skip to content

Commit

Permalink
Merge branch 'master' of github.com:joshspicer/uittoolsbot-feedbacktr…
Browse files Browse the repository at this point in the history
…iage
  • Loading branch information
joshspicer committed Jul 18, 2020
2 parents 8167227 + 04d7702 commit 116d185
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# triage-slackbot-azure
A simple collection of azure functions to send a slackbot messages to our dev team

## Usage

This repo structure was generated by VS Code.
The simplest way to upload these functions will be through the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) extension.

These functions were developed with Python 3.7.

### Functions

#### DoDailyPRReminder
- Sends a Slack message to anybody on the team with "review requested" on our repos (babyshark and designer).
- Is triggered daily via the CRON string `0 50 13 * * *"` (Azure is in UTC).

#### DoFeedbackTriage
- Every Monday sends a message with who is on Triage duty, and the two on deck.
- Is triggered by a message on the queue (so that we can have two Cron timers).

#### TriageTriggerET & TriageTriggerGMT
- Two timer trigger functions that simply add a message to a shared queue, triggering `DoFeedbackTriage`


### Environment Variables

These variables must be set on Azure, or via a `local.settings.json` while testing locally.

* `SLACK_HOOK` : The full URI for given Slack channel to send webhook to
* `GITHUB_TOKEN` : A Github token with visibility into any private repos necessary
* `FEEDBACK_URL` : The full URI for our feedback dashboard

* `uitoolsbot_STOARGE` : Connection string for the shared Queue between functions

* `FUNCTIONS_WORKER_RUNTIME` : `python`

0 comments on commit 116d185

Please sign in to comment.