# The ultimate "How to make CI work with my fork" guide

**URL:** https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581
**Category:** Development
**Created:** [January 6, 2022, 7:31pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581 "2022-01-06T19:31:25Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [January 6, 2022, 7:31pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/1 "2022-01-06T19:31:25Z")

</div>

1. Go to your fork : [https://gitlab.kitware.com/username/vtk/](https://gitlab.kitware.com/username/vtk/)
2. Click on settings and expand Visibility
3. 

 ![a](https://discourse.vtk.org/uploads/default/original/2X/8/80066409e6751e5a6155cc50b78d69e571f86d5b.png)

1. Click on Settings, CI/CD and expand General
2. 

 ![b](https://discourse.vtk.org/uploads/default/original/2X/2/2ef60d9dcf5f3db1e45bb79786693e3a97266391.png)

1. Rebase your branch in MRs against the last origin master

```auto
git fetch gitlab
git checkout master
git pull
git checkout your_branch
git rebase master

```

1. Make sure to also pull the tags from origin master to avoid warnings

```auto
git fetch origin
git push gitlab --tags

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [January 6, 2022, 7:32pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/2 "2022-01-06T19:32:04Z")

</div>

@ben.boeckel feel free to improve

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [January 6, 2022, 7:57pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/3 "2022-01-06T19:57:43Z")

</div>



---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [January 6, 2022, 10:42pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/4 "2022-01-06T22:42:06Z")

</div>

I cannot edit, but there is no reason to close and open a new MR; just amend and force push.

---

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [January 7, 2022, 12:28am UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/5 "2022-01-07T00:28:23Z")

</div>

I keep my fork master in synch with vtk master via pull and push commands from/to the two different repositories. Then I create feature/fix branches off my local master and only rebase them if necessary.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [January 7, 2022, 7:54am UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/6 "2022-01-07T07:54:10Z")

</div>

> About closing and opening new MRs

Thanks I wasn’t sure about this one.

> I keep my fork master in synch with vtk master via pull and push commands from/to the two different repositories. Then I create feature/fix branches off my local master and only rebase them if necessary.

Unrelated ?

---

<div class="post-metadata">

### Author: ![opoplawski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/opoplawski/32/321_2.png) [@opoplawski](https://discourse.vtk.org/u/opoplawski)
#### Post date: [November 7, 2023, 3:17pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/7 "2023-11-07T15:17:07Z")

</div>

With the current Gitlab interface:  
2. Click on Settings then General. Expand Visibility  
4. I cannot find this menu item anywhere

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [November 7, 2023, 3:18pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/8 "2023-11-07T15:18:38Z")

</div>

I can see it on my fork without issue, can you share a screenshot ?

---

<div class="post-metadata">

### Author: ![opoplawski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/opoplawski/32/321_2.png) [@opoplawski](https://discourse.vtk.org/u/opoplawski)
#### Post date: [November 7, 2023, 3:21pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/9 "2023-11-07T15:21:23Z")

</div>

I’m probably going to need to do it from work with a bigger monitor, but at least under the left menu I have:

![image](https://discourse.vtk.org/uploads/default/original/2X/6/6b754a5a1ae38f797fc01e39b08aaa13d44c6f89.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [November 7, 2023, 3:25pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/10 "2023-11-07T15:25:27Z")

</div>

Indeed. Maybe just dezoom with `Ctrl + -` ?

 ![a](https://discourse.vtk.org/uploads/default/original/2X/c/c2e1014c81289380e81b7fe913386d2f6465fef4.png)

---

<div class="post-metadata">

### Author: ![opoplawski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/opoplawski/32/321_2.png) [@opoplawski](https://discourse.vtk.org/u/opoplawski)
#### Post date: [November 7, 2023, 3:27pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/11 "2023-11-07T15:27:53Z")

</div>

Maybe just scroll down 🤦

---

<div class="post-metadata">

### Author: ![opoplawski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/opoplawski/32/321_2.png) [@opoplawski](https://discourse.vtk.org/u/opoplawski)
#### Post date: [November 7, 2023, 3:28pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/12 "2023-11-07T15:28:37Z")

</div>

I somewhat blame firefox and its hiding of scrollbars.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [November 17, 2023, 4:32am UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/13 "2023-11-17T04:32:34Z")

</div>

To be fair, Firefox is cargo culting this from elsewhere. Not sure why such terrible design decisions seem to be so contagious though.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 23, 2024, 8:27am UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/14 "2024-02-23T08:27:18Z")

</div>



---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 23, 2024, 8:27am UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/15 "2024-02-23T08:27:45Z")

</div>



---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [August 23, 2024, 2:59pm UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/16 "2024-08-23T14:59:34Z")

</div>

This guide has been added to the official doc and should soon be available on the website: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/11428](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/11428)

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [August 25, 2024, 9:59am UTC](https://discourse.vtk.org/t/the-ultimate-how-to-make-ci-work-with-my-fork-guide/7581/17 "2024-08-25T09:59:51Z")

</div>

@mwestphal thanks for letting me know.
