-
Notifications
You must be signed in to change notification settings - Fork 11
docs: add deprecation workarounds documentation for allow_inplace_checks
#7215
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
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🔴 👀 Review RequirementsThis rule is failing.
🔴 🔎 ReviewsThis rule is failing.
🟢 🤖 Continuous IntegrationWonderful, this rule succeeded.
🟢 Changelog requirementsWonderful, this rule succeeded.
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
…ecks` As we're going to deprecate `allow_inplace_checks`, we need to create a documentation so the users can implement a workaround. The link to this documentation will be inserted in the deprecation notice afterward.
cede93f
to
8b5a390
Compare
2. If draft PRs are not an issue for you, but you want to preserve you commit history by avoiding merge commit shas, | ||
you can setup your merge queue to use the `fast-forward` mode for the attribute `merge_method`. | ||
This way, the merge queue will keep the linearity of your commit history. | ||
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details. |
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.
2. If draft PRs are not an issue for you, but you want to preserve you commit history by avoiding merge commit shas, | |
you can setup your merge queue to use the `fast-forward` mode for the attribute `merge_method`. | |
This way, the merge queue will keep the linearity of your commit history. | |
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details. | |
2. If draft PRs are not an issue for you, but you want to preserve your the sha used to run CI jobs, | |
you can setup your merge queue to use the `fast-forward` mode for the attribute `queue_branch_merge_method`. | |
This way, no untested commit sha will be merged. | |
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details. |
3. If draft PRs are not an issue for you, but you want to limit their amount, you can choose to leverage | ||
the `batch_size` and `speculative_checks` attributes in your `queue_rules`. | ||
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details. | ||
|
||
For any further questions, feel free to <a href="mailto:[email protected]">Contact our support</a>. | ||
|
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.
I don't think the amount is a new problem.
3. If draft PRs are not an issue for you, but you want to limit their amount, you can choose to leverage | |
the `batch_size` and `speculative_checks` attributes in your `queue_rules`. | |
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details. | |
For any further questions, feel free to <a href="mailto:[email protected]">Contact our support</a>. | |
For any further questions, feel free to <a href="mailto:[email protected]">contact our support team</a>. | |
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details. | ||
|
||
3. If draft PRs are not an issue for you, but you want to limit their amount, you can choose to leverage | ||
the `batch_size` and `speculative_checks` attributes in your `queue_rules`. |
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.
I wouldn't mention speculative checks. First, because we should use max_parallel_checks
instead of speculative_checks
. And parallel checks create more draft PRs. The only option that reduces draft PRs is batch_size
.
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.
I would suggest a different format, with subtitles instead of numbers and more details/information to help users to understand the change
### `allow_inplace_checks` deprecation notice | |
/a small note about the motivation of the change/ | |
#### Preserving commit history | |
Set up your merge queue to use the `fast-forward` mode for the attribute `queue_branch_merge_method`. | |
This way, no untested commit SHA will be merged. | |
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details. | |
#### Preventing Mergify draft PRs | |
/a small note to encourage users to adopt the draft PR, finishing by something like "but since we understand that it could be an issue for your workflow, there is an alternative .../ | |
... you can leverage the [Workflow Automation](/workflow/) feature with the [rebase](/workflow/actions/rebase/) and [merge](/workflow/actions/merge/) actions. This way, once a pull request validates your rules, you can directly rebase and merge it. |
As we're going to deprecate
allow_inplace_checks
, we need to create a documentation so the users can implement a workaround. The link to this documentation will be inserted in the deprecation notice afterward.