github-pr-resource icon indicating copy to clipboard operation
github-pr-resource copied to clipboard

Could the PR remain in branch instead of merged to master?

Open pivotal-bin-ju opened this issue 3 years ago • 2 comments

I tried to set integration_tool=checkout, but the branch code is still merged to master. I am wondering if there a way to leave the PR in the branch?

I know the old jtarchie works in this flavor, the new resource break our pipeline.

Thanks!

pivotal-bin-ju avatar Sep 15 '21 21:09 pivotal-bin-ju

If you use a put step, you must use get_params to add integration_tool=checkout parameter otherwise it will be override by the implicit get step done after a put step.

It looks like this in one of my job:

...
    - get: pull-request
    - put: pull-request
      params:
        status: pending
        path: pull-request
      get_params:
        integration_tool: checkout
...

tremblaysimon avatar Feb 01 '22 14:02 tremblaysimon