diff --git a/.github/workflows/notify-slack.yml b/.github/workflows/notify-slack.yml deleted file mode 100644 index 7948ddf51b..0000000000 --- a/.github/workflows/notify-slack.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Slack Notifications - -on: - issues: - types: [opened] - -jobs: - notify-slack: - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - name: Send New Issue Notification - if: github.event_name == 'issues' - uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_TITLE: 'Issue Created: ${{ github.event.issue.title }} by ${{ github.event.issue.user.login }}' - SLACK_FOOTER: '' - MSG_MINIMAL: true - SLACK_MESSAGE: '${{ github.event.issue.html_url }}' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index c33394b644..6a2409d43f 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -20,7 +20,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Apply internal/external label - id: label_step uses: actions/github-script@v9 with: github-token: ${{secrets.GITHUB_TOKEN}} @@ -29,7 +28,7 @@ jobs: 'aws-sam-cli-bot', 'seshubaws', 'valerena', 'Vandita2020', 'roger-zhangg', - 'vicheey', 'bnusunny', 'tobixlea', + 'vicheey', 'bnusunny', 'tobixlea', 'reedham-aws', 'licjun', 'dependabot[bot]' ]; if (maintainers.includes(context.payload.sender.login)) { @@ -39,7 +38,6 @@ jobs: repo: context.repo.repo, labels: ['pr/internal'] }); - core.setOutput("external", "false"); } else { await github.rest.issues.addLabels({ issue_number: context.issue.number, @@ -47,14 +45,4 @@ jobs: repo: context.repo.repo, labels: ['pr/external', 'stage/needs-triage'] }); - core.setOutput("external", "true"); } - - name: Send Slack Notification for External PR - if: steps.label_step.outputs.external == 'true' - uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_TITLE: 'PR Created: ${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}' - SLACK_FOOTER: '' - MSG_MINIMAL: true - SLACK_MESSAGE: '${{ github.event.pull_request.html_url }}'