Skip to content

Commit bc48801

Browse files
author
Kostas Demiris
committed
test: silly network naming
1 parent 989104d commit bc48801

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

scripts/generate-pr-body.sh

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@
55

66
set -e
77

8+
# Use environment variables directly instead of parameters
9+
NETWORK_NAME="${NETWORK_NAME:-SAMPLE-VALUE}"
10+
MINTSCAN_CHAIN_ID="${MINTSCAN_CHAIN_ID:-SAMPLE-VALUE}"
11+
812
# Function to generate Mintscan URLs
913
generate_mintscan_block_url() {
1014
local block_height="$1"
11-
local chain_id="${MINTSCAN_CHAIN_ID:-SAMPLE-VALUE}"
15+
local chain_id="$MINTSCAN_CHAIN_ID"
1216
echo "https://www.mintscan.io/${chain_id}/blocks/${block_height}"
1317
}
1418

1519

1620
generate_mintscan_proposal_url() {
1721
local proposal_id="$1"
18-
local chain_id="${MINTSCAN_CHAIN_ID:-SAMPLE-VALUE}"
22+
local chain_id="$MINTSCAN_CHAIN_ID"
1923
echo "https://www.mintscan.io/${chain_id}/proposals/${proposal_id}"
2024
}
2125

@@ -37,15 +41,6 @@ LINUX_ARM64_CHECKSUM="${15}"
3741
RUN_NUMBER="${16}"
3842
COMMIT_SHA="${17}"
3943

40-
# Use environment variables directly instead of parameters
41-
NETWORK_NAME="${NETWORK_NAME:-SAMPLE-VALUE}"
42-
MINTSCAN_CHAIN_ID="${MINTSCAN_CHAIN_ID:-SAMPLE-VALUE}"
43-
44-
echo "DEBUG: Total parameters received: $#"
45-
echo "DEBUG: All parameters: $@"
46-
echo "DEBUG: NETWORK_NAME: '$NETWORK_NAME'"
47-
echo "DEBUG: MINTSCAN_CHAIN_ID: '$MINTSCAN_CHAIN_ID'"
48-
4944
# Extract proposal number from proposal file path (e.g., "proposals/038-upgrade-v22.json" -> "038")
5045
PROPOSAL_NUMBER=$(basename "$PROPOSAL_FILE" | cut -d'-' -f1)
5146

@@ -57,12 +52,12 @@ MINTSCAN_PROPOSAL_URL=$(generate_mintscan_proposal_url "$PROPOSAL_NUMBER")
5752
cat > pr_body.md << EOF
5853
# 🚀 Xion $RELEASE_TAG Upgrade
5954
60-
This pull request implements the upgrade to **Xion $RELEASE_TAG** for the Xion ${NETWORK_NAME:-SAMPLE-VALUE}.
55+
This pull request implements the upgrade to **Xion $RELEASE_TAG** for the Xion $NETWORK_NAME.
6156
6257
## 📋 Overview
6358
6459
- **Upgrade Height**: [$HEIGHT]($MINTSCAN_BLOCK_URL) (estimated: ~2 days from current block)
65-
- **Chain ID**: \`${MINTSCAN_CHAIN_ID:-SAMPLE-VALUE}\` (in-place migration)
60+
- **Chain ID**: \`$MINTSCAN_CHAIN_ID\` (in-place migration)
6661
- **Release**: https://github.com/burnt-labs/xion/releases/tag/$RELEASE_TAG
6762
- **Proposal**: [$PROPOSAL_NUMBER]($MINTSCAN_PROPOSAL_URL) (\`$PROPOSAL_FILE\`)
6863
- **Governance Deposit**: $DEPOSIT

0 commit comments

Comments
 (0)