Add editory style (#3)

This commit is contained in:
Igor Pečovnik
2022-03-21 15:44:29 +01:00
committed by GitHub
parent f3eedda944
commit 081dec1d3d
3 changed files with 64 additions and 0 deletions

33
.editorconfig Normal file
View File

@@ -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

20
.github/labeler.yml vendored Normal file
View File

@@ -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/*/*

11
.github/workflows/labeler.yml vendored Normal file
View File

@@ -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 }}"