Skip to content

Commit

Permalink
chore: Create dynamic-template.yml (#253)
Browse files Browse the repository at this point in the history
## Description

<!-- Prefix the PR title with 'feat:' to increment the minor version, or
'fix:' to increment the patch version -->

<!-- Describe what changes this PR introduces and their effects -->
<!-- Update documentation if there are any changes to existing features
or APIs -->

## Testing

<!-- Describe how you tested your changes and how reviewers can test
them -->
<!-- Ensure all code can be tested offline (unmarked tests) and online
(marked as 'integration') -->

## Additional context

<!-- Add any other context about your changes here -->

<!-- ## Breaking Changes -->

<!-- List any breaking changes introduced by this PR and their
implications and include '!' in the prefix. -->
  • Loading branch information
dciborow authored Oct 21, 2024
1 parent f5d1749 commit 6832169
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/checklistConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"mappings": [
{
"paths": ["src/**/*.py"],
"items": ["Python code includes tests"]
},
{
"triggers": [
"connection",
"session",
"CloseableHttpClient",
"HttpClient"
],
"items": [
"Resources have been closed in finally block or using try-with-resources"
]
},
{
"triggers": ["RequestMapping", "GetMapping", "PostMapping", "PutMapping"],
"items": ["Endpoint URLs exposed by application use only small case"]
},
{
"triggers": ["keyword1", "keyword2"],
"items": ["reminder about keywords", "another reminder about keywords"]
}
]
}
19 changes: 19 additions & 0 deletions .github/workflows/dynamic-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Dynamic checklist"

on:
pull_request:
branches: [master]

jobs:
checklist_job:
runs-on: ubuntu-latest
name: A job to create dynamic checklist
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Dynamic checklist action
uses: ethanresnick/dynamic-checklist@v1
with:
config: ".github/checklistConfig.json"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 6832169

Please sign in to comment.