GitVista

Comprehensive toolkit for GitHub developers and teams

Unauthenticated API Limit: -- / 60 remaining
💡 Sign in with GitHub for 5,000 requests/hour + access to private repos
Quick actions: Enter to search Ctrl + K for shortcuts

GitHub Auto-Labeler Configuration

Learn how to automate GitHub issue and PR labeling using patterns and the GitHub API.

Label Mapping Rules

Configure automatic labels based on keywords found in issues and pull requests:

bug → error, crash, broken, fix
feature → new, add, implement, enhancement
documentation → docs, readme, guide, tutorial
help-wanted → help, assist, question
good-first-issue → beginner, easy, simple, first

Sample Configuration JSON

{{
  "labelRules": [
    {{"keywords": ["bug", "error", "crash"], "label": "bug", "color": "d73a49"}},
    {{"keywords": ["feature", "new", "add"], "label": "feature", "color": "28a745"}},
    {{"keywords": ["docs", "readme"], "label": "documentation", "color": "0366d6"}}
  ]
}}

GitHub API Example (Create Label)

curl -X POST \
  https://api.github.com/repos/OWNER/REPO/labels \
  -H "Authorization: token YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{{
    "name": "bug",
    "color": "d73a49",
    "description": "Something isn't working"
  }}'

GitHub Actions Workflow

name: Auto Label
on:
  issues:
    types: [opened, edited]
  pull_request:
    types: [opened, edited]

jobs:
  label:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/labeler@v4
        with:
          repo-token: ${{{{ secrets.GITHUB_TOKEN }}}}