CodelyTV / pr-size-labeler

🏷 Visualize and optionally limit the size of your Pull Requests
https://github.com/marketplace/actions/pull-request-size-labeler
MIT License
336 stars 58 forks source link

Label is not added pull requests #43

Closed sukki37 closed 5 months ago

sukki37 commented 2 years ago

This my pr action link, https://github.com/sukkiCat/test/pull/1, no error logs, but labels are not added.

johnlk commented 5 months ago

You'll need to add a github action yml file to the project. Here's an example .github/labeler.yml.

name: labeler

on: [pull_request]

jobs:
  labeler:
    runs-on: ubuntu-latest
    name: Label the PR size
    steps:
      - uses: codelytv/pr-size-labeler@v1.8.1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          files_to_ignore: |
            "README.md"
            "static/*"
            "conftest.py"
            "pyproject.toml"