Use a minimal PR description for squash-only repos#14920
Open
zygoloid wants to merge 1 commit intodependabot:mainfrom
Open
Use a minimal PR description for squash-only repos#14920zygoloid wants to merge 1 commit intodependabot:mainfrom
zygoloid wants to merge 1 commit intodependabot:mainfrom
Conversation
Add a configuration setting to determine whether to use a minimal or full PR description. By default, pick the mode based on whether the repo only allows squash merges. Fixes dependabot#1986 Assisted-by: Gemini via Antigravity
86c564d to
55b8da1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are you trying to accomplish?
Add a configuration setting to determine whether to use a minimal or full PR description. If the repository only permits squash merges, then default to minimal PR descriptions. Otherwise, default to full PR descriptions.
Fixes #1986
Anything you want to highlight for special attention from reviewers?
It'd be great to include the full message as a PR comment, but I don't think I can do that without a change to the dependabot API. So for now the full description is not included in the PR for a squash-only repository.
This also doesn't detect the case where the repository is effectively squash-only due to a branch protection rule that enforces use of a squash-only merge queue, but that information appears inaccessible from dependabot's access token.
How will you know you've accomplished your goal?
Manually tested using the dry-run mode against repositories with squash-only and not-squash-only setups.
Assisted-by: Gemini via Antigravity