Skip to content

Commit

Permalink
Update rebase docs with wei/pull app (kubeflow#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvl authored Apr 20, 2022
1 parent 06db559 commit df7cdf5
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions REBASE.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
# Rebasing upstream

Configure the Kubeflow repository as the remote upstream:
The [**Pull GitHub App**](https://github.com/wei/pull) has been configured to
automatically update the ODH Kubeflow fork with last changes from upstream.

```shell
git remote add upstream git@github.com:kubeflow/kubeflow.git
git remote set-url --push upstream DISABLE
```
When the bot detects a change in the upstream, it will create a new PR.
[**Example PR**](https://github.com/opendatahub-io/kubeflow/pull/9).

## Approving PR

Fetch the latest changes in the Kubeflow repository:
This PR won't be merged until it is approved by using the [**Openshift CI
commands**](https://prow.k8s.io/command-help).

The PR is created with the `do-not-merge/hold` label to avoid automatic merge.
When you want to approve the PR, firstly remove this label by adding the
following comment to the PR:

```shell
git fetch upstream -p
/unhold
```

Rebase and favor local changes upon conflicts:
Finally, add a comment in the PR to approve it:

```shell
git rebase -Xtheirs upstream/main
/approve
```

*The above may cause conflicts. Learn how to fix these conflicts by reading the official [git-scm docs](https://git-scm.com/docs/git-rebase).*
Wait until the PR is automatically merged.

Finally, push these changes to the ODH repository:
## Pull Configuration

```shell
git push origin --force
```
The **Pull GitHub App** is configured in the [pull.yml file](.github/pull.yml).

0 comments on commit df7cdf5

Please sign in to comment.