-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migrate to @vorausrobobtik python template
- Loading branch information
Showing
164 changed files
with
1,630 additions
and
1,778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"template": "[email protected]:vorausrobotik/voraus-python-template.git", | ||
"commit": "9ef5161b20a68d274ecf3828467c3f44f4747bca", | ||
"checkout": null, | ||
"context": { | ||
"cookiecutter": { | ||
"full_name": "Jan-Frederik Schmidt", | ||
"email": "[email protected]", | ||
"github_user": "", | ||
"project_name": "shop-db2", | ||
"repo_name": "shop-db2", | ||
"package_name": "shopdb", | ||
"import_name": "shopdb", | ||
"project_short_description": "The simple way to manage purchases and user interactions in a small community.", | ||
"url": "https://github.com/g3n35i5/shopdb", | ||
"_debug": "False", | ||
"_extensions": ["extensions.git_extension.GitExtension"], | ||
"_copy_without_render": ["docs/_templates/license_compliance.rst.j2"], | ||
"_template": "[email protected]:vorausrobotik/voraus-python-template.git" | ||
} | ||
}, | ||
"directory": null | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @g3n35i5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Pull Request Lint | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize, labeled, unlabeled] | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title and description | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
requireScope: false | ||
# Configure additional validation for the subject based on a regex. | ||
# This ensures the subject does start with an uppercase character. | ||
subjectPattern: ^(?![a-z])(?![a-zA-Z]+s\s(?<!ss\s)).+[^\.\?\!]$ | ||
# If `subjectPattern` is configured, you can use this property to override | ||
# the default error message that is shown when the pattern doesn't match. | ||
# The variables `subject` and `title` can be used within the message. | ||
subjectPatternError: | | ||
The subject "{subject}" found in the pull request title "{title}" | ||
didn't match the configured pattern. Please ensure that: | ||
- The subject does start with an uppercase character | ||
- The subject does not end with a dot, question or exclamation mark | ||
- The subject uses imperative mood | ||
# If the PR contains one of these newline-delimited labels, the | ||
# validation is skipped. | ||
ignoreLabels: | | ||
rebase | ||
- name: Validate PR body is filled | ||
env: | ||
BODY_CONTEXT: ${{ toJson(github.event.pull_request.body) }} | ||
run: | | ||
if [ "$BODY_CONTEXT" = "null" ];\ | ||
then\ | ||
echo "Error: The pull request body is empty." &&\ | ||
echo "Please add a description why the change is necessary and link tickets." &&\ | ||
(exit 1); | ||
else\ | ||
echo "PR Body is not empty. Check passed.";\ | ||
fi\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Python template update checks | ||
on: | ||
push: | ||
branches: | ||
- "chore/update-template**" | ||
jobs: | ||
fail-if-rej-files-exist: | ||
name: "Check for rejected files" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Assert that 0 files ending with '.rej' are in the current working directory. | ||
# `xargs` returns 0 on success, otherwise status codes between 1 and 127, see | ||
# https://man7.org/linux/man-pages/man1/xargs.1.html for details. | ||
- run: find . -iname "*.rej" | wc -l | xargs -I % test % -eq 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.