Skip to content

Pull Request auto size labeler

Actions
Github action to automatically add label on PR to define size (based on line diff and file modified)
v2.0.0
Latest
Star (9)

Tags

 (1)

Welcome to BedrockStreaming/pr-size-labeler 👋

Maintenance GitHub GitHub Workflow Status GitHub Repo stars

Github action to automatically add label on PR to define size (based on line diff and file modified)

Author

How to use ?

You can create a .github/workflows/pr-labeler.yml file:

name: 🏷 PR size labeler

on: [pull_request]

jobs:
  pr-labeler:
    runs-on: ubuntu-latest
    name: Label the PR size
    steps:
      - uses: BedrockStreaming/pr-size-labeler@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          exclude_files: .lock

Inputs

xs_label:
  required: false
  default: 'Size/XS'
xs_diff:
  required: false
  default: '50'
xs_files:
  required: false
  default: '5'
s_label:
  required: false
  default: 'Size/S'
s_diff:
  required: false
  default: '100'
s_files:
  required: false
  default: '10'
m_label:
  required: false
  default: 'Size/M'
m_diff:
  required: false
  default: '500'
m_files:
  required: false
  default: '30'
l_label:
  required: false
  default: 'Size/L'
l_diff:
  required: false
  default: '800'
l_files:
  required: false
  default: '50'
xl_label:
  required: false
  default: 'Size/XL'
xl_diff:
  required: false
  default: '1500'
xl_files:
  required: false
  default: '100'
token:
  required: true
exclude_files:
  description: 'Regexp to ignore files from the line diff count (example: yarn.lock)'
  required: true

📝 License

This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

Pull Request auto size labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action to automatically add label on PR to define size (based on line diff and file modified)
v2.0.0
Latest

Tags

 (1)

Pull Request auto size labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.