mirror of
https://github.com/floci-io/floci.git
synced 2026-12-05 02:58:00 -05:00
* fix(lifecycle,appconfig): TLS startup readiness and listHostedConfigurationVersions
Fixes two independent issues:
is enabled, Quarkus binds the HTTP backend on port 4510 and the HttpServerStart
event fires with that port, so markStartCompleted/markReadyCompleted were never
called and /_floci/init always returned ready=false. Fix: derive the expected
port from config.tls().enabled() at observer time.
/applications/{appId}/configurationprofiles/{profileId}/hostedconfigurationversions.
Unmatched requests fell through to S3Controller's catch-all and returned a
NoSuchBucket XML error. Fix: add HostedConfigurationVersionSummary model,
listHostedConfigurationVersions service method, and the missing GET route.
* fix(commit-checks): fix action that check commit format
64 lines
2.2 KiB
YAML
64 lines
2.2 KiB
YAML
name: Conventional Commits
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint-commits:
|
|
name: Commits follow Conventional Commits
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Validate commit messages
|
|
env:
|
|
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
run: |
|
|
# Conventional Commits pattern:
|
|
# <type>[optional scope]: <description>
|
|
#
|
|
# Types recognised by semantic-release (commit-analyzer defaults):
|
|
# feat, fix, perf, revert, docs, style, chore, refactor, test, build, ci
|
|
#
|
|
# Breaking changes are signalled by appending ! before the colon:
|
|
# feat!: or feat(scope)!:
|
|
#
|
|
# Merge commits are skipped automatically via --no-merges.
|
|
#
|
|
# References:
|
|
# https://www.conventionalcommits.org/en/v1.0.0/
|
|
|
|
PATTERN='^(feat|fix|perf|revert|docs|style|chore|refactor|test|build|ci)(\([-a-zA-Z0-9_.,]+\))?!?: .{1,}'
|
|
FAILED=0
|
|
|
|
while IFS= read -r msg; do
|
|
if echo "$msg" | grep -qE "$PATTERN"; then
|
|
echo "ok: $msg"
|
|
else
|
|
echo "::error::Commit does not follow Conventional Commits: $msg"
|
|
echo ""
|
|
echo " Got: $msg"
|
|
echo ""
|
|
echo " Expected format: <type>[optional scope]: <description>"
|
|
echo " Examples:"
|
|
echo " feat(dynamodb): add PartiQL ExecuteStatement support"
|
|
echo " fix(s3): make us-east-1 bucket creation idempotent"
|
|
echo " chore: release 1.5.16"
|
|
echo " feat!: remove legacy endpoint"
|
|
echo ""
|
|
echo " Valid types: feat, fix, perf, revert, docs, style, chore, refactor, test, build, ci"
|
|
echo " See: https://www.conventionalcommits.org/en/v1.0.0/"
|
|
FAILED=1
|
|
fi
|
|
done < <(git log --no-merges --format="%s" "$BASE_SHA".."$HEAD_SHA")
|
|
|
|
exit $FAILED
|