-
Notifications
You must be signed in to change notification settings - Fork 239
Explicitly print full path of files edited by sncast account
#3376
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f565572
to
135dbf0
Compare
792f241
to
0610f6f
Compare
d92bf59
to
9a1a813
Compare
0610f6f
to
be865ae
Compare
92d0410
to
342f0b7
Compare
cptartur
reviewed
May 20, 2025
342f0b7
to
927c503
Compare
cptartur
approved these changes
May 20, 2025
ddoktorski
requested changes
May 20, 2025
github-merge-queue bot
pushed a commit
that referenced
this pull request
May 21, 2025
**Stack**: - #3376 - #3375 ⬅⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do not merge manually using the UI - doing so may have unexpected results.*
927c503
to
9709ec6
Compare
5 tasks
da4725f
to
4afe19e
Compare
4afe19e
to
f0e1a23
Compare
Closes #3227 commit-id:0f91f073
f0e1a23
to
5c0e053
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.
Pull Request Overview
This PR updates the output messages for profile creation commands by explicitly printing the full, canonicalized path of the configuration file. The changes include:
- Updating test assertions in account import and create tests to verify the full path in stdout.
- Introducing a new helper function, generate_add_profile_message, to consolidate profile message generation.
- Refactoring account commands in both import and create modules to use the new helper function.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
crates/sncast/tests/e2e/account/import.rs | Updated test to assert stdout contains the full canonical path |
crates/sncast/tests/e2e/account/create.rs | Updated test to assert stdout contains the full canonical path |
crates/sncast/src/starknet_commands/account/mod.rs | Added generate_add_profile_message helper for message creation |
crates/sncast/src/starknet_commands/account/import.rs | Refactored to use the new helper function instead of direct configuration update |
crates/sncast/src/starknet_commands/account/create.rs | Refactored to use the new helper function for generating profile messages |
ddoktorski
approved these changes
May 22, 2025
cptartur
added a commit
that referenced
this pull request
May 26, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #3227