feat: add lebeler (#414)

pull/418/head
Ming Tsai 2021-08-09 20:33:49 -04:00 committed by GitHub
parent 94895c3f6f
commit 82250706f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 2 deletions

28
.github/labeler.yml vendored 100644
View File

@ -0,0 +1,28 @@
documentation:
- '**/*.md'
enhancement:
- '**/*.yml'
- '**/*.yaml'
C:
- '**/*.c'
C++:
- '**/*.cpp'
Go:
- '**/*.go'
Java:
- '**/*.java'
Python:
- '**/*.py'
JavaScript:
- '**/*.js'
C#:
- '**/*.cs'

22
.github/workflows/label.yml vendored 100644
View File

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

View File

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