Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2484caf
Initial commit
don-petry Mar 15, 2026
d933215
chore: add AGPL-3.0 + commercial dual licensing and CLA
Mar 25, 2026
c988f3f
fix: address review feedback — fix naming, wording, and license format
Mar 25, 2026
6a39e12
fix: standardize LICENSE file format and add copyright notice (#7)
don-petry Mar 26, 2026
db2a774
chore: enable CodeRabbit for AI-powered PR reviews (#8)
don-petry Mar 26, 2026
92395e2
chore: refine CodeRabbit config to exclude non-code directories (#10)
don-petry Mar 26, 2026
dc6cde8
Add Claude Code GitHub Action (#12)
don-petry Mar 27, 2026
6bbbdb4
chore: add planning artifacts, UX screen prototypes, and Claude confi…
don-petry Mar 28, 2026
e261928
feat: add Epic 1 sprint planning, coding standards, and test strategy…
don-petry Mar 28, 2026
8ce1829
fix: address OpenSSF Scorecard findings (#20)
don-petry Mar 28, 2026
819a197
ci: skip Claude Code reviewer on Dependabot PRs (#36)
don-petry Apr 1, 2026
7e8b5a5
chore(deps): bump actions/checkout from 4.3.1 to 6.0.2 (#34)
dependabot[bot] Apr 1, 2026
a54d5d3
chore(deps): bump anthropics/claude-code-action from 1.0.80 to 1.0.82…
dependabot[bot] Apr 1, 2026
7db335d
ci: move Dependabot exclusion to step-level in Claude workflow (#37)
don-petry Apr 1, 2026
c1920e8
chore(deps): bump anthropics/claude-code-action from 1.0.80 to 1.0.88…
dependabot[bot] Apr 4, 2026
88fc227
chore: enable Claude issue trigger per org CI standard (#53)
don-petry Apr 5, 2026
2d9dabf
fix: add checkout step to Claude workflow for issue-triggered mode (#54)
don-petry Apr 5, 2026
9d80a00
feat: split Claude workflow into interactive + issue automation jobs …
don-petry Apr 6, 2026
38144b4
feat: switch to org-level reusable Claude Code workflow (#64)
don-petry Apr 6, 2026
8a4cc87
chore: add CODEOWNERS file for code owner review enforcement
github-actions[bot] Apr 6, 2026
02a992e
chore(workflows): adopt centralized stubs from petry-projects/.github…
don-petry Apr 8, 2026
ac01982
chore(workflows): bump claude.yml stub to @v1 and add SOURCE OF TRUTH…
don-petry Apr 8, 2026
5405f87
chore(deps): bump github/codeql-action from 3.35.1 to 4.35.2 (#134)
dependabot[bot] Apr 20, 2026
a0afe06
fix: correct reusable workflow path (remove duplicate .github/) (#140)
don-petry Apr 21, 2026
7945ca7
Revert "fix: correct reusable workflow path (remove duplicate .github…
Apr 21, 2026
0c9080d
ci: add auto-rebase workflow and check_run trigger to claude.yml
don-petry Apr 21, 2026
e400910
retrigger: bump workflows to run checks
claude Apr 28, 2026
f2d588e
chore: add bot accounts to CODEOWNERS for auto-merge support
don-petry May 3, 2026
a59d06a
chore(deps): bump github/codeql-action from 4.35.2 to 4.35.3 (#150)
dependabot[bot] May 4, 2026
f7d2da7
chore: standardize CODEOWNERS on @petry-projects/org-leads (#153)
don-petry May 4, 2026
9cf1aa9
docs(codeowners): tighten comment to match org standard format (#160)
don-petry May 10, 2026
5f5632f
chore(deps): bump github/codeql-action from 4.35.3 to 4.35.4 (#169)
dependabot[bot] May 11, 2026
c713671
fix: move CODEOWNERS to repo root for compliance audit compatibility …
don-petry May 12, 2026
e68f597
chore(dev-lead): remove claude.yml — replaced by dev-lead.yml (#174)
don-petry May 16, 2026
2c1dd68
chore(deps): bump github/codeql-action from 4.35.4 to 4.35.5 (#179)
dependabot[bot] May 19, 2026
9c23248
compliance: confirm allow_auto_merge is enabled (closes #89) (#122)
don-petry May 19, 2026
9d86b2d
compliance: confirm allow_auto_merge is enabled (#103)
don-petry May 19, 2026
d88d904
compliance: confirm allow_auto_merge is enabled (closes #89) (#130)
don-petry May 19, 2026
5d3f4b5
chore: apply manual instructions [skip ci-relay]
donpetry-bot Jun 1, 2026
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: 8 additions & 4 deletions .github/scripts/apply-repo-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
# https://github.com/petry-projects/.github/blob/main/standards/github-settings.md#repository-settings--standard-defaults
#
# Usage:
# GH_TOKEN=<admin-token> bash .github/scripts/apply-repo-settings.sh
# GH_TOKEN=<admin-token> bash .github/scripts/apply-repo-settings.sh [<owner/repo>]
#
# Requirements: gh CLI (https://cli.github.com)
#
# The optional <owner/repo> argument overrides the default target repository.
# The script is safe to run multiple times (idempotent). It applies settings
# using the GitHub REST API and prints the resulting values for verification.

set -euo pipefail

REPO="petry-projects/markets"
REPO="${1:-petry-projects/markets}"

if [ -z "${GH_TOKEN:-}" ]; then
echo "ERROR: GH_TOKEN is required with administration:write scope" >&2
Expand Down Expand Up @@ -43,12 +46,13 @@ gh api -X PATCH "repos/$REPO" \
has_wiki,
squash_merge_commit_title,
squash_merge_commit_message
}' | jq .
}'

echo "Disabling CodeRabbit (347564) and Claude (1236702) check-suite auto-triggers ..."

gh api -X PATCH "repos/$REPO/check-suites/preferences" \
--input - <<'JSON' | jq '.preferences.auto_trigger_checks'
--input - \
--jq '.preferences.auto_trigger_checks' <<'JSON'
{"auto_trigger_checks": [{"app_id": 347564, "setting": false}, {"app_id": 1236702, "setting": false}]}
JSON

Expand Down
9 changes: 9 additions & 0 deletions .github/scripts/tests/apply-repo-settings.bats
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ SCRIPT="$(cd "$(dirname "$BATS_TEST_FILENAME")/.." && pwd)/apply-repo-settings.s
@test "script targets petry-projects/markets repo" {
grep -q 'petry-projects/markets' "$SCRIPT"
}

@test "REPO is configurable via argument with petry-projects/markets as default" {
grep -qE 'REPO="\$\{1:-petry-projects/markets\}"' "$SCRIPT"
}

@test "script does not pipe to external jq" {
# All JSON processing must use gh api --jq, never an external jq binary
! grep -qE '\|\s*jq\b' "$SCRIPT"
}
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CodeQL

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '17 4 * * 1'

permissions: {}

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
strategy:
fail-fast: false
matrix:
language: ['actions']
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Initialize CodeQL
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v3
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v3
with:
category: '/language:${{ matrix.language }}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ build/
.DS_Store
Thumbs.db
.dev-lead/
.dev-lead/
18 changes: 18 additions & 0 deletions Agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
>
> For detailed Markets-specific application of each principle (bounded contexts, aggregate roots, repository interfaces, domain events, typed IDs, dependency direction, test-by-layer guidance, coverage thresholds, and CI commands), see `_bmad-output/planning-artifacts/coding-standards.md`.


## Project Overview

**markets** is a real-time coordination platform for local farmers markets. Mobile-first (iOS/Android) with web via React Native for Web. Three user roles: Customer, Vendor, Market Manager.
Expand Down Expand Up @@ -152,12 +153,29 @@ theme: {

## Test-Driven Development

<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> cd47377 (feat: add Epic 1 sprint planning, coding standards, and test strategy (#22))
TDD rules are defined in the [org AGENTS.md](https://github.com/petry-projects/.github/blob/main/AGENTS.md). Markets-specific test framework configuration, mocking strategy, coverage thresholds, and per-layer test guidance are in `_bmad-output/planning-artifacts/coding-standards.md`.

- **Go backend:** `*_test.go` co-located with source; `//go:build integration` for integration tests
- **React Native frontend:** `*.test.tsx` co-located or `__tests__/`; Jest + React Native Testing Library
- **GraphQL resolvers:** Integration tests for the full resolver → database → response path
- **Acceptance criteria drive tests:** Each story's Given/When/Then maps directly to test cases
<<<<<<< HEAD
=======
- IMPORTANT: All development MUST follow test-driven development (TDD) practices
- Write failing tests BEFORE writing implementation code (Red → Green → Refactor)
- **Go backend:** Write Go test files (`_test.go`) co-located with source files before implementing resolvers, middleware, or services. Use `go test ./...` to verify.
- **React Native frontend:** Write tests using Jest + React Native Testing Library before implementing components and hooks. Test files co-located as `*.test.tsx` or in `__tests__/` directories.
- **GraphQL resolvers:** Write integration tests (tagged `//go:build integration`) that test the full resolver → database → response path
- **Acceptance criteria drive tests:** Each story's Given/When/Then acceptance criteria should map directly to test cases
- Every PR must include tests that cover the new or changed functionality
- Do not merge code without passing tests
>>>>>>> 58c45f4 (chore: add planning artifacts, UX screen prototypes, and Claude config (#6))
=======
>>>>>>> cd47377 (feat: add Epic 1 sprint planning, coding standards, and test strategy (#22))

## Event-Driven Architecture

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ For commercial licensing inquiries, contact [licensing@djpetry.com](mailto:licen

### Contributing

By contributing to this project, you agree to the [Contributor License Agreement](CLA.md).
By contributing to this project, you agree to the [Contributor License Agreement](CLA.md).
Loading