Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Summary
What does this PR do?

## Type
- [ ] Feature
- [ ] Fix
- [ ] Docs
- [ ] CI

## Testing
- [ ] Tested locally
- [ ] Tests added
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ShieldCommit CI

on:
pull_request:
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements.txt || true

- name: Verify CLI loads
run: |
shieldcommit --help

- name: Run tests (if available)
run: |
if [ -d tests ]; then
pip install pytest
pytest
else
echo "No tests directory, skipping tests"
fi
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Contributing to ShieldCommit

## Branch Rules
- main → stable only
- feature/* → new features
- fix/* → bug fixes
- docs/* → documentation

## Workflow
1. Fork repo
2. Create branch from main
3. Open PR to main
4. CI must pass

## Run locally
pip install -e .
pytest
Loading