Skip to content

Commit 4ceeda0

Browse files
lemanschikejscribner
authored andcommitted
Update issue.yaml
#779 Security emergency Pull that in i will send out emails and reach out on slack
1 parent 3bd30d7 commit 4ceeda0

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

.github/workflows/issue.yaml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
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

Comments
 (0)