Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#62067] Update GitHub and GitLab documentation for coders https://c… (#18448)

Maya Berdygylyjovaa46679768ccd
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-action.png b/docs/system-admin-guide/integrations/github-integration/GitHub-action.png
deleted file mode 100644
index e0e43c699a8..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-action.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-changes.png b/docs/system-admin-guide/integrations/github-integration/GitHub-changes.png
deleted file mode 100644
index 56797953db9..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-changes.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-commit-2645308.png b/docs/system-admin-guide/integrations/github-integration/GitHub-commit-2645308.png
deleted file mode 100644
index 5dcc267c2f6..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-commit-2645308.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-copy-branch-name.png b/docs/system-admin-guide/integrations/github-integration/GitHub-copy-branch-name.png
deleted file mode 100644
index 6855567c129..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-copy-branch-name.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-create-branch.png b/docs/system-admin-guide/integrations/github-integration/GitHub-create-branch.png
deleted file mode 100644
index 34be0698bf3..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-create-branch.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-desktop-new-branch.png b/docs/system-admin-guide/integrations/github-integration/GitHub-desktop-new-branch.png
deleted file mode 100644
index 00e2ce18d41..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-desktop-new-branch.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-open-pull-request-2645707.png b/docs/system-admin-guide/integrations/github-integration/GitHub-open-pull-request-2645707.png
deleted file mode 100644
index d16043241b2..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-open-pull-request-2645707.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-publish-branch.png b/docs/system-admin-guide/integrations/github-integration/GitHub-publish-branch.png
deleted file mode 100644
index 92c9797dd37..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-publish-branch.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-pull-request-opened-2646257.png b/docs/system-admin-guide/integrations/github-integration/GitHub-pull-request-opened-2646257.png
deleted file mode 100644
index c8dffd79c43..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-pull-request-opened-2646257.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-pull-request-status.png b/docs/system-admin-guide/integrations/github-integration/GitHub-pull-request-status.png
deleted file mode 100644
index 380660e80e6..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-pull-request-status.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-tab.png b/docs/system-admin-guide/integrations/github-integration/GitHub-tab.png
deleted file mode 100644
index d663037d9f3..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-tab.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub-work-package-activity-2646492.png b/docs/system-admin-guide/integrations/github-integration/GitHub-work-package-activity-2646492.png
deleted file mode 100644
index 7889a2ad6d3..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub-work-package-activity-2646492.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/GitHub_OpenProject-commit-message.png b/docs/system-admin-guide/integrations/github-integration/GitHub_OpenProject-commit-message.png
deleted file mode 100644
index 698f35c884a..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/GitHub_OpenProject-commit-message.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/Github-module-2647262.png b/docs/system-admin-guide/integrations/github-integration/Github-module-2647262.png
deleted file mode 100644
index 7a80541a4e6..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/Github-module-2647262.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/README.md b/docs/system-admin-guide/integrations/github-integration/README.md
index 6bccad1e74a..24a70edb233 100644
--- a/docs/system-admin-guide/integrations/github-integration/README.md
+++ b/docs/system-admin-guide/integrations/github-integration/README.md
@@ -7,128 +7,145 @@ keywords: github integration
---
# GitHub integration
-OpenProject offers an integration with GitHub pull requests (PRs) to link software development closely to planning and specification.
-You create a pull request in GitHub and link it to an OpenProject work package.
+OpenProject offers an integration with GitHub pull requests (PRs) to link software development closely to planning and specification. You can create pull requests in GitHub and link them directly to OpenProject work packages.
## Overview
OpenProject work packages will directly display information from GitHub in a separate tab.
-![GitHub-tab](GitHub-tab.png)
+![GitHub tab in an OpenProject work package](openproject-system-guide-github-integation-github-tab-in-wp.png)
-The tab shows all PRs linked to a work package with their corresponding status (e.g. 'Open' or 'Merged') as well as the state (e.g. 'success' or 'queued') of the GitHub actions configured to run for a PR. PRs and work packages are in an n:m relationship, so a work package can be linked to multiple PRs and a PR can be linked to multiple work packages.
+The GitHub tab shows all PRs linked to a work package with their corresponding statuses (e.g. 'Open' or 'Merged') as well as the state (e.g. 'success' or 'queued') of the GitHub actions configured to run for a PR. PRs and work packages are in an n:m relationship, so a work package can be linked to multiple PRs and a PR can be linked to multiple work packages.
-Additionally, in your OpenProject work package, the GitHub integration supports you to create a branch straight from the work package and consequently the matching pull request.
+Additionally, in your OpenProject work package, the GitHub integration supports you in creating a branch straight from the work package and the corresponding pull request.
-![GitHub-create-branch](GitHub-create-branch.png)
-
-Pull request activities will also show up in the Activity tab when the pull request is
+![Git snippets dropdown menu under GitHub tab in OpenProject work package](openproject-system-guide-github-integation-github-git-snippets.png)
+Pull request activities will also appear in the Activity tab when the pull request is:
* first referenced (usually when opened)
+* marked ready for review
* merged
* closed
-![Github comments on work package](workpackage-github-comments.png)
+![Github comments on Activity tab of an OpenProject work package](openproject-system-guide-github-integation-github-activity-tab.png)
-## Create a pull request
+## Configuration
-As pull requests are based on branches, a new branch needs to be created first. For that, open the GitHub tab in your OpenProject work package detail view. Click on 'Git snippets' to extend the menu. First, copy the branch name by clicking the corresponding button.
+To enable the integration, you must configure both OpenProject and GitHub.
-![GitHub-copy-branch-name](GitHub-copy-branch-name.png)
+### OpenProject
-Then, open your git client, e.g. GitHub desktop or a console. There, you create your branch with the name you copied from your OpenProject work package. That way, all the branches will follow a common pattern and as the OpenProject ID is included in the branch name, it will be easy to see the connection between a PR and a work package when taking a look at a list of PRs on GitHub.
+First, create a user in OpenProject to make the comments. Add this user to each project with a role that grants permission to view and comment on work packages.
-![GitHub-desktop-new-branch](GitHub-desktop-new-branch.png)
+First you will need to create a user in OpenProject that has the permission to make comments. We recommend creating a dedicated role and assigning this role to the user. This role only requires two permissions, *View work packages* and *Add notes*, which you will find in the Work packages and Gantt charts section under [Roles and Permissions](../../users-permissions/roles-permissions/).
-With the branch opened, you can start the actual development work using whatever tool you deem to be the best (it is VIM BTW), to alter your codebase.
+![GitHub role with necessary permissions in OpenProject administration](openproject-system-guide-github-integation-github-new-role.png)
-![GitHub-changes](GitHub-changes.png)
+![GitHub user added as member to project with respective role](openproject-system-guide-github-integation-github-new-user.png)
-Once you are satisfied with the changes you create a commit. Within the 'Git snippets' menu, OpenProject suggests a commit message for you based on the title and the URL of the work package.
+Once the user is created you need to generate an OpenProject API token for this user (you will need it on the GitHub side). For this you have to:
-![GitHub_OpenProject-commit-message](GitHub_OpenProject-commit-message.png)
+1. Login as the newly created user
+2. Go to [Account settings](../../../user-guide/account-settings/) (click on the Avatar in the top right corner and select *Account settings*)
+3. Go to [*Access Tokens*](../../../user-guide/account-settings/#access-tokens)
+4. Click on **+ API token**
-A URL pointing to a work package within a pull request description or a comment will lead to the two entities becoming linked. Using the value in the 'Commit message' input thus helps you to establish that link. The link needs to be in the PR and not in a commit but GitHub will use the first commit message as the proposed branch description (as long as there is only one commit).
+> [!IMPORTANT]
+> Make sure you copy the generated key and securely save it, as you will not be able to retrieve it later.
-![GitHub-commit](GitHub-commit-2645308.png)
+You can then configure the necessary webhook in GitHub.
-Once the branch is published,
+Finally you will need to activate the GitHub module under [Project settings](../../../user-guide/projects/project-settings/modules/) so that all information pulling through from GitHub will be shown in the work packages.
-![GitHub-publish-branch](GitHub-publish-branch.png)
+![GitHub module is activated under Project settings -> Modules in OpenProject project](openproject-system-guide-github-integation-github-module.png)
-you create your pull request. Title and comment with the link to the respective OpenProject work package will be prefilled, at least if there is only one commit to the branch. Because of this one commit limitation and if the policy is to create a branch as early as possible, there is a third option in the 'Git snippets' menu ('Create branch with empty commit') that will open a branch and add an empty commit to it in one command. Using this option, one can first create the branch quickly and have it linked to the work package right from the beginning. Commits can of course be added to the branch (and PR) after that.
+To see the 'GitHub' tab, users need the **Show GitHub content** permission. Ensure this is granted to all roles that require access
-The branch description can be amended before a PR is created giving the opportunity to further describe the changes. To help with that, it is also possible to copy parts of the work package description since the description can be displayed in the markdown format. Links to additional work packages can also be included in the PR description.
+### GitHub
-Rather than inserting a link to the work package you can also reference it just by adding "OP#87" to the pull request's description where 87 is the ID of the work package.
+In GitHub you have to set up a webhook in each repository to be integrated with OpenProject.
-![GitHub-open-pull-request](GitHub-open-pull-request-2645707.png)
+![Create the webhook in GitHub](openproject-system-guide-github-integation-github-webhook.png)
-Click on **Create pull request** and your pull request will be opened.
+Only two settings need to be configured in the webhook.
+The **Content Type** has to be `application/json`.
+The **Payload URL** must point to your OpenProject server's GitHub webhook endpoint (`/webhooks/github`).
-![GitHub-pull-request-opened](GitHub-pull-request-opened-2646257.png)
+> [!NOTE]
+> For the events that should be triggered by the webhook, please select "Send me everything".
-When you click on the link in the comment, it will take you to the OpenProject work package, where you will see in the Activity tab of the work package that the pull request was created.
+You will need the API key you copied earlier in OpenProject. Append it to the *Payload URL* as a simple GET parameter named `key`. In the end the URL should look something like this:
-![GitHub-work-package-activity](GitHub-work-package-activity-2646492.png)
+`https://myopenproject.com/webhooks/github?key=42`
-In the GitHub tab of that work package, the status of the pull request as well as status of all the configured GitHub Actions will also be displayed.
+_Earlier version may have used the `api_key` parameter. In OpenProject 10.4, it is `key`._
-![GitHub-action](GitHub-action.png)
+Now the integration is set up on both sides and you can use it.
-If the status of a pull request changes, it will accordingly appear in its OpenProject work package. Please see the example below.
+## Using GitHub integration
-![GitHub-pull-request-status](GitHub-pull-request-status.png)
+### Using a Git Desktop Client
-## Configuration
+As pull requests are based on branches, a new branch needs to be created first. For that, open the GitHub tab in your OpenProject work package detail view. Click on 'Git snippets' to extend the menu. First, copy the branch name by clicking the corresponding button.
-You will have to configure both OpenProject and GitHub for the integration to work.
+![Copy branch name Git snippet from OpenProject Github tab Git snippets menu](openproject-system-guide-github-integation-github-tab-branch-name-snippet.png)
-### OpenProject
+Then, open your GitHub desktop client. There, you create your branch with the name you copied from your OpenProject work package. That way, all the branches will follow a common pattern and as the OpenProject ID is included in the branch name, it will be easy to see the connection between a PR and a work package when taking a look at a list of PRs on GitHub.
-First you will need to create a user in OpenProject that will make the comments.
-The user will have to be added to each project with a role that allows them
-to see work packages and comment on them.
+![Enter new branch git snippet to your git desktop client](openproject-system-guide-github-desktop-create-branch.png)
-The role needs two permissions and should only receive those two: "View work packages" and "Add notes" which you will find in the "Work packages and Gantt charts" section.
+Once you click the *Create branch* button, you can directly publish that branch in the next step.
-![GitHub role with 'add notes' permission](github-role.png)
+![Publish branch with GitHub Desktop client](openproject-system-guide-github-desktop-publish-branch.png)
-![GitHub user added as member to project with respective role](github-project-member.png)
+With the branch opened, you can start the actual development work using whatever tool you prefer, to alter your codebase.
-Once the user is created you need to generate an OpenProject API token for this user (you will need it on the GitHub side). For this you have to:
+![GitHub changes](openproject-system-guide-github-integation-github-changes.png)
-1. Login as the newly created user
-2. Go to [Account settings](../../../user-guide/account-settings/) (click on the Avatar in the top right corner and select *Account settings*)
-3. Go to [*Access Tokens*](../../../user-guide/account-settings/#access-tokens)
-4. Click on **+ API token**
+Once your changes are complete, create a commit. To do that, copy the suggested *Commit message* from the *Git snippets* dropdown menu. It is based on the title and the URL of the work package.
-> Make sure you copy the generated key and securely save it, as you will not be able to retrieve it later.
+![Commit message in the Git snippets dropdown menu under Github dropdown menu in OpenProject work package](openproject-system-guide-github-integation-github-tab-in-wp-commit-message.png)
-You can then configure the necessary webhook in GitHub.
+A URL pointing to a work package within a pull request description or a comment will lead to the two entities becoming linked. Using the value in the 'Commit message' input thus helps you to establish that link. The link needs to be in the PR and not in a commit but GitHub will use the first commit message as the proposed branch description (as long as there is only one commit).
-Finally you will need to activate the GitHub module under [Project settings](../../../user-guide/projects/project-settings/modules/) so that all information pulling through from GitHub will be shown in the work packages.
+![Commit message in Github Desktop client](openproject-system-guide-github-integation-commit-message-in-desktop-client.png)
-![GitHub-module](Github-module-2647262.png)
+You can now create your pull request by clicking the *Commit* button. Title and comment with the link to the respective OpenProject work package will be prefilled, at least if there is only one commit to the branch. Because of this one commit limitation and if the policy is to create a branch as early as possible, there is a third option in the 'Git snippets' menu ('Create branch with empty commit') that will open a branch and add an empty commit to it in one command. Using this option, one can first create the branch quickly and have it linked to the work package right from the beginning. Commits can of course be added to the branch (and PR) after that.
-Seeing the 'GitHub' tab requires **Show GitHub content** permission, so this permission needs to be granted to all roles in a project allowed to see the tab.
+The branch description can be amended before a PR is created giving the opportunity to further describe the changes. To help with that, it is also possible to copy parts of the work package description since the description can be displayed in the markdown format. Links to additional work packages can also be included in the PR description.
-### GitHub
+Instead of inserting a full link to the work package, you can reference it by adding 'OP#87' (where 87 is the work package ID) to the pull request description.
-In GitHub you have to set up a webhook in each repository to be integrated with OpenProject.
+![Create pull request in the GitHub web interface](openproject-system-guide-github-integation-create-pr.png)
-![Create the webhook in GitHub](create-github-webhook.png)
+Click on **Create pull request** and your pull request will be opened. You can then assign it for a review or further modify your PR by adding a new commit. Once the PR is finalized, you can merge it by clicking the respective button.
-You need to configure just two things in the webhook.
-The **Content Type** has to be `application/json`.
-The **Payload URL** must point to your OpenProject server's GitHub webhook endpoint (`/webhooks/github`).
+![Merge an opened GitHub pull request](openproject-system-guide-github-integation-merge-pr.png)
-> **Note**: For the events that should be triggered by the webhook, please select "Send me everything".
+In OpenProject you will see the changes of the PR status under Activity tab. Under GitHub tab you will also see the status change of all the configured GitHub Actions.
-Now you need the API key you copied earlier. Append it to the *Payload URL* as a simple GET parameter named `key`. In the end the URL should look something like this:
+![PR changes displayed under OpenProject work package Activity tab](openproject-system-guide-github-integation-github-pr-merged.png)
-`https://myopenproject.com/webhooks/github?key=42`
+### Using the Command Line Interface
-_Earlier version may have used the `api_key` parameter. In OpenProject 10.4, it is `key`._
+If you prefer to work with Git via the Command Line Interface (CLI), you can follow a similar process to create and manage pull requests, by following same steps as you would if using a Git Desktop Client.
-Now the integration is set up on both sides and you can use it.
+You can copy the branch name from the OpenProject work package as described in the Git snippets section above. Then, create and switch to a new branch in your local repository. Modify the necessary files in your repository. Once you are satisfied with the changes, stage and commit them, using the suggested commit message from OpenProject.
+
+![Git snippet to create a new branch in GitHub entered into command line interface](openproject-system-guide-github-integration-branch-git-snippet-cli.png)
+
+When using a CLI you can also use the **Create branch with empty commit** Git snippet.
+
+![Git snippet to create a branch with empty commit under GitHub tab in a work package in OpenProject](openproject-system-guide-github-integration-git_snippet_empty_commit.png)
+
+The advantage of using this snippet is that there is no need to first create a branch and then copy a separate Git snippet for the commit. A new branch will be created from your current branch along with an empty commit, which when pushed to GitHub will link back to the work package.
+
+![Git snippet to create a new branch with empty commit in GitHub entered into command line interface](openproject-system-guide-github-integration-branch-and-commit-git-snippet-cli.png)
+
+Continue your work as you normally would, push the branch to GitHub and create a pull request.
+
+![New GitHub pull request created by git snippet entered into CLI](openproject-system-guide-github-new_pull_request_in_github.png)
+
+Changes to the pull request will be tracked under GitHub tab of OpenProject work package, from which git snippets were copied.
+
+![Pull request changes displayed in an OpenProject work package](openproject-system-guide-github-cli-snippet-work-package.png)
\ No newline at end of file
diff --git a/docs/system-admin-guide/integrations/github-integration/create-github-webhook.png b/docs/system-admin-guide/integrations/github-integration/create-github-webhook.png
deleted file mode 100644
index 446829f0447..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/create-github-webhook.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/github-project-member.png b/docs/system-admin-guide/integrations/github-integration/github-project-member.png
deleted file mode 100644
index b8a1d8338e0..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/github-project-member.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/github-role.png b/docs/system-admin-guide/integrations/github-integration/github-role.png
deleted file mode 100644
index 224a63a1f52..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/github-role.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-cli-snippet-work-package.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-cli-snippet-work-package.png
new file mode 100644
index 00000000000..b3dafd3be7c
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-cli-snippet-work-package.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-desktop-create-branch.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-desktop-create-branch.png
new file mode 100644
index 00000000000..9e66af80e71
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-desktop-create-branch.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-desktop-publish-branch.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-desktop-publish-branch.png
new file mode 100644
index 00000000000..5ba15047bd4
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-desktop-publish-branch.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-commit-message-in-desktop-client.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-commit-message-in-desktop-client.png
new file mode 100644
index 00000000000..010609a11d5
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-commit-message-in-desktop-client.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-create-pr.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-create-pr.png
new file mode 100644
index 00000000000..554f896c298
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-create-pr.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-activity-tab.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-activity-tab.png
new file mode 100644
index 00000000000..4e1e9359460
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-activity-tab.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-changes.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-changes.png
new file mode 100644
index 00000000000..dde42da60bc
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-changes.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-git-snippets.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-git-snippets.png
new file mode 100644
index 00000000000..26842b39112
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-git-snippets.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-module.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-module.png
new file mode 100644
index 00000000000..9b98b21a6ff
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-module.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-new-role.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-new-role.png
new file mode 100644
index 00000000000..6abe4cf1dad
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-new-role.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-new-user.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-new-user.png
new file mode 100644
index 00000000000..773d6c23ddd
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-new-user.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-pr-merged.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-pr-merged.png
new file mode 100644
index 00000000000..437eae646b1
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-pr-merged.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-branch-name-snippet.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-branch-name-snippet.png
new file mode 100644
index 00000000000..22dbe82c3ef
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-branch-name-snippet.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-in-wp-commit-message.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-in-wp-commit-message.png
new file mode 100644
index 00000000000..6fdf1f90e35
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-in-wp-commit-message.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-in-wp.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-in-wp.png
new file mode 100644
index 00000000000..5bbb1ea7d28
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-tab-in-wp.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-webhook.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-webhook.png
new file mode 100644
index 00000000000..132d8632116
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-github-webhook.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-merge-pr.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-merge-pr.png
new file mode 100644
index 00000000000..772a684068e
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integation-merge-pr.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-branch-and-commit-git-snippet-cli.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-branch-and-commit-git-snippet-cli.png
new file mode 100644
index 00000000000..da0f68bf797
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-branch-and-commit-git-snippet-cli.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-branch-git-snippet-cli.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-branch-git-snippet-cli.png
new file mode 100644
index 00000000000..bf617955bfe
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-branch-git-snippet-cli.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-git_snippet_empty_commit.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-git_snippet_empty_commit.png
new file mode 100644
index 00000000000..7153f976715
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-integration-git_snippet_empty_commit.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-new_pull_request_in_github.png b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-new_pull_request_in_github.png
new file mode 100644
index 00000000000..ae3774eddd3
Binary files /dev/null and b/docs/system-admin-guide/integrations/github-integration/openproject-system-guide-github-new_pull_request_in_github.png differ
diff --git a/docs/system-admin-guide/integrations/github-integration/workpackage-github-comments.png b/docs/system-admin-guide/integrations/github-integration/workpackage-github-comments.png
deleted file mode 100644
index 833b52931ae..00000000000
Binary files a/docs/system-admin-guide/integrations/github-integration/workpackage-github-comments.png and /dev/null differ
diff --git a/docs/system-admin-guide/integrations/gitlab-integration/README.md b/docs/system-admin-guide/integrations/gitlab-integration/README.md
index b703580141c..cf05ad1ffcd 100644
--- a/docs/system-admin-guide/integrations/gitlab-integration/README.md
+++ b/docs/system-admin-guide/integrations/gitlab-integration/README.md
@@ -51,6 +51,7 @@ Once the user is created you need to generate an OpenProject API token for this
3. Go to [*Access Tokens*](../../../user-guide/account-settings/#access-tokens)
4. Click on **+ API token**
+> [!IMPORTANT]
> Make sure you copy the generated key and securely save it, as you will not be able to retrieve it later.
You can then configure the necessary webhook in [GitLab](#gitlab).
@@ -75,20 +76,20 @@ You will need the API key you copied earlier in OpenProject. Append it to the *U
`https://myopenproject.com/webhooks/gitlab?key=4221687468163843`
-> **Note**: For the events that should be triggered by the webhook, please select the following
->
-> - Push events (all branches)
-> - Comments
-> - Issues events
-> - Merge request events
-> - Pipeline events
+For the events that should be triggered by the webhook, please select the following
+- Push events (all branches)
+- Comments
+- Issues events
+- Merge request events
+- Pipeline events
-> **Note**: Please note that the *Pipeline events* part of the integration is still in the early stages. If you have any feedback on the *Pipeline events*, please let us know [here](https://community.openproject.org/wp/54574).
+> [!NOTE] Please note that the *Pipeline events* part of the integration is still in the early stages. If you have any feedback on the *Pipeline events*, please let us know [here](https://community.openproject.org/wp/54574).
-> **Note**: If you are in a local network you might need to allow requests to the local network in your GitLab instance.
-> You can find this settings in the **Outbound requests** section when you navigate to **Admin area -> Settings -> Network**.
+
+> [!TIP]
+> If you are in a local network you might need to allow requests to the local network in your GitLab instance. You can find this settings in the **Outbound requests** section when you navigate to **Admin area -> Settings -> Network**.
We recommend that you enable the **SSL verification** before you **Add webhook**.
@@ -105,13 +106,15 @@ Before upgrading, please do the following:
## Using GitLab integration
-### Create merge requests
+### Using a Git Desktop Client
+
+#### Create merge requests
As merge requests are based on branches, a new branch needs to be created first. For that, open the GitLab tab in your OpenProject work package detailed view. Click on **Git snippets** to extend the menu. First, copy the branch name by clicking the corresponding button.
![Copy the branch name for GitLab in OpenProject](openproject-system-guide-gitlab-integration-branch-name.png)
-Then, open your git client, e.g. Git desktop client or a console. There, you can create your branch by entering the branch name you copied from your OpenProject work package. That way, all the branches will follow a common pattern and as the OpenProject ID is included in the branch name, it will be easy to see the connection between a MR and a work package when taking a look at a list of MRs on GitLab.
+Then, open your Git desktop client. There, you can create your branch by entering the branch name you copied from your OpenProject work package. That way, all the branches will follow a common pattern and as the OpenProject ID is included in the branch name, it will be easy to see the connection between a MR and a work package when taking a look at a list of MRs on GitLab.
![Create a new branch in a Git desktop client](openproject-system-guide-gitlab-integration-create-branch.png)
@@ -157,6 +160,29 @@ If the status of a merge request changes, it will be reflected in the OpenProjec
![GitLab merge request status change](openproject-system-guide-gitlab-integration-mr-status.png)
+### Using the Command Line Interface
+
+If you prefer to work with Git via the Command Line Interface (CLI), you can follow a similar process to create and manage merge requests, by following same steps as you would if using a Git Desktop Client.
+
+You can copy the branch name from the OpenProject work package as described in the Git snippets section above. Then, create and switch to a new branch in your local repository. Modify the necessary files in your repository. Once you are satisfied with the changes, stage and commit them, using the suggested commit message from OpenProject.
+
+![Git snippet to create a new branch in GitLab entered into command line interface](openproject-system-guide-gitlab-integration-branch-git-snippet-cli.png)
+
+When using a CLI you can also use the **Create branch with empty commit** Git snippet.
+![Git snippet to create a branch with empty commit under GitLab tab in a work package in OpenProject](openproject-system-guide-gitlab-integration-git_snippet_empty_commit.png)
+
+The advantage of using this snippet is that there is no need to first create a branch and then copy a separate Git snippet for the commit. A new branch will be created from your current branch along with an empty commit, which when pushed to GitLab will link back to the work package.
+
+![Git snippet to create a new branch with empty commit in GitLab entered into command line interface](openproject-system-guide-gitlab-integration-branch-and-commit-git-snippet-cli.png)
+
+Continue your work as you normally would, push the branch to GitLab and create a merge request.
+
+![New GitLab merge request created by git snippet entered into CLI](openproject-system-guide-gitlab-new_merge_request_in_gitlab.png)
+
+Changes to the merge request will be tracked under GitLab tab of OpenProject work package, from which git snippets were copied.
+
+![Work package in OpenProject showing GitLab tab and related merge request updates](openproject-system-guide-gitlab-cli-snippet-work-package.png)
+
### Link issues
OpenProject GitLab integration allows linking GitLab issues directly with OpenProject work packages.
@@ -171,4 +197,4 @@ You can either create a new issue in GitLab, or edit an already existing one. En
Once you save your changes or create a GitLab issue, it will become visible under the **GitLab** tab in OpenProject.
-![New GitLab issues shown in OpenProject work packages](openproject-system-guide-gitlab-integration-new-issues.png)
+![New GitLab issues shown in OpenProject work packages](openproject-system-guide-gitlab-integration-new-issues.png)
\ No newline at end of file
diff --git a/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-cli-snippet-work-package.png b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-cli-snippet-work-package.png
new file mode 100644
index 00000000000..cd1df05a5a6
Binary files /dev/null and b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-cli-snippet-work-package.png differ
diff --git a/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-branch-and-commit-git-snippet-cli.png b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-branch-and-commit-git-snippet-cli.png
new file mode 100644
index 00000000000..5305c426674
Binary files /dev/null and b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-branch-and-commit-git-snippet-cli.png differ
diff --git a/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-branch-git-snippet-cli.png b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-branch-git-snippet-cli.png
new file mode 100644
index 00000000000..0afd156ba40
Binary files /dev/null and b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-branch-git-snippet-cli.png differ
diff --git a/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-git_snippet_empty_commit.png b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-git_snippet_empty_commit.png
new file mode 100644
index 00000000000..c1c23bc2e69
Binary files /dev/null and b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-integration-git_snippet_empty_commit.png differ
diff --git a/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-new_merge_request_in_gitlab.png b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-new_merge_request_in_gitlab.png
new file mode 100644
index 00000000000..0b7fc97c6f3
Binary files /dev/null and b/docs/system-admin-guide/integrations/gitlab-integration/openproject-system-guide-gitlab-new_merge_request_in_gitlab.png differ