Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backporting: Add support for forked cilium repositories #15008

Merged
merged 4 commits into from
Feb 18, 2021

Commits on Feb 17, 2021

  1. contrib: Detect correct remote in start-backport

    Previously, the script assumed `origin` would point to the upstream
    branch. For users with forked repositories this is not necessarily true,
    therefore this commit auto-detects the remote name based on the git
    remote url.
    
    Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
    gandro committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    38d3543 View commit details
    Browse the repository at this point in the history
  2. contrib: Support alternative orgs in get_remote

    This commit adds a optional positional argument to `get_remote` to allow
    obtaining the remote of Cilium forks in other organizations than the
    default `cilium` one.
    
    Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
    gandro committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    f9e6ef1 View commit details
    Browse the repository at this point in the history
  3. contrib/submit-backport: Support creating PRs from forks

    This adds support for pushing backport PRs from Cilium forks. Because
    the names of remotes in forked repositories are not standardized, the
    `submit-backport` script is changed such that it accepts two branch
    arguments: The upstream remote and the user (fork) remote.
    
    The upstream remote is detected using the existing `get_remote` helper,
    while the user (fork) remote is guessed by checking for a remote
    matching `github.com/<user>/cilium`.
    
    Co-authored-by: Quentin Monnet <quentin@isovalent.com>
    Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
    gandro and qmonnet committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    02320e3 View commit details
    Browse the repository at this point in the history
  4. docs: Document changes to submit-backport

    Co-authored-by: Quentin Monnet <quentin@isovalent.com>
    Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
    gandro and qmonnet committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    9d7b64c View commit details
    Browse the repository at this point in the history