Skip to content

Add Gitlab as an alternative to GitHub (ref #535) - #540

Merged
dianaiusan merged 17 commits into
mainfrom
gitlab-tabs
Sep 22, 2026
Merged

dianaiusan merged 17 commits into
mainfrom
gitlab-tabs

Conversation

@MaritJenssen

Copy link
Copy Markdown
Contributor

This PR adds GitLab alternatives to the introductory Git instructions, following issue #535.

Changes

  • Add GitLab guidance to the configuration section.
  • Add GitLab merge request instructions alongside the GitHub pull request workflow.
  • Add GitLab repository creation and file-upload instructions.
  • Add the GitLab merge request term to the reference page.
  • Add annotated GitLab screenshots.
  • Ignore the local .venv environment.

@MaritJenssen MaritJenssen self-assigned this Sep 18, 2026
@frankier
frankier requested a lite review from Copilot September 21, 2026 12:42

@frankier frankier left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi! It looks really good. The only thing I notice from a first read through is on merging we have: "We offer four different paths of how to do this exercise. For the CodeRefinery workshop day 1, we use and demonstrate the GitHub path only and recommend you do that. The exercise text below has some GitHub-specific notes, but most is possibly with any path." I think there are currently 3 paths so this must be a bit old. It would be good to update this too now anyway.

I hope you don't mind, but I'm going to request a Copilot review since it helped me catch some language problems in my PR. I'll go through them to look for false positives so I hope it's not too annoying.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Unresolved moderate and nit findings affect GitLab configuration, sharing, and merge request instructions.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Medium severity · 7 Low severity

Open (10)
What changed in this PR

This PR adds GitLab alternatives to the introductory Git instructions.

Changes:

  • Adds GitLab configuration, repository creation, uploads, and merge request workflows.
  • Adds annotated screenshots and a merge request glossary entry.
  • Ignores the local .venv environment.
File Changes and final findings
content/​sharing.md Adds GitLab repository and upload guidance. Findings: line 102 has an unclosed quote around project URL (nit, 3 votes); the RStudio path lacks GitLab setup and remote URLs (moderate, 2 votes); the upload procedure lacks textual upload/commit instructions (nit, 1 vote).
content/​reference.md Adds the “merge request” reference entry.
content/​merging.md Adds GitLab merge request workflows and screenshots. Findings: the overview count should reflect five paths (nit, 1 vote); objectives and final instructions should mention merge requests (nit, 3 and 2 votes); fork, target project, and target branch terminology needs correction (moderate, 3 votes; nit, 3 and 2 votes); Gitlab alt text should use GitLab on lines 167 and 437 (nit, 3 votes).
content/​configuration.md Extends authentication guidance to GitLab. Findings: the cross-link should use the #clone-method anchor (nit, 3 votes); the RStudio remote URL should be conditional on SSH versus HTTPS selection (moderate, 3 votes).
.gitignore Ignores the local .venv environment.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread content/configuration.md
Comment on lines 175 to +177
After the configuration, you should **select HTTPS as the clone URL from
GitHub, or translate the URL to start with the right thing
yourself:** `https://github.com/`
GitHub or GitLab, or translate the URL to start with the right thing
yourself:** `https://github.com/` or `https://gitlab.com/`
Comment thread content/merging.md Outdated
Comment thread content/sharing.md
Comment on lines +47 to +48
* **RStudio**: initialize Git for your project, connect it to an empty
repository on GitHub or GitLab, and use RStudio's Push and Pull buttons.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably easier to just keep this GitHub only in that case

Comment thread content/configuration.md
Comment thread content/merging.md Outdated
Comment thread content/merging.md
::::{group-tab} GitLab
On GitLab make sure you are on the branch you want to merge **from**:
:::{figure} img/gitlab/merging-navigate-branch-annotated.png
:alt: Screenshot on Gitlab where we navigate to the branch we wish to merge.
Comment thread content/merging.md Outdated
Comment thread content/merging.md Outdated
Comment thread content/merging.md
Comment on lines +547 to 549
- On GitHub and GitLab, you can resolve conflicts by clicking on the "Resolve conflicts"
button. This will open a text editor where you can choose which changes to
keep.
Comment thread content/sharing.md Outdated
@frankier

Copy link
Copy Markdown
Contributor

Okay I've read through the Copilot review and it most of the points seem good to me too apart from the spurious misunderstanding of MyST and for "(3) Fill out and verify the pull request" you could ignore Copilot and make a larger change so that "what to check" follows the natural flow of what's in the two screenshots as well as the text in the labels.

But overall things look in great shape -- thanks so much for you help! Almost there!

dianaiusan and others added 5 commits September 22, 2026 09:06
…s the target branch'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…requests'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…t GitHub terminology'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ly refer to a base repository'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
… URL'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@dianaiusan

Copy link
Copy Markdown
Contributor

Thank you for the improvements.

@github-actions

Copy link
Copy Markdown

📖 Preview of this branch: https://coderefinery.github.io/git-intro/branch/gitlab-tabs/

Built at 2026-09-22T07:09:10Z (artifact timestamp).

@dianaiusan dianaiusan closed this Sep 22, 2026
@dianaiusan dianaiusan reopened this Sep 22, 2026
@dianaiusan
dianaiusan merged commit 6755189 into main Sep 22, 2026
6 checks passed
@dianaiusan
dianaiusan deleted the gitlab-tabs branch September 22, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants