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

ci: rule to fail PRs that add a new manual commit #27928

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

ankush
Copy link
Member

@ankush ankush commented Oct 12, 2021

Manual commits are a frequent source of bugs, confusion or undefined behaviour.

All new manual commits should be explicitly ignored with an explanation of why it's added. This will only fail for new additions. Existing ones need to be cleaned up manually.

These are not required in most cases, ref: https://frappeframework.com/docs/user/en/api/database#database-transaction-model

Manual commits are frequent source of bugs, confusions or undefined
behaviour.

All new manual commits should be explcitly ignored with explanation on
why it's added. This will only fail for new additions. Existing ones
need to be cleaned up manually.
@ankush ankush removed the request for review from surajshetty3416 October 12, 2021 17:21
@ankush ankush merged commit 06b426e into frappe:develop Oct 12, 2021
@ankush ankush deleted the discourage_commits branch October 12, 2021 17:31
mergify bot pushed a commit that referenced this pull request Oct 12, 2021
Manual commits are frequent source of bugs, confusions or undefined
behaviour.

All new manual commits should be explcitly ignored with explanation on
why it's added. This will only fail for new additions. Existing ones
need to be cleaned up manually.

(cherry picked from commit 06b426e)
ankush added a commit that referenced this pull request Oct 12, 2021
Manual commits are frequent source of bugs, confusions or undefined
behaviour.

All new manual commits should be explcitly ignored with explanation on
why it's added. This will only fail for new additions. Existing ones
need to be cleaned up manually.

(cherry picked from commit 06b426e)
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
Manual commits are frequent source of bugs, confusions or undefined
behaviour.

All new manual commits should be explcitly ignored with explanation on
why it's added. This will only fail for new additions. Existing ones
need to be cleaned up manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant