Skip to content

Add "returning" option for merge output ref#262

Merged
vito merged 1 commit into
concourse:masterfrom
rliebz:merge-ref
May 29, 2019
Merged

Add "returning" option for merge output ref#262
vito merged 1 commit into
concourse:masterfrom
rliebz:merge-ref

Conversation

@rliebz

@rliebz rliebz commented May 21, 2019

Copy link
Copy Markdown
Contributor

Setting the returning param to unmerged allows using the original commit as the resource output when setting the merge param to true, rather than using the merge commit. This is a backward compatible change that allows users to opt-in to the new behavior as desired.

Resolves #253

@vito vito left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, this looks great! Just need a tiny tweak to the test file in order to run the newly added test. 👍

Comment thread test/put.sh
Setting the `returning` param to `unmerged` allows using the original
commit as the resource output when setting the `merge` param to `true`.

Resolves concourse#253

Signed-off-by: Rob Liebowitz <rliebowitz@morningconsult.com>
@rliebz

rliebz commented May 29, 2019

Copy link
Copy Markdown
Contributor Author

@vito -- Looks like the Ubuntu test fails sometimes, so I had to re-trigger the build (with an amend/force-push) to get it to pass. There are other examples of the same error in the build history (26, 18), so I don't think it's related to this change.

Other than that, the PR should be good to go.

@vito vito left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

😕 Yeah those GPG tests seem a little finnicky. We'll keep an eye on it. Thanks!

@vito vito merged commit 4788c43 into concourse:master May 29, 2019
@rliebz rliebz deleted the merge-ref branch May 29, 2019 23:00
@jamieklassen jamieklassen added this to the v5.3.0 milestone Jun 6, 2019
jamieklassen pushed a commit to vmware-archive/release-notes that referenced this pull request Jun 6, 2019
concourse/git-resource#262

Signed-off-by: James Thomson <jthomson@pivotal.io>
Co-authored-by: Jamie Klassen <cklassen@pivotal.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use original commit version as output version after a merge

4 participants