diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..cbea1225 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,28 @@ +documentation: + - '**/*.md' + +enhancement: + - '**/*.yml' + - '**/*.yaml' + +C: + - '**/*.c' + +C++: + - '**/*.cpp' + +Go: + - '**/*.go' + +Java: + - '**/*.java' + +Python: + - '**/*.py' + +JavaScript: + - '**/*.js' + +C#: + - '**/*.cs' + diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 00000000..5cdc45e6 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,22 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/algorithms/CSharp/src/Strings/palindrome.cs b/algorithms/CSharp/src/Strings/palindrome.cs index 3c30ad33..11c82ca2 100644 --- a/algorithms/CSharp/src/Strings/palindrome.cs +++ b/algorithms/CSharp/src/Strings/palindrome.cs @@ -24,5 +24,5 @@ namespace Algorithms.Strings string reverse = new string(Enumerable.Range(1, source.Length).Select(i => source[source.Length - i]).ToArray()); return reverse == source; } - } -} \ No newline at end of file + } +}