1- name : Issue Opened
1+ # name: Issue Opened
22
3- on :
4- issues :
5- types : [opened, reopened]
3+ # on:
4+ # issues:
5+ # types: [opened, reopened]
66
7- env :
8- ISSUE_URL : ${{ github.event.issue.html_url }}
9- ISSUE_TITLE : ${{ github.event.issue.title }}
10- ISSUE_BODY : ${{ github.event.issue.body }}
11- jobs :
12- new_issue :
13- name : New Issue
14- runs-on : ubuntu-latest
15- steps :
16- - uses : actions/checkout@v2
17- - name : Send Issues to slack
18- run : |
19- echo "Newly opened issue at "
20- # ISSUE_TITLE=${{ github.event.issue.title }}
21- # ISSUE_BODY=${{ github.event.issue.body }}
22- # ISSUE_URL=${{ github.event.issue.issue_url }}
23- TIME_STAMP="`date +%s`"
24- cat <<EOT > /tmp/slack_message.json
25- {
26- "type": "mrkdwn",
27- "text": " Issue Opened on Node Ottoman ",
28- "attachments": [
29- {
30- "fallback": " Node Ottoman Issue",
31- "color": "#36a64f",
32- "pretext": " Opened Issue : $ISSUE_TITLE \n \n $ISSUE_BODY \n \n For more details about issue: $ISSUE_URL ",
33- "footer_icon": "https://www.couchbase.com/webfiles/1629373386042/images/favicon.ico",
34- "ts": ${TIME_STAMP}
35- }
36- ]
37- }
38- EOT
39- cat /tmp/slack_message.json
40- SLACK_WEBHOOK_URL="${{ secrets.SLACK_WEBHOOK_URL_DA_ALERTS_SUCCESS }}"
41- curl -X POST -H 'Content-type: application/json' --data @/tmp/slack_message.json ${SLACK_WEBHOOK_URL}
7+ # env:
8+ # ISSUE_URL: ${{ github.event.issue.html_url }}
9+ # ISSUE_TITLE: ${{ github.event.issue.title }}
10+ # ISSUE_BODY: ${{ github.event.issue.body }}
11+ # jobs:
12+ # new_issue:
13+ # name: New Issue
14+ # runs-on: ubuntu-latest
15+ # steps:
16+ # - uses: actions/checkout@v2
17+ # - name: Send Issues to slack
18+ # run: |
19+ # echo "Newly opened issue at "
20+ # # ISSUE_TITLE=${{ github.event.issue.title }}
21+ # # ISSUE_BODY=${{ github.event.issue.body }}
22+ # # ISSUE_URL=${{ github.event.issue.issue_url }}
23+ # TIME_STAMP="`date +%s`"
24+ # cat <<EOT > /tmp/slack_message.json
25+ # {
26+ # "type": "mrkdwn",
27+ # "text": " Issue Opened on Node Ottoman ",
28+ # "attachments": [
29+ # {
30+ # "fallback": " Node Ottoman Issue",
31+ # "color": "#36a64f",
32+ # "pretext": " Opened Issue : $ISSUE_TITLE \n \n $ISSUE_BODY \n \n For more details about issue: $ISSUE_URL ",
33+ # "footer_icon": "https://www.couchbase.com/webfiles/1629373386042/images/favicon.ico",
34+ # "ts": ${TIME_STAMP}
35+ # }
36+ # ]
37+ # }
38+ # EOT
39+ # cat /tmp/slack_message.json
40+ # SLACK_WEBHOOK_URL="${{ secrets.SLACK_WEBHOOK_URL_DA_ALERTS_SUCCESS }}"
41+ # curl -X POST -H 'Content-type: application/json' --data @/tmp/slack_message.json ${SLACK_WEBHOOK_URL}
0 commit comments