Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
# Observability
# -----------------------------------------------------------------------------
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
# OTEL_SERVICE_NAME=<PROJECT_NAME>
# OTEL_SERVICE_NAME=stoopid-commons
78 changes: 78 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Bug Report
description: Report a bug or issue
title: "[Bug]: "
type: "Bug"
projects:
- "conversadocs/21"
body:
- type: markdown
attributes:
value: |
## Description

- type: textarea
id: description
attributes:
label: Description
description: Describe the bug in detail.
validations:
required: true

- type: markdown
attributes:
value: |
## Steps to Reproduce

- type: textarea
id: steps
attributes:
label: Steps to Reproduce
description: Provide the steps needed to reproduce the bug.
placeholder: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
validations:
required: true

- type: markdown
attributes:
value: |
## Expected Behavior

- type: textarea
id: expected_behavior
attributes:
label: Expected Behavior
description: What should happen instead?
validations:
required: true

- type: markdown
attributes:
value: |
## Screenshots

- type: input
id: screenshots
attributes:
label: Screenshots
description: You can upload screenshots by dragging and dropping them into this field.
placeholder: "Attach screenshots or videos"
validations:
required: false

- type: markdown
attributes:
value: |
## Additional Context

- type: textarea
id: context
attributes:
label: Additional Context
description: Any other information that might be helpful.
placeholder: "Add additional context here..."
validations:
required: false
29 changes: 1 addition & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,11 @@ permissions:
contents: read

jobs:
# ===========================================================================
# Template guard — short-circuits the entire workflow if .template-repo
# marker file exists. Delete .template-repo to enable real CI runs.
# ===========================================================================
guard:
name: Template guard
runs-on: ubuntu-latest
outputs:
is_template: ${{ steps.check.outputs.is_template }}
steps:
- uses: actions/checkout@v6
- id: check
run: |
if [ -f .template-repo ]; then
echo "::notice::This is the unconfigured template repo. Skipping CI."
echo "is_template=true" >> "$GITHUB_OUTPUT"
else
echo "is_template=false" >> "$GITHUB_OUTPUT"
fi

# ===========================================================================
# Path filter — determines which language jobs need to run
# ===========================================================================
changes:
name: Detect changes
needs: guard
if: needs.guard.outputs.is_template != 'true'
runs-on: ubuntu-latest
outputs:
python: ${{ steps.filter.outputs.python }}
Expand Down Expand Up @@ -279,16 +257,11 @@ jobs:
ci-passed:
name: CI passed
runs-on: ubuntu-latest
needs: [ guard, changes, python, typescript, rust, terraform, docker ]
needs: [ changes, python, typescript, rust, terraform, docker ]
if: always()
steps:
- name: Verify all required jobs succeeded or were skipped
run: |
# If the template guard fired, allow the workflow to pass.
if [ "${{ needs.guard.outputs.is_template }}" = "true" ]; then
echo "Template guard active. CI skipped intentionally."
exit 0
fi
# Any required job that ran must have succeeded.
# Skipped jobs (because their language wasn't changed) are fine.
results='${{ toJSON(needs) }}'
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,8 @@ permissions:
contents: read

jobs:
# ===========================================================================
# Template guard — short-circuits the entire workflow if .template-repo
# marker file exists. Delete .template-repo to enable real CI runs.
# ===========================================================================
guard:
name: Template guard
runs-on: ubuntu-latest
outputs:
is_template: ${{ steps.check.outputs.is_template }}
steps:
- uses: actions/checkout@v6
- id: check
run: |
if [ -f .template-repo ]; then
echo "::notice::This is the unconfigured template repo. Skipping CodeQL."
echo "is_template=true" >> "$GITHUB_OUTPUT"
else
echo "is_template=false" >> "$GITHUB_OUTPUT"
fi

analyze:
name: Analyze (${{ matrix.language }})
needs: guard
if: needs.guard.outputs.is_template != 'true'
runs-on: ubuntu-latest

