release: promote dev to main for v2.0.0 (#1426)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Lx-204 <15377891490@163.com> Co-authored-by: AlexDev_ <56083016+alexdev03@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nikhil Nair <32665919+nikhilnair31@users.noreply.github.com> Co-authored-by: marciodps <95321123+marciodps@users.noreply.github.com> Co-authored-by: ThomasCrund <39323104+ThomasCrund@users.noreply.github.com>
This commit is contained in:
315 files changed
+65173
-7909
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Refresh the vendored gateway contract snapshot from hermes-agent (#1374).
|
||||
# Usage: scripts/sync-gateway-contract.sh [ref] (default: main)
|
||||
set -euo pipefail
|
||||
|
||||
REF="${1:-main}"
|
||||
REPO="NousResearch/hermes-agent"
|
||||
CONTRACT_PATH="apps/shared/src/gateway-contract.openrpc.json"
|
||||
DEST="$(cd "$(dirname "$0")/.." && pwd)/app/src/test/resources/gateway-contract"
|
||||
|
||||
SHA="$(gh api "repos/$REPO/commits/$REF" --jq .sha)"
|
||||
DATE="$(gh api "repos/$REPO/commits/$SHA" --jq .commit.committer.date)"
|
||||
|
||||
mkdir -p "$DEST"
|
||||
gh api -H "Accept: application/vnd.github.raw" "repos/$REPO/contents/$CONTRACT_PATH?ref=$SHA" > "$DEST/openrpc.json"
|
||||
jq -e '.methods | length > 0' "$DEST/openrpc.json" > /dev/null
|
||||
|
||||
printf 'repo: %s\nref: %s\nsha: %s\ndate: %s\npath: %s\n' "$REPO" "$REF" "$SHA" "${DATE%%T*}" "$CONTRACT_PATH" > "$DEST/SOURCE"
|
||||
echo "Vendored $REPO@$SHA. Run ./gradlew testDebugUnitTest --tests '*GatewayContract*' and review the diff."
|
||||
Reference in new issue
Block a user