-
Notifications
You must be signed in to change notification settings - Fork 8
fix: Improve the process of fetching the release URL. #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment @cursor review
or bugbot run
to trigger another review on this PR
url, | ||
publishedAt: release.published_at | ||
} | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: URL Assignment Fails for Unmatched Patterns
It looks like the url
variable can end up undefined
if rawUrl
doesn't match either the refs/heads/
or release/
patterns. The new conditional assignment means url
isn't always given a value, unlike the previous logic. This creates release objects with an undefined
URL, which will likely cause problems when fetching markdown content.
* chore: replace "l2scan" with "Xangle" (#242) * chore: replace "l2scan" with "Xangle" * chore: modify faucet description & xangle png --------- Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Daria/cli ref clean (#208) * create clean branch w new color scheme * overview * rm duplicate overview * rm guide --------- Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * fixed borken links * fix: optimize api response css & faucet typo * re-draw bsn architecture diagrams in engineering diagram styles (#216) * Jenks/re org nav (#244) * initial structure * small fixes to developer docs * update developer.mdx & populated stakers.mdx pagfe * fixed broken links * Update query.mdx * removed community pool proposal type * Update docusaurus.config.js * initial structure * fix: adjust style & format baby staking guide (#196) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * updated cosmos & op stack chain .mdxs (#200) * Merge remote-tracking branch 'origin/main' into jenks/re-org-nav --------- Co-authored-by: Kevin <33023258+kkkk666@users.noreply.github.com> Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * corrected duplication issue with to Nav * fix: Restore the image link * chore: Update-Unbonding-Time (#249) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Added commands to babylon_usage_guide.mdx (#246) * Update docs/stakers/btc_stakers/native_staking/unbonding_via_cli.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * removed global_config.mdx * fixed broken links * fix: fix broken link (#254) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Update docs/stakers/btc_stakers/native_staking/unbonding_via_web.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * added redirect plugin * upload whitepaper (#260) Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * add btc vault whitepaper (#264) Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * chore: update Bitgo Custody Services Staking Status (#262) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * chore: add legal notice (#266) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Update docs/guides/overview/babylon_genesis/baby_tokenomics.mdx Fix typos. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: Improve the process of fetching the release URL. (#271) * fix: Improve the process of fetching the release URL. * fix: Improve the process of fetching the release URL. --------- Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * chore: update-staking-image (#267) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * add validator setup guide (#217) * add validator setup guide * change title --------- Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * feat: simple-finality-provider guide & Docker Deployment Guide (#253) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Update docs/stakers/btc_stakers/native_staking/unbonding_via_web.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Revert "Update docs/stakers/btc_stakers/native_staking/unbonding_via_web.mdx" This reverts commit 065a61f. * fix: Adjust the document format --------- Co-authored-by: Kevin <33023258+kkkk666@users.noreply.github.com> Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> Co-authored-by: Daria <dariaagad@gmail.com> Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> Co-authored-by: Sam <48280694+itrocket-team@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: replace "l2scan" with "Xangle" (#242) * chore: replace "l2scan" with "Xangle" * chore: modify faucet description & xangle png --------- Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Daria/cli ref clean (#208) * create clean branch w new color scheme * overview * rm duplicate overview * rm guide --------- Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * fixed borken links * fix: optimize api response css & faucet typo * re-draw bsn architecture diagrams in engineering diagram styles (#216) * Jenks/re org nav (#244) * initial structure * small fixes to developer docs * update developer.mdx & populated stakers.mdx pagfe * fixed broken links * Update query.mdx * removed community pool proposal type * Update docusaurus.config.js * initial structure * fix: adjust style & format baby staking guide (#196) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * updated cosmos & op stack chain .mdxs (#200) * Merge remote-tracking branch 'origin/main' into jenks/re-org-nav --------- Co-authored-by: Kevin <33023258+kkkk666@users.noreply.github.com> Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * corrected duplication issue with to Nav * fix: Restore the image link * chore: Update-Unbonding-Time (#249) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Added commands to babylon_usage_guide.mdx (#246) * Update docs/stakers/btc_stakers/native_staking/unbonding_via_cli.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * removed global_config.mdx * fixed broken links * fix: fix broken link (#254) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Update docs/stakers/btc_stakers/native_staking/unbonding_via_web.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * added redirect plugin * upload whitepaper (#260) Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * add btc vault whitepaper (#264) Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * chore: update Bitgo Custody Services Staking Status (#262) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * chore: add legal notice (#266) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Update docs/guides/overview/babylon_genesis/baby_tokenomics.mdx Fix typos. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: Improve the process of fetching the release URL. (#271) * fix: Improve the process of fetching the release URL. * fix: Improve the process of fetching the release URL. --------- Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * chore: update-staking-image (#267) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * add validator setup guide (#217) * add validator setup guide * change title --------- Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> * feat: simple-finality-provider guide & Docker Deployment Guide (#253) Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Update docs/stakers/btc_stakers/native_staking/unbonding_via_web.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Revert "Update docs/stakers/btc_stakers/native_staking/unbonding_via_web.mdx" This reverts commit 065a61f. * fix: Adjust the document format * Update bsns.mdx (#272) * Update bsns.mdx * fix: broken image link --------- Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> * Update src/components/RemoteMD.jsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update docs/operators/finality_providers/finality_provider_simple_guide.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Kevin <33023258+kkkk666@users.noreply.github.com> Co-authored-by: kevin <liukangtian@liukangtiandeMacBook-Pro.local> Co-authored-by: Daria <dariaagad@gmail.com> Co-authored-by: Daria Agadzhanova <dariaagadzhanova@Darias-MacBook-Air.local> Co-authored-by: Sam <48280694+itrocket-team@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Improve the process of fetching the release URL.