On second thought, this might be a problem for feature branches but we can device a way to tell the bot that something is a fb<span></span><br><br>On Thursday, 16 June 2016, Horacio Duran <<a href="mailto:horacio.duran@canonical.com">horacio.duran@canonical.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+1 on Dave's suggestion<span></span><br><br>On Thursday, 16 June 2016, David Cheney <<a href="javascript:_e(%7B%7D,'cvml','david.cheney@canonical.com');" target="_blank">david.cheney@canonical.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Counter suggestion: the bot refuses to accept PR's that contain more<br>
than one commit, then it's up to the submitter to prepare it in any<br>
way that they feel appropriate.<br>
<br>
On Thu, Jun 16, 2016 at 6:44 PM, roger peppe <<a>roger.peppe@canonical.com</a>> wrote:<br>
> Squashed commits are nice, but there's something worth watching<br>
> out for: currently the merge commit is committed with the text<br>
> that's in the github PR, but when a squashed commit is made, this<br>
> text is ignored and only the text in the actual proposed commit ends up<br>
> in the history. This surprised me (I often edit the PR description<br>
> as the review continues) so worth being aware of, I think.<br>
><br>
> cheers,<br>
> rog.<br>
><br>
> On 16 June 2016 at 02:12, Menno Smits <<a>menno.smits@canonical.com</a>> wrote:<br>
>> Hi everyone,<br>
>><br>
>> Following on from the recent thread about commit squashing and commit<br>
>> message quality, the idea of automatically squashing commit at merge time<br>
>> has been raised. The idea is that the merge bot would automatically squash<br>
>> commits for a pull request into a single commit, using the PR description as<br>
>> the commit message.<br>
>><br>
>> With this in place, developers can commit locally using any approach they<br>
>> prefer. The smaller commits they make as they work won't be part of the<br>
>> history the team interacts with in master.<br>
>><br>
>> When using autosquashing the quality of pull request descriptions should get<br>
>> even more scrutiny during reviews. The quality of PR descriptions is already<br>
>> important as they are used for merge commits but with autosquashing in place<br>
>> they will be the *only* commit message.<br>
>><br>
>> Autosquashing can be achieved technically by either having the merge bot do<br>
>> the squashing itself, or by taking advantage of Github's feature to do this<br>
>> (currently in preview mode):<br>
>><br>
>> <a href="https://developer.github.com/changes/2016-04-01-squash-api-preview/" target="_blank">https://developer.github.com/changes/2016-04-01-squash-api-preview/</a><br>
>><br>
>> We need to ensure that the squashed commits are attributed to the correct<br>
>> author (i.e. not jujubot). I'm not sure what we do with pull requests which<br>
>> contain work from multiple authors. There doesn't seem to be an established<br>
>> approach for this.<br>
>><br>
>> Thoughts?<br>
>><br>
>> - Menno<br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Juju-dev mailing list<br>
>> <a>Juju-dev@lists.ubuntu.com</a><br>
>> Modify settings or unsubscribe at:<br>
>> <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
>><br>
><br>
> --<br>
> Juju-dev mailing list<br>
> <a>Juju-dev@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br>
--<br>
Juju-dev mailing list<br>
<a>Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</blockquote>
</blockquote>