Skip to content

build(deps): bump @radix-ui/react-slot from 1.2.0 to 1.2.5 #24

build(deps): bump @radix-ui/react-slot from 1.2.0 to 1.2.5

build(deps): bump @radix-ui/react-slot from 1.2.0 to 1.2.5 #24

Workflow file for this run

name: Auto Label
on:
issues:
types: [opened, edited]
pull_request:
types: [opened, synchronize]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
script: |
const labels = [];
const title = (context.payload.issue || context.payload.pull_request).title.toLowerCase();
const body = ((context.payload.issue || context.payload.pull_request).body || '').toLowerCase();
if (title.includes('bug') || title.includes('fix') || title.includes('error')) labels.push('bug');
if (title.includes('feat') || title.includes('add') || title.includes('new')) labels.push('enhancement');
if (title.includes('doc') || title.includes('readme') || title.includes('comment')) labels.push('documentation');
if (title.includes('test') || title.includes('spec')) labels.push('testing');
if (title.includes('good first') || title.includes('beginner') || title.includes('starter')) labels.push('good first issue');
if (labels.length > 0) {
const issue_number = context.payload.issue ? context.payload.issue.number : context.payload.pull_request.number;
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
labels: labels
});
}