Skip to content
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

feat(confirmation): add cli to yield confirmation #21

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

alissonperez
Copy link
Owner

Ref. [Link]

What was done?

A new feature was added to yield confirmation in the CLI. This was done by modifying the create_pr, get_branch_info, _get_valid_commits, _get_highlight_commits, and _get_diff_changes functions in gh.py, gitutil.py, and main.py files. The changes allow the user to confirm the creation of a GitHub PR, select commits to be ignored, select main commits, and ignore certain files.

How was it done?

The changes were made by adding a new parameter yield_confirmation to the functions. This parameter is used to control whether the user is asked for confirmation or not. If yield_confirmation is True, the user is not asked for confirmation and the default options are used.

How was it tested?

The changes were tested by running the modified functions and checking if the new feature works as expected. The tests included creating a PR, ignoring commits, selecting main commits, and ignoring files.

@alissonperez alissonperez merged commit a883b1d into main Mar 14, 2024
1 check passed
@alissonperez alissonperez deleted the feat/yield_confirmation branch March 14, 2024 02:20
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