Skip to content

Commit

Permalink
chore: remove slack mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
svennjegac committed Oct 5, 2023
1 parent 56747a9 commit aebdab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/open-prs-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: "https://github.com/Constructor-io/zerolog-sentry"
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_MENTIONS: ${{ secrets.SLACK_MENTIONS }}
run: |
PR_LIST=$(gh pr list --repo $REPOSITORY)
echo "PR List: $PR_LIST"
Expand All @@ -21,7 +20,7 @@ jobs:
echo "No open PRs found."
exit 0
else
SLACK_MESSAGE="{\"text\": \"*Issue:* Found open PRs.\n*Repository:* $REPOSITORY\n*Assigned to:* $SLACK_MENTIONS\"}"
SLACK_MESSAGE="{\"text\": \"*Issue:* Found open PRs.\n*Repository:* $REPOSITORY\"}"
SLACK_WEBHOOK_RESPONSE=$(curl -X POST -H 'Content-type: application/json' --data "$SLACK_MESSAGE" $SLACK_WEBHOOK_URL)
if [[ $SLACK_WEBHOOK_RESPONSE == "ok" ]]; then
echo "Slack message sent successfully."
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/upstream-sync-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
UPSTREAM: "https://github.com/archdx/zerolog-sentry"
UPSTREAM_BRANCH: "master"
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_MENTIONS: ${{ secrets.SLACK_MENTIONS }}
run: |
set +e
Expand All @@ -33,7 +32,7 @@ jobs:
echo "$FORK in sync with latest $UPSTREAM."
exit 0
else
SLACK_MESSAGE="{\"text\": \"*Issue:* Fork not in sync with latest upstream.\n*Fork:* $FORK\n*Upstream:* $UPSTREAM\n*Upstream commit SHA:* $UPSTREAM_SHA\n*Assigned to:* $SLACK_MENTIONS\"}"
SLACK_MESSAGE="{\"text\": \"*Issue:* Fork not in sync with latest upstream.\n*Fork:* $FORK\n*Upstream:* $UPSTREAM\n*Upstream commit SHA:* $UPSTREAM_SHA\"}"
SLACK_WEBHOOK_RESPONSE=$(curl -X POST -H 'Content-type: application/json' --data "$SLACK_MESSAGE" $SLACK_WEBHOOK_URL)
if [[ $SLACK_WEBHOOK_RESPONSE == "ok" ]]; then
echo "Slack message sent successfully."
Expand Down

0 comments on commit aebdab7

Please sign in to comment.