Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

WHAT

  • Update datil-sdk/.github/workflows/release.yml
  • Update datil-sdk/.github/workflows/naga-health-check.yml

@Copilot Copilot AI review requested due to automatic review settings October 10, 2025 01:35
@Ansonhkg Ansonhkg merged commit 578515c into master Oct 10, 2025
2 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates CI workflows to improve release process reliability and health check configuration. The changes ensure the release workflow runs on the correct branch tip and configures the health check to use the js-sdk repository with the naga branch.

  • Enhanced release workflow to fetch and verify the correct branch tip SHA
  • Updated health check workflow to checkout from LIT-Protocol/js-sdk repository using naga branch
  • Added debug output steps to both workflows for better troubleshooting

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/release.yml Added debug output and improved branch tip resolution with more robust git fetch
.github/workflows/naga-health-check.yml Changed to checkout js-sdk repository on naga branch and added debug context

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

git fetch origin "$BRANCH"
echo "sha=$(git rev-parse \"origin/$BRANCH\")" >> "$GITHUB_OUTPUT"
git fetch --no-tags --prune --depth=1 origin "$BRANCH"
TIP_SHA=$(git rev-parse --verify "origin/$BRANCH^{commit}")
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The ^{commit} suffix in git rev-parse --verify \"origin/$BRANCH^{commit}\" may be unnecessary since git rev-parse on a branch reference already resolves to the commit SHA. Consider simplifying to git rev-parse --verify \"origin/$BRANCH\" for better readability.

Suggested change
TIP_SHA=$(git rev-parse --verify "origin/$BRANCH^{commit}")
TIP_SHA=$(git rev-parse --verify "origin/$BRANCH")

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant