diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 00000000..161f16ee --- /dev/null +++ b/.github/labels.yaml @@ -0,0 +1,16 @@ +# Pull Request size labels +- name: "size/XS" + color: "A2D9A1" + description: "Extra Small size PR." +- name: "size/S" + color: "73BFF2" + description: "Small size PR." +- name: "size/M" + color: "FFEB3B" + description: "Medium size PR." +- name: "size/L" + color: "FF9800" + description: "Large size PR." +- name: "size/XL" + color: "F44336" + description: "Extra Large size PR." \ No newline at end of file diff --git a/.github/workflow/pr-size-labeler.yaml b/.github/workflow/pr-size-labeler.yaml new file mode 100644 index 00000000..aa73a8e5 --- /dev/null +++ b/.github/workflow/pr-size-labeler.yaml @@ -0,0 +1,27 @@ +name: PR-size-labeler + +on: [pull_request] + +jobs: + labeler: + runs-on: ubuntu-latest + name: Label the PR size + steps: + - uses: codelytv/pr-size-labeler@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + xs_label: 'size/XS' + xs_max_size: '10' + s_label: 'size/S' + s_max_size: '100' + m_label: 'size/M' + m_max_size: '500' + l_label: 'size/L' + l_max_size: '1000' + xl_label: 'size/XL' + fail_if_xl: 'false' + message_if_xl: > + This PR exceeds the recommended size of 1000 lines. + Please make sure you are NOT addressing multiple issues with one PR. + Note this PR might be rejected due to its size. + files_to_ignore: '' \ No newline at end of file