-
Notifications
You must be signed in to change notification settings - Fork 4
Add action to update vscode extension with latest version #394
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.
Hey @emmawillis - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Use inputs.latest_tag instead of $LATEST_TAG (link)
Here's what I looked at during the review
- 🔴 General issues: 1 blocking issue, 1 other issue
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
working-directory: vscode-extension | ||
env: | ||
GH_TOKEN: ${{ inputs.access_token }} | ||
run: gh pr create --repo DevCycleHQ/vscode-extension --base main --head "$BRANCH_NAME" --title "Update CLI version to $LATEST_TAG" --body "This PR was automatically created by the DevCycle CLI release workflow." |
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.
issue (bug_risk): Use inputs.latest_tag instead of $LATEST_TAG
The variable $LATEST_TAG
is not defined in this context. It should be replaced with ${{ inputs.latest_tag }}
to ensure the correct value is used.
- name: Push code to extension repo | ||
shell: bash | ||
working-directory: vscode-extension | ||
run: git push --set-upstream origin "$BRANCH_NAME" |
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.
suggestion: Consider adding error handling for git push
Adding error handling for the git push
command can help catch and handle any issues that might occur during the push operation, ensuring the workflow does not fail silently.
run: git push --set-upstream origin "$BRANCH_NAME" | |
run: | | |
set -e | |
git push --set-upstream origin "$BRANCH_NAME" || { | |
echo "Error: Failed to push code to the repository." | |
exit 1 | |
} |
bf18c6f
to
a401a1d
Compare
1f0554c
to
03043c8
Compare
03043c8
to
471eed0
Compare
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.
We have skipped reviewing this pull request. It looks like we've already reviewed this pull request.
the extension calls
cliUtils.loadCli()
when it activates, which downloads the CLI based on the version defined inconstants.ts
, so i think it should be sufficient just to update the version defined thereI set this to only run if the version bump is minor or patch
tested: DevCycleHQ/vscode-extension#291