diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6260d32 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,33 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_style = tab +indent_size = 8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +indent_style = space +indent_size = 4 +insert_final_newline = false + +# C coding style based on Linux kernel. +# https://www.kernel.org/doc/html/v5.0/process/coding-style.html + +[*.c] +indent_style = tab +indent_size = 8 + +[*.h] +indent_style = tab +indent_size = 8 + +[*.yaml] +indent_style = space +indent_size = 2 +insert_final_newline = false diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..7ea0885 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,20 @@ +# This configures label matching for PR's. +# +# The keys are labels, and the values are lists of minimatch patterns +# to which those labels apply. +# +# NOTE: This can only add labels, not remove them. +# NOTE: Due to YAML syntax limitations, patterns or labels which start +# with a character that is part of the standard YAML syntax must be +# quoted. +# +# Please keep the labels sorted and deduplicated. + +"c:language": + - locale.in/* + +"c:libraries": + - share/*/* + +"c:binaries": + - bin/*/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..a0cea7c --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Automatic Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"