https://eigen.tuxfamily.org/index.php?title=Reforking_the_GitLab_Project&feed=atom&action=historyReforking the GitLab Project - Revision history2024-03-29T10:45:09ZRevision history for this page on the wikiMediaWiki 1.23.1https://eigen.tuxfamily.org/index.php?title=Reforking_the_GitLab_Project&diff=2715&oldid=prevCantonios at 16:44, 15 October 20212021-10-15T16:44:58Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 16:44, 15 October 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Due to <del class="diffchange diffchange-inline">a technical issue </del>that occurred on October 2, 2021, all GitLab fork relationships to the main [https://gitlab.com/libeigen/eigen Eigen project] created before that date have been severed.  This will prevent users from creating new MRs from these severed forks, and from reopening old ones.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Due to <ins class="diffchange diffchange-inline">an incident </ins>that occurred on October 2, 2021, all GitLab fork relationships to the main [https://gitlab.com/libeigen/eigen Eigen project] created before that date have been severed.  This will prevent users from creating new MRs from these severed forks, and from reopening old ones.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Fortunately, there is a way via the GitLab API to re-establish the fork connection.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Fortunately, there is a way via the GitLab API to re-establish the fork connection.</div></td></tr>
</table>Cantonioshttps://eigen.tuxfamily.org/index.php?title=Reforking_the_GitLab_Project&diff=2713&oldid=prevCantonios: Cantonios moved page Reforking the GitLab Repo to Reforking the GitLab Project2021-10-14T22:05:06Z<p>Cantonios moved page <a href="/index.php?title=Reforking_the_GitLab_Repo" class="mw-redirect" title="Reforking the GitLab Repo">Reforking the GitLab Repo</a> to <a href="/index.php?title=Reforking_the_GitLab_Project" title="Reforking the GitLab Project">Reforking the GitLab Project</a></p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 22:05, 14 October 2021</td>
</tr><tr><td colspan='2' style='text-align: center;'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Cantonioshttps://eigen.tuxfamily.org/index.php?title=Reforking_the_GitLab_Project&diff=2712&oldid=prevCantonios at 22:04, 14 October 20212021-10-14T22:04:41Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 22:04, 14 October 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Create a personal access token ([https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token documentation])</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Create a personal access token ([https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token documentation])</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#* Navigate to https://gitlab.com/-/profile/personal_access_tokens?name=refork&scopes=api</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#* Navigate to https://gitlab.com/-/profile/personal_access_tokens?name=refork&scopes=api</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>#* Click the button: 'Create personal access token'</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>#* Click the button: <ins class="diffchange diffchange-inline">'</ins>'Create personal access token<ins class="diffchange diffchange-inline">'</ins>'</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#* Copy the token at the top of the screen.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#* Copy the token at the top of the screen.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Determine your local project's ID.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Determine your local project's ID.</div></td></tr>
</table>Cantonioshttps://eigen.tuxfamily.org/index.php?title=Reforking_the_GitLab_Project&diff=2710&oldid=prevCantonios: Cantonios moved page Reforking to Reforking the GitLab Repo2021-10-14T22:03:11Z<p>Cantonios moved page <a href="/index.php?title=Reforking" class="mw-redirect" title="Reforking">Reforking</a> to <a href="/index.php?title=Reforking_the_GitLab_Repo" class="mw-redirect" title="Reforking the GitLab Repo">Reforking the GitLab Repo</a></p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 22:03, 14 October 2021</td>
</tr><tr><td colspan='2' style='text-align: center;'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Cantonioshttps://eigen.tuxfamily.org/index.php?title=Reforking_the_GitLab_Project&diff=2709&oldid=prevCantonios: Created page with "Due to a technical issue that occurred on October 2, 2021, all GitLab fork relationships to the main [https://gitlab.com/libeigen/eigen Eigen project] created before that date..."2021-10-14T22:00:34Z<p>Created page with "Due to a technical issue that occurred on October 2, 2021, all GitLab fork relationships to the main [https://gitlab.com/libeigen/eigen Eigen project] created before that date..."</p>
<p><b>New page</b></p><div>Due to a technical issue that occurred on October 2, 2021, all GitLab fork relationships to the main [https://gitlab.com/libeigen/eigen Eigen project] created before that date have been severed. This will prevent users from creating new MRs from these severed forks, and from reopening old ones.<br />
<br />
Fortunately, there is a way via the GitLab API to re-establish the fork connection.<br />
<br />
# Create a personal access token ([https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token documentation])<br />
#* Navigate to https://gitlab.com/-/profile/personal_access_tokens?name=refork&scopes=api<br />
#* Click the button: 'Create personal access token'<br />
#* Copy the token at the top of the screen.<br />
# Determine your local project's ID.<br />
#* Navigate to your fork's main page (e.g. https://gitlab.com/cantonios/eigen)<br />
#* Note the project ID number directly under the project name (e.g. 17989470)<br />
# Use the GitLab REST API to delete the existing broken fork relationship, and re-add it.<br />
<br />
Bash:<br />
<syntaxhighlight lang="bash"><br />
export PRIVATE_TOKEN=Jk6S1gE8ryA8fy3zgtsj # <-- Replace with your token.<br />
export PROJECT_ID=17989470 # <-- Replace with your Project ID.<br />
export EIGEN_PROJECT_ID=15462818<br />
<br />
# Delete existing fork.<br />
curl -H "PRIVATE-TOKEN: $PRIVATE_TOKEN" -X DELETE \ <br />
https://gitlab.com/api/v4/projects/$PROJECT_ID/fork<br />
<br />
# Re-establish fork.<br />
curl -H "PRIVATE-TOKEN: $PRIVATE_TOKEN" -X POST \<br />
https://gitlab.com/api/v4/projects/$PROJECT_ID/fork/$EIGEN_PROJECT_ID<br />
</syntaxhighlight><br />
<br />
Windows Command Prompt:<br />
<br />
<source lang="bash"><br />
:: # Replace PRIVATE_TOKEN and PROJECT_ID with your values.<br />
set PRIVATE_TOKEN=Jk6S1gE8ryA8fy3zgtsj<br />
set PROJECT_ID=17989470<br />
set EIGEN_PROJECT_ID=15462818<br />
<br />
:: # Delete existing fork.<br />
curl -H "PRIVATE-TOKEN: %PRIVATE_TOKEN%" -X DELETE ^<br />
https://gitlab.com/api/v4/projects/%PROJECT_ID%/fork<br />
<br />
:: # Re-establish fork.<br />
curl -H "PRIVATE-TOKEN: %PRIVATE_TOKEN%" -X POST ^<br />
https://gitlab.com/api/v4/projects/%PROJECT_ID%/fork/%EIGEN_PROJECT_ID%<br />
</source><br />
<br />
Windows Powershell<br />
<br />
<source lang="bash"><br />
$PRIVATE_TOKEN="Jk6S1gE8ryA8fy3zgtsj" # <-- Replace with your token (in quotes).<br />
$PROJECT_ID=17989470 # <-- Replace with your Project ID.<br />
$EIGEN_PROJECT_ID=15462818<br />
<br />
# Delete existing fork.<br />
curl -H "PRIVATE-TOKEN: $PRIVATE_TOKEN" -X DELETE `<br />
https://gitlab.com/api/v4/projects/$PROJECT_ID/fork<br />
<br />
# Re-establish fork.<br />
curl -H "PRIVATE-TOKEN: $PRIVATE_TOKEN" -X POST `<br />
https://gitlab.com/api/v4/projects/$PROJECT_ID/fork/$EIGEN_PROJECT_ID<br />
</source></div>Cantonios