Skip to content

feat: creating common telemetry package #1194

feat: creating common telemetry package

feat: creating common telemetry package #1194

Workflow file for this run

name: Commitlint
on:
pull_request:
branches: [main, feat/*]
types:
- opened # a PR is opened
- edited # PR title or description is edited
- synchronize # new commits are pushed to PR branch
- reopened # a previously closed PR is reopened
- ready_for_review # a draft PR is marked ready for review
jobs:
pr-description:
runs-on: ubuntu-latest
permissions:
contents: read
if: |
github.event.pull_request.draft == false
steps:
- name: Check PR description is not empty
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
if [ -z "$(echo "$PR_BODY" | tr -d '[:space:]')" ]; then
echo "❌ PR description is empty. Please provide relevant description for your pull request."
exit 1
fi
echo "PR description is present."
commitlint:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24.x"
cache: "npm"
registry-url: "https://npm.pkg.github.com"
scope: "@uipath"
- name: Install commitlint
run: npm install @commitlint/cli @commitlint/config-conventional
- name: Validate commits
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose