Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Support multiple target branches in pr rebase #1158

Merged
merged 1 commit into from
Jun 15, 2020

Conversation

pablochacin
Copy link
Contributor

@pablochacin pablochacin commented Jun 12, 2020

Why is this PR needed?

Rebase logic only considers pr with the master as target branch.

Fixes: https://github.com/SUSE/avant-garde/issues/1696

What does this PR do?

Adapt logic to handle multiple target branches.

Also, remove the use of Format function which does not exist, but was referenced as a consequence of copy/paste

Anything else a reviewer needs to know?

The whole logic for handling pr validations should be refactored into the jenkins pipeline. This will be introduced into a follow-up PR.

Merge restrictions

(Please do not edit this)

We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises:

What can be merged (merge criteria):
    2 approvals:
        1 developer: code is fine
        1 QA: QA is fine
    there is a PR for updating documentation (or a statement that this is not needed)

@pablochacin
Copy link
Contributor Author

The PR rebase logic was not executed:

+ make -f skuba/ci/Makefile pr_checks
/home/jenkins/workspace/caasp-jobs_pr_test_PR-1158/skuba/ci/tasks/rebase.py
Not a PR. Rebase not required.

@pablochacin pablochacin force-pushed the fix-pr-rebase-logic branch 3 times, most recently from f3b66f8 to 6fc2bbe Compare June 12, 2020 16:05
Rebase logic only considers pr with master as target branch.
Adapt logic to handle multiple target branches

Signed-off-by: Pablo Chacin <pchacin@suse.com>
@pablochacin pablochacin force-pushed the fix-pr-rebase-logic branch from 6fc2bbe to 6b886e4 Compare June 12, 2020 16:21
@pablochacin pablochacin removed the wip label Jun 15, 2020
Copy link
Collaborator

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

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

LGTM

@pablochacin pablochacin merged commit 972d0a8 into SUSE:master Jun 15, 2020
mmnelemane pushed a commit to mmnelemane/skuba that referenced this pull request Jul 3, 2020
Rebase logic only considers pr with master as target branch.
Adapt logic to handle multiple target branches

Signed-off-by: Pablo Chacin <pchacin@suse.com>
@pablochacin pablochacin deleted the fix-pr-rebase-logic branch July 10, 2020 10:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants