-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 1.11 KB
/
new-issue-automation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This workflow runs when an issue is created.
# It displays a welcome message and tags the project managers
name: Notify on newly created repo issues
on:
issues:
types: [opened]
jobs:
notifications:
runs-on: ubuntu-latest
steps:
- name: Tag project managers
env:
URL: ${{ github.event.issue.comments_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl \
-X POST \
$URL \
-H "Content-Type: application/json" \
-H "Authorization: token $GITHUB_TOKEN" \
--data '{ "body": "Thanks for your submission, @openedx/openedx-product-managers will review shortly." }'
# For future Slack alerting
# - name: Alert in Slack
# id: slack
# uses: slackapi/[email protected]
# with:
# channel-id: C02MB2TBKE3
# slack-message: "Incoming GitHub request: ${{ github.event.issue.title }}\nAuthor: ${{ github.event.issue.user.login }}\nURL: ${{ github.event.issue.html_url }}"
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }}