Skip to content

Commit

Permalink
chore: synced file(s) with honestbank/.github
Browse files Browse the repository at this point in the history
  • Loading branch information
honestbank-bot committed Nov 6, 2024
1 parent a72febf commit 06a83a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default_install_hook_types: [ pre-commit, commit-msg ]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
stages: [commit]
Expand All @@ -18,7 +18,7 @@ repos:
stages: [commit]
args: ["--allow-missing-credentials"]
- repo: https://github.com/golangci/golangci-lint
rev: v1.60.3
rev: v1.61.0
hooks:
- id: golangci-lint
stages: [commit]
Expand All @@ -29,7 +29,7 @@ repos:
- id: go-imports
stages: [commit]
- repo: https://github.com/gitguardian/ggshield
rev: v1.31.0
rev: v1.32.1
hooks:
- id: ggshield
language: python
Expand Down
11 changes: 11 additions & 0 deletions catalog-info.generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ fi
if [[ ${#SERVICE_NAMES[@]} == 0 || "$SERVICE_NAMES" == "null" ]]; then
SERVICE_NAMES=(${(s: :)$(jq -r ".manual_service_names[]" $META_DATA_FILE)})
fi
if [[ ${#SERVICE_NAMES[@]} == 0 || "$SERVICE_NAMES" == "null" ]]; then
SERVICE_NAMES=($(jq --arg p "$REPO_NAME" -r 'to_entries | .[] | .value as $version | ($version | split(".")[0] | tonumber) as $major |
if $major >= 2 then
"\($p)-\(.key)-v\($major)"
else
"\($p)-\(.key)"
end' .release-please-manifest.json))
SERVICE_NAMES+=($REPO_NAME)
fi
if [[ ${#SERVICE_NAMES[@]} == 0 || "$SERVICE_NAMES" == "null" ]]; then
SERVICE_NAMES=($REPO_NAME)
fi
Expand Down Expand Up @@ -121,6 +130,8 @@ for SERVICE in $SERVICE_NAMES; do
SERVICE_RUNBOOK=$(jq -r ".\"$SERVICE\".runbook" $META_DATA_FILE)
# Default dependencies
DEPENDENCIES=(${(s: :)$(jq -r ".manual_dependencies[]" $META_DATA_FILE)})
# Service specific dependencies
DEPENDENCIES+=(${(s: :)$(jq -r ".\"$SERVICE\".manual_dependencies[]?" $META_DATA_FILE)})
TOPICS=(${(s: :)$(grep Topic "config/config.go" | sed -n 's/.*default:"\([^"]*\)".*/\1/p')})
for topic in $TOPICS; do
DEPENDENCIES+=("resource:confluent-$topic")
Expand Down

0 comments on commit 06a83a6

Please sign in to comment.