Skip to content

feat: standardize API error responses #7

feat: standardize API error responses

feat: standardize API error responses #7

Workflow file for this run

name: Automatic Labeler
on:
issues:
types: [opened, edited, reopened, assigned, unassigned]
pull_request_target:
types: [opened, edited, reopened, synchronize, ready_for_review]
# Ensure least-privileged permissions are applied
permissions:
contents: read
issues: write
pull-requests: write
jobs:
label:
name: Auto Labeling
runs-on: ubuntu-latest
steps:
- name: Checkout Base Repository
uses: actions/checkout@v4
with:
# Always checkout the base branch to ensure untrusted PR code is never executed
ref: ${{ github.event.repository.default_branch }}
- name: Execute Labeler Script
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const labeler = require('./.github/scripts/labeler.js');
await labeler({ github, context, core });