Skip to content

Commit 3c0504b

Browse files
committed
chore: bootstrap diff-risk-dashboard (always-green CI + CodeQL)
0 parents  commit 3c0504b

File tree

17 files changed

+254
-0
lines changed

17 files changed

+254
-0
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule: { interval: "weekly" }

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Summary
2+
-
3+
4+
## Checklist
5+
- [ ] Conventional Commit in title
6+
- [ ] CI green
7+
- [ ] CodeQL green

.github/release-drafter.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels: ['feat','feature','enhancement']
6+
- title: '🐛 Fixes'
7+
labels: ['fix','bug']
8+
- title: '🧰 Maintenance'
9+
labels: ['chore','build','ci','refactor']
10+
- title: '📝 Docs'
11+
labels: ['docs']
12+
- title: '✅ Tests'
13+
labels: ['test']
14+
change-template: '- $TITLE (#$NUMBER) by @$AUTHOR'
15+
no-changes-template: 'No changes.'
16+
version-resolver:
17+
major: { labels: ['major','breaking','semver:major'] }
18+
minor: { labels: ['minor','feat','enhancement','semver:minor'] }
19+
patch: { labels: ['patch','fix','chore','ci','docs','refactor','test','semver:patch'] }
20+
default: patch
21+
template: |
22+
## What’s Changed
23+
$CHANGES

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI / build
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
jobs:
7+
python:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.11","3.12"]
12+
steps:
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- run: python -m pip install -U pip
18+
- run: pip install poetry
19+
- run: poetry install --no-interaction
20+
- run: poetry run ruff check .
21+
- run: poetry run black --check .
22+
- run: PYTHONPATH=src poetry run pytest -q
23+
- run: poetry run mypy src

.github/workflows/codeql.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CodeQL
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
jobs:
7+
analyze:
8+
name: Analyze
9+
runs-on: ubuntu-latest
10+
permissions:
11+
security-events: write
12+
actions: read
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: github/codeql-action/init@v3
17+
with:
18+
languages: python
19+
- uses: github/codeql-action/analyze@v3
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: dependabot metadata and labels
2+
on: pull_request_target
3+
jobs:
4+
label:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: dependabot/fetch-metadata@v2
8+
with:
9+
github-token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
types: [opened, edited, reopened, synchronize]
7+
workflow_dispatch:
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: release-drafter/release-drafter@v6
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/semantic-pr.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: semantic PR title
2+
on:
3+
pull_request_target:
4+
types: [opened, edited, synchronize]
5+
jobs:
6+
check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: amannn/action-semantic-pull-request@v6
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 CoderDeltaLAN
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# diff-risk-dashboard
2+
3+
Visual dashboard for Pull Request risk exposure, designed to consume **ai-patch-verifier** JSON outputs.
4+
5+
## Quick Start
6+
```bash
7+
poetry install
8+
poetry run drd summarize examples/sample_apv.json
9+
```
10+
11+
## Run checks (mirrors CI)
12+
```bash
13+
poetry run ruff check .
14+
poetry run black --check .
15+
PYTHONPATH=src poetry run pytest -q
16+
poetry run mypy src
17+
```
18+
19+
## License
20+
MIT

0 commit comments

Comments
 (0)