From 82250706f8dd9b5aad987ce0d409c21fde61ca9a Mon Sep 17 00:00:00 2001 From: Ming Tsai <37890026+ming-tsai@users.noreply.github.com> Date: Mon, 9 Aug 2021 20:33:49 -0400 Subject: [PATCH] feat: add lebeler (#414) --- .github/labeler.yml | 28 +++++++++++++++++++++ .github/workflows/label.yml | 22 ++++++++++++++++ algorithms/CSharp/src/Strings/palindrome.cs | 4 +-- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml 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 + } +}