Skip to content

Add PR Title to CommitHeadline during merge PR - #1627

Merged
vilmibm merged 2 commits into
cli:trunkfrom
giacomoalbe:add-commit-headline-to-pr-merge
Sep 8, 2020
Merged

vilmibm merged 2 commits into
cli:trunkfrom
giacomoalbe:add-commit-headline-to-pr-merge

Conversation

@giacomoalbe

@giacomoalbe giacomoalbe commented Sep 4, 2020 •

Copy link
Copy Markdown
Contributor

This is a very simple implementation of #1621

I'd like to also provide some testing for it, but I'm completely new to Go and I don't know how to properly use httpmock to simulate a PR merge.

@mislav mislav left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! No worries; I've added the tests.

I've also scoped this change to only the squash mode, to avoid changing behavior for either --merge or --rebase modes.

@vilmibm
vilmibm merged commit 74614b1 into cli:trunk Sep 8, 2020
mislav added a commit that referenced this pull request Feb 16, 2021
For single-commit PRs, the commit subject will be the subject of the
head commit and the PR number. For multi-commit PRs, the commit subject
will be the PR title and PR number. Instead of trying to replicate this
logic client-side, omit the `commitHeadline` param and let the server
apply defaults appropriately.

Reverts #1627
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.

4 participants