diff --git a/.github/workflows/pr-size-labeler.yml b/.github/workflows/pr-size-labeler.yml new file mode 100644 index 000000000000..f80398bf5a64 --- /dev/null +++ b/.github/workflows/pr-size-labeler.yml @@ -0,0 +1,21 @@ +name: Pull Request Labeling + +on: + - pull_request + +jobs: + + size-label: + runs-on: ubuntu-latest + steps: + - name: size-label + uses: "pascalgn/size-label-action@v0.4.3" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + sizes: > + { + "0": "small", + "50": "medium", + "250": "large" + } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94c74775f61d..8d4beafc219a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,6 +33,9 @@ Color | Label | Description | Section | |![](https://placehold.co/15x15/33B478/33B478.png)|Discussion|Issue is being discussed. Undetermined|Indicator| |![](https://placehold.co/15x15/f4bd13/f4bd13.png)|Duplicate|Issue is already present|Indicator| |![](https://placehold.co/15x15/CD456C/CD456C.png)|Not our bug|Bug in 3rd party component|Indicator| +|![](https://placehold.co/15x15/ededed/ededed.png)|size/small| less then 50 lines|Indicator / automatic| +|![](https://placehold.co/15x15/ededed/ededed.png)|size/medium| more then 50 and less then 250 lines|Indicator / automatic| +|![](https://placehold.co/15x15/ededed/ededed.png)|size/large| 250 lines or more|Indicator / automatic| |![](https://placehold.co/15x15/bfd4f2/bfd4f2.png)|Desktop|Graphical user interface|Indicator / automatic| |![](https://placehold.co/15x15/bfd4f2/bfd4f2.png)|Hardware|Hardware related - kernel, u-boot, patches|Indicator / automatic| |![](https://placehold.co/15x15/bfd4f2/bfd4f2.png)|Software|Framework components|Indicator / automatic|