Skip to content

Conversation

@amazon-q-developer
Copy link

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.

Updated command flags for secure and automated operation
@amazon-q-developer
Copy link
Author

Resolves #1

@amazon-q-developer
Copy link
Author

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.

@amazon-q-developer
Copy link
Author

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

@amazon-q-developer
Copy link
Author

🔴 I'm not able to complete the code review at this moment because of an internal service error. Please try again later.

Copy link
Owner

@jsamuel1 jsamuel1 left a 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?

@jsamuel1 jsamuel1 added the Amazon Q development agent Generate new features or iterate code based on issue descriptions and comments. label May 10, 2025
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,\
Copy link
Owner

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.

@amazon-q-developer
Copy link
Author

amazon-q-developer bot commented May 10, 2025

✅ 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.
@amazon-q-developer
Copy link
Author

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

@amazon-q-developer
Copy link
Author

🔴 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.
Copy link
Owner

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.

@amazon-q-developer
Copy link
Author

amazon-q-developer bot commented May 10, 2025

✅ 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.

@amazon-q-developer
Copy link
Author

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

@amazon-q-developer
Copy link
Author

🔴 I'm not able to complete the code review at this moment because of an internal service error. Please try again later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Amazon Q development agent Generate new features or iterate code based on issue descriptions and comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants