feat: add lebeler (#414)
parent
94895c3f6f
commit
82250706f8
|
@ -0,0 +1,28 @@
|
|||
documentation:
|
||||
- '**/*.md'
|
||||
|
||||
enhancement:
|
||||
- '**/*.yml'
|
||||
- '**/*.yaml'
|
||||
|
||||
C:
|
||||
- '**/*.c'
|
||||
|
||||
C++:
|
||||
- '**/*.cpp'
|
||||
|
||||
Go:
|
||||
- '**/*.go'
|
||||
|
||||
Java:
|
||||
- '**/*.java'
|
||||
|
||||
Python:
|
||||
- '**/*.py'
|
||||
|
||||
JavaScript:
|
||||
- '**/*.js'
|
||||
|
||||
C#:
|
||||
- '**/*.cs'
|
||||
|
|
@ -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 }}"
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue