mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix: init shows wrong status when tls is enabled and adding app config (#1006)
* 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
This commit is contained in:
1 parent
be01ee0747
commit
bf093ce0f4
7 files changed
+180
-35
No files matched your search
@@ -5,16 +5,22 @@ on:
|
||||
types: [opened, edited, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
pull-requests: read
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint-pr-title:
|
||||
name: PR title follows Conventional Commits
|
||||
lint-commits:
|
||||
name: Commits follow Conventional Commits
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Validate PR title
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Validate commit messages
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
run: |
|
||||
# Conventional Commits pattern:
|
||||
# <type>[optional scope]: <description>
|
||||
@@ -25,27 +31,33 @@ jobs:
|
||||
# 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/
|
||||
# https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular
|
||||
|
||||
PATTERN='^(feat|fix|perf|revert|docs|style|chore|refactor|test|build|ci)(\([a-zA-Z0-9_\-\.]+\))?!?: .{1,}'
|
||||
PATTERN='^(feat|fix|perf|revert|docs|style|chore|refactor|test|build|ci)(\([-a-zA-Z0-9_.,]+\))?!?: .{1,}'
|
||||
FAILED=0
|
||||
|
||||
if echo "$PR_TITLE" | grep -qE "$PATTERN"; then
|
||||
echo "PR title is valid: $PR_TITLE"
|
||||
else
|
||||
echo "::error::PR title does not follow Conventional Commits."
|
||||
echo ""
|
||||
echo " Got: $PR_TITLE"
|
||||
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/"
|
||||
exit 1
|
||||
fi
|
||||
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
|
||||
Reference in new issue
Block a user