Skip to content

feat(git): enhance diff handling based on configuration#16

Merged
jsburckhardt merged 1 commit intomainfrom
feat/message-for-pr
Oct 24, 2024
Merged

feat(git): enhance diff handling based on configuration#16
jsburckhardt merged 1 commit intomainfrom
feat/message-for-pr

Conversation

@jsburckhardt
Copy link
Owner

Refactor the diff retrieval logic to use a unified function GetGitDiff that determines whether to get the diff from the main branch or the staged changes based on the configuration's PR flag. Additionally, update the Config structure to include the PR field for managing this behavior.

BREAKING CHANGE: Changes the Commit function by removing the pr parameter. Now, the function relies solely on the ShouldCommit and PR fields in the configuration.

Refactor the diff retrieval logic to use a unified function `GetGitDiff` that determines whether to get the diff from the main branch or the staged changes based on the configuration's `PR` flag. Additionally, update the `Config` structure to include the `PR` field for managing this behavior.

BREAKING CHANGE: Changes the `Commit` function by removing the `pr` parameter. Now, the function relies solely on the `ShouldCommit` and `PR` fields in the configuration.
@jsburckhardt jsburckhardt merged commit 8c36a8b into main Oct 24, 2024
@jsburckhardt jsburckhardt deleted the feat/message-for-pr branch October 24, 2024 03:16
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