feat: send RequestHandled, JobProcessed and ResponseReceived events to insights #34
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
name: Check PR Title | |
on: | |
pull_request: | |
branches: [ master ] | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
commitlint: | |
name: Check PR title | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Setup | |
run: | | |
npm install -g @commitlint/cli @commitlint/config-conventional | |
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js | |
- name: Verify PR title is in the correct format | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
run: | | |
echo $TITLE | npx commitlint -V |