Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/notify-slack.yml

This file was deleted.

14 changes: 1 addition & 13 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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)) {
Expand All @@ -39,22 +38,11 @@ jobs:
repo: context.repo.repo,
labels: ['pr/internal']
});
core.setOutput("external", "false");
} else {
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
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 }}'
Loading