-
Notifications
You must be signed in to change notification settings - Fork 0
Update script for latest q cli releases #2
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
base: main
Are you sure you want to change the base?
Conversation
Updated command flags for secure and automated operation
|
Resolves #1 |
|
To provide feedback, navigate to the Files changed tab and leave comments on the proposed code changes. Choose Start review for each comment, and then choose Request changes, and I'll propose revised changes. |
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
🔴 I'm not able to complete the code review at this moment because of an internal service error. Please try again later. |
jsamuel1
left a comment
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.
Can you please use variables for encapsulation of both the tools to trust, and the main prompt string passed to q chat?
git-qcommit
Outdated
| Include what was changed and why. Don't include any markdown formatting or code \ | ||
| blocks.\n\nPrompt: $PROMPT" | q chat -a \ | ||
| --no-interactive \ | ||
| --trust-tools=fs_read,fs_write,execute_bash,internal_command,thinking,\ |
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.
Please extract out to variables for both the trust-tools list and the initial prompt that is passed to q chat.
|
✅ I updated this pull request based on the feedback. To provide feedback, navigate to the Files changed tab and leave comments on the proposed code changes. Choose Start review for each comment, and then choose Request changes, and I'll propose revised changes. |
Improves code maintainability by moving hardcoded values into dedicated variables. Separates the trusted tools list and chat prompt template into clearly defined constants.
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
🔴 I'm not able to complete the code review at this moment because of an internal service error. Please try again later. |
git-qcommit
Outdated
| INITIAL_PROMPT="Based on the staged git changes, generate a descriptive git \ | ||
| commit message and write it to $TEMP_FILE. Feel free to use appropriate \ | ||
| gitmoji/emoji icons. Include what was changed and why. Don't include any \ | ||
| markdown formatting or code blocks. |
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.
It looks like we are missing \ on this line and the following line.
|
✅ I updated this pull request based on the feedback. To provide feedback, navigate to the Files changed tab and leave comments on the proposed code changes. Choose Start review for each comment, and then choose Request changes, and I'll propose revised changes. |
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
🔴 I'm not able to complete the code review at this moment because of an internal service error. Please try again later. |
Adds command-line options and trust settings for non-interactive git commit message generation. This change enhances the git-qcommit functionality by explicitly specifying required tool permissions and enabling automation through non-interactive mode.