ruby-changes:60346
From: Takashi <ko1@a...>
Date: Tue, 10 Mar 2020 14:40:18 +0900 (JST)
Subject: [ruby-changes:60346] 4015f27a4d (master): Drop direct Slack notification from CIs
https://git.ruby-lang.org/ruby.git/commit/?id=4015f27a4d From 4015f27a4d032c163411e0fa0caa3a1507769040 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Mon, 9 Mar 2020 22:31:50 -0700 Subject: Drop direct Slack notification from CIs All Slack alerts have been migrated to a bot made by mame-san diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 9970299..83ee14d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -57,26 +57,12 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L57 with: payload: | { - "attachments": [{ - "text": "${{ github.workflow }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v... - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ github.workflow }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 38432df7..a29d4c7 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -142,26 +142,12 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L142 with: payload: | { - "attachments": [{ - "text": "${{ github.workflow }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v... - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ github.workflow }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 0bd2f34..4814ae1 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -58,26 +58,12 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mjit.yml#L58 with: payload: | { - "attachments": [{ - "text": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.jit_opts }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v... - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.jit_opts }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 9b4237d..4f50216 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -71,26 +71,12 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L71 with: payload: | { - "attachments": [{ - "text": "${{ matrix.os }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v... - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ matrix.os }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fdac90c..f786913 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -74,26 +74,12 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L74 with: payload: | { - "attachments": [{ - "text": "${{ matrix.os }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - - uses: k0kubun/action-slack@v... - with: - payload: | - { "ci": "GitHub Actions", "env": "${{ matrix.os }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' diff --git a/.travis.yml b/.travis.yml index 7df92bc..5db134a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -532,16 +532,9 @@ notifications: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L532 template: - (... truncated) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/