Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] Squashing before merging
  • From: "Bart Hanssens (BOSA)" <bart.hanssens@xxxxxxxxxxxx>
  • Date: Tue, 7 Jan 2020 18:51:12 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bosa.fgov.be; dmarc=pass action=none header.from=bosa.fgov.be; dkim=pass header.d=bosa.fgov.be; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xrehQvm3pyBA39fVY80DpmGkz1NXYXNnhJNJgz9f5ZA=; b=hpe0D5O6qy/QEeBShFe5B3x2UxW3uKoqRZSsotU1wrFiAwd4QOodwF6U4n55eEQC8aXieflQ+goiNbF9YNzqz0gp5rON0F5tr/zfJkVyYHAgVGBAzYtUSCNG/TG0zSCTtLURiMDzMkdBIZEpVZDp/hcGMAK1aN6pl/YBxq49q80jNzmpdXNtwnQGEKlobOrXTtiNxV/vb7prb46OkjuTecGEA5ubk0OnOiAqQrBUjKN87CteDBn5TnLlhy9w+rcnFeX2UZVmNqDYpLNNe3bYVNzhB/emriMyQ9iqFL82fcdDUic9NJ6eioB2KG8xdq3vzubXI6NP5H3SWdc9oFNNgw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ignxKWmNJx31B1XlvQSdpWYvMzQYK28ZKOMbAgriDZG7aMaUn/vmnfG+gyQcv03Xi40NvsTq4tKEb5hYANCY92vn4grQAIpKun6ZcQU37rwfVXd+efKgdXLRI0whvShqj8HGxTM0dTmVSbPBF58Z7T2I0MbYrAb40meYvLMIfN1UuxHR/1wyAZDfT8vEztmVYlyOBiYXJb8JVCtd5q3iuyGbPLLsXExn2DW/q2EE06yfVdgdEUd2P0QrxdoHmNGCGADt2+Lzr+ahxXeV+Jwc6ZRdN37ebmPIJfrFA3vUFKLdoszy4BuKVVeyFCyx4IZJVS9gpSPzOvYNLoKzFpTisg==
  • Delivered-to: rdf4j-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/rdf4j-dev>
  • List-help: <mailto:rdf4j-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVwpv4IR5f69JzY0KpfZ8Wh6phW6ffiHYQ
  • Thread-topic: [rdf4j-dev] Squashing before merging

Hi Jeen,

 

One minor remark perhaps, the https://rdf4j.org/documentation/developer/ workflow still mentions the use of “issues/” branches in PRs

So I guess there should be a small note on using “GH-issue-number” as the commit message

(or perhaps also using GH-issue number for naming the branches themselves ? otherwise it could be a bit confusing/cumbersome to use issues/ in branch name and GH in commit message ?)

 

Best regards

 

Bart

 

From: rdf4j-dev-bounces@xxxxxxxxxxx <rdf4j-dev-bounces@xxxxxxxxxxx> On Behalf Of Jeen Broekstra
Sent: zaterdag 4 januari 2020 2:11
To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>
Subject: Re: [rdf4j-dev] Squashing before merging

 

We've been using Github squash and merge for a little while now and I must admit I still don't like the downsides described below. I am also conscious of the fact that in keeping our develop and master branch in sync, it is all too easy to make a mistake and use squash and merge. More generally: cleaning up a branch's commit history should be the responsibility of the branch author, not of whoever happens to do the merge.

 

I propose that we stop using squash and merge (I'll physically disable it), and instead each PR author makes sure to squash their feature branch locally where appropriate before merging the PR, through either a fast-forward (using github rebase) or (if that is not possible) a normal merge commit. It's a little more work, but it's a decent compromise between keeping the history clean/readable and still having a good workflow as well.

 

If we adopt this, I'll write a little blurb in the contributor guide about how to do squashing so we can point contributors to this.

 

A related request: before merging a PR, please make sure that both the PR title and each commit message start with the issue number: "GH-1234 my feature". The nice thing about this is that when browsing the code in Github, the issue number in the commit message clickable, which is incredibly useful when digging through when/why a particular change was made.

 

Squashing gives you the option not only to create fewer commits on your branch, but also to rewrite your commit messages - so I'm perfectly fine with "wip" as a commit message while you're working on something, as long as you clean it up when it's ready to be merged.

 

Let me know if you have any questions or concerns. If I don't hear anything, I'll assume everyone is ok with this and will disable squash and merge on the repo.

 

Cheers,

 

Jeen


Back to the top