permissions:
Expand Down
28 changes: 1 addition & 27 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,11 @@ env:
COVERAGE_THRESHOLD: "80"

jobs:
# ===========================================================================
# Template guard — short-circuits the entire workflow if .template-repo
# marker file exists. Delete .template-repo to enable real CI runs.
# ===========================================================================
guard:
name: Template guard
runs-on: ubuntu-latest
outputs:
is_template: ${{ steps.check.outputs.is_template }}
steps:
- uses: actions/checkout@v6
- id: check
run: |
if [ -f .template-repo ]; then
echo "::notice::This is the unconfigured template repo. Skipping coverage."
echo "is_template=true" >> "$GITHUB_OUTPUT"
else
echo "is_template=false" >> "$GITHUB_OUTPUT"
fi

# ===========================================================================
# Path filter — same approach as ci.yml
# ===========================================================================
changes:
name: Detect changes
needs: guard
if: needs.guard.outputs.is_template != 'true'
runs-on: ubuntu-latest
outputs:
python: ${{ steps.filter.outputs.python }}
Expand Down Expand Up @@ -274,15 +252,11 @@ jobs:
coverage-passed:
name: Coverage passed
runs-on: ubuntu-latest
needs: [ guard, changes, python, typescript, rust ]
needs: [ changes, python, typescript, rust ]
if: always()
steps:
- name: Verify all coverage jobs succeeded or were skipped
run: |
if [ "${{ needs.guard.outputs.is_template }}" = "true" ]; then
echo "Template guard active. Coverage skipped intentionally."
exit 0
fi
results='${{ toJSON(needs) }}'
echo "Job results:"
echo "$results" | jq .
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,11 @@ env:
PLATFORMS: linux/amd64,linux/arm64

jobs:
# ===========================================================================
# Template guard — short-circuits the entire workflow if .template-repo
# marker file exists. Delete .template-repo to enable real Docker builds.
# ===========================================================================
guard:
name: Template guard
runs-on: ubuntu-latest
outputs:
is_template: ${{ steps.check.outputs.is_template }}
steps:
- uses: actions/checkout@v6
- id: check
run: |
if [ -f .template-repo ]; then
echo "::notice::This is the unconfigured template repo. Skipping Docker build."
echo "is_template=true" >> "$GITHUB_OUTPUT"
else
echo "is_template=false" >> "$GITHUB_OUTPUT"
fi

# ===========================================================================
# Build (and conditionally push) the image
# ===========================================================================
build:
name: Build & Push
needs: guard
if: needs.guard.outputs.is_template != 'true'
runs-on: ubuntu-latest

permissions:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,12 @@ permissions:
contents: read

jobs:
# ===========================================================================
# Template guard — short-circuits the entire workflow if .template-repo
# marker file exists. Delete .template-repo to enable real release runs.
# ===========================================================================
guard:
name: Template guard
runs-on: ubuntu-latest
outputs:
is_template: ${{ steps.check.outputs.is_template }}
steps:
- uses: actions/checkout@v6
- id: check
run: |
if [ -f .template-repo ]; then
echo "::notice::This is the unconfigured template repo. Skipping release."
echo "is_template=true" >> "$GITHUB_OUTPUT"
else
echo "is_template=false" >> "$GITHUB_OUTPUT"
fi

# ===========================================================================
# release-please: opens/updates a release PR based on Conventional Commits.
# When that PR is merged, this job creates a tag and GitHub release.
# ===========================================================================
release-please:
name: Release Please
needs: guard
if: needs.guard.outputs.is_template != 'true'
runs-on: ubuntu-latest

permissions:
Expand Down
5 changes: 4 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
".": "0.0.0"
"packages/python/stoopid-logging": "0.0.0",
"packages/ts/stoopid-logging": "0.0.0",
"packages/rust/stoopid-logging": "0.0.0",
"charts/stoopid-service-base": "0.0.0"
}
16 changes: 0 additions & 16 deletions .template-repo

This file was deleted.

Loading
Loading