refactor(logging): topicLogger for headers #432
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
branches: [master, feature/*, staging] | |
# Default = opened + synchronize + reopened. | |
# We also want "edited" so that changelog notifications runs when PR title is updated. | |
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request | |
types: | |
- edited | |
- opened | |
- reopened | |
- synchronize | |
# Cancel old jobs when a pull request is updated. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
issues: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 20 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Check for tests | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const notify = require('.github/workflows/notify.js') | |
await notify({github, context}) | |
if: github.event_name == 'pull_request_target' |