Skip to content

Merge master into feature/q-dev-execution #5434

Merge master into feature/q-dev-execution

Merge master into feature/q-dev-execution #5434

Workflow file for this run

# github actions: https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-nodejs
# setup-node: https://github.com/actions/setup-node
name: Notifications
on:
# `pull_request_target` (as opposed to `pull_request`) gives permissions to comment on PRs.
pull_request_target:
# By default, CI will trigger on opened/synchronize/reopened event types.
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request
# Note: To re-run `lint-commits` after fixing the PR title, close-and-reopen the PR.
branches: [master, feature/*, staging]
# Cancel old jobs when a pull request is updated.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
notify:
if: github.repository == 'aws/aws-toolkit-vscode'
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: read
steps:
- uses: actions/checkout@v4
if: github.event_name == 'pull_request_target'
with:
fetch-depth: 20
- uses: actions/setup-node@v4
if: github.event_name == 'pull_request_target'
with:
node-version: '20'
- name: Comment about contribution guidelines
uses: actions/github-script@v7
if: github.event_name == 'pull_request_target'
with:
script: |
const notify = require('.github/workflows/notify.js')
await notify({github, context})