diff --git a/.dockerignore b/.dockerignore index 72be04a..fd1f918 100644 --- a/.dockerignore +++ b/.dockerignore @@ -24,4 +24,10 @@ htmlcov/ .coverage # Development Dependencies -requirements.dev.txt \ No newline at end of file +requirements.dev.txt + +# Renovate +renovate.json + +# Logs +**/*.log diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..e06106f --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,17 @@ +## Description + +Please explain the changes you made here. + +## Which issue(s) does this PR fix + +- Fixes # + +## PR acceptance criteria + +Please make sure that the following steps are complete: + +- [ ] GitHub Actions are completed and successful +- [ ] Tests are updated and passing +- [ ] Documentation is updated + +## How to test changes / Special notes to the reviewer diff --git a/.github/actions/should-skip-build/action.yaml b/.github/actions/should-skip-build/action.yaml index d39384a..f61fcc6 100644 --- a/.github/actions/should-skip-build/action.yaml +++ b/.github/actions/should-skip-build/action.yaml @@ -15,9 +15,9 @@ inputs: required: false default: 'true' file-patterns: - description: 'File extensions to check for skip logic (space or comma-separated, e.g., ".md")' + description: 'Regex patterns to match files for skip logic (space, comma, or newline-separated)' required: false - default: '.md' + default: '\.md$' outputs: should_skip: description: 'Whether the build should be skipped (true/false)' @@ -145,9 +145,9 @@ runs: echo "$CHANGED_FILES" echo "" - # Parse file patterns (handle both space and comma-separated) + # Parse file patterns (handle space, comma, and newline-separated) FILE_PATTERNS="${{ inputs.file-patterns }}" - FILE_PATTERNS=$(echo "$FILE_PATTERNS" | tr ',' ' ') + FILE_PATTERNS=$(echo "$FILE_PATTERNS" | tr ',\n' ' ') echo "Checking for file patterns: $FILE_PATTERNS" echo "" @@ -164,7 +164,7 @@ runs: # Check if file matches any of the patterns FILE_MATCHES="false" for pattern in $FILE_PATTERNS; do - if [[ "$file" =~ ${pattern}$ ]]; then + if [[ "$file" =~ ${pattern} ]]; then FILE_MATCHES="true" break fi diff --git a/.github/workflows/build-container.yaml b/.github/workflows/build-container.yaml index e27bafa..8985f3b 100644 --- a/.github/workflows/build-container.yaml +++ b/.github/workflows/build-container.yaml @@ -42,7 +42,12 @@ jobs: image: ${{ env.REGISTRY_IMAGE }} commit-sha: ${{ github.sha }} check-image: 'true' - file-patterns: '.md' + file-patterns: | + \.md$ + ^renovate\.json$ + ^examples\/ + ^\.cursor\/ + ^tests\/ - name: Install skopeo if: steps.skip_check.outputs.should_skip != 'true' run: | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3da3a88..4b9dacc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,8 +26,11 @@ jobs: with: commit-sha: ${{ github.sha }} check-image: 'false' - file-patterns: '.md' - + file-patterns: | + ^.*\.md$ + ^renovate\.json$ + ^examples\/ + ^\.cursor\/ - name: Set up Python if: steps.skip_check.outputs.should_skip != 'true' uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 diff --git a/.gitignore b/.gitignore index 7834a65..fce87dd 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ outputs/ .vscode/ # Tests -tests/.pytest_cache/ -tests/htmlcov/ -tests/.coverage -.coverage \ No newline at end of file +**/.pytest_cache/ +**/htmlcov/ +**/.coverage +**/.coverage.* diff --git a/examples/example-config-todo/plugins/todo/scalprum-config.json b/examples/example-config-todo/plugins/todo/overlay/scalprum-config.json similarity index 100% rename from examples/example-config-todo/plugins/todo/scalprum-config.json rename to examples/example-config-todo/plugins/todo/overlay/scalprum-config.json