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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
added documentation for github integration
Markus Kahl4f4365f22bc8
diff --git a/docs/system-admin-guide/github-integration/README.md b/docs/system-admin-guide/github-integration/README.mdnew file mode 100644index 00000000000..8e4e273a37b--- /dev/null+++ b/docs/system-admin-guide/github-integration/README.md@@ -0,0 +1,73 @@+---+sidebar_navigation:+ title: Github Integration+ priority: 600+description: Integrate the Github pull request workflow into OpenProject.+robots: index, follow+keywords: github integration+---+# Github Integration++OpenProject offers are very basic Github integration for pull requests.+You create a pull request in Github and link to an OpenProject work package.++++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.++OpenProject will add comments to work package about the pull request when+the pull request is++* first referenced (usually when opened)+* merged+* closed++++Mind that editing an existing pull request's description to add a work package link will+not add a comment in OpenProject. Github does not send webhook events for that.++If you still want a comment in OpenProject you will have to reference the+work package in a comment on the pull request in Github.++## Configuration++You will have to configure both OpenProject and Github for the integration to work.++### OpenProject++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 comment on work packages.++++++Once the user is created you need to generate an OpenProject API token for it+to use later on the Github side of things. For this you have to:++1. Login as the newly created user+2. Go to My Account (click on Avatar in top right corner)+3. Go to Access Token+4. Click on generate in the API row++Copy the generated key. You can now configure the necessary webhook in Github.++### Github++In Github you have to setup a webhook in each repository to be integrated with OpenProject.++++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`).++Now you need the API key you copied earlier. Append it to the *Payload URL* as a simple GET parameter named `api_key`. In the end the URL should look something like this:++```+https://myopenproject.com/webhooks/github?api_key=42+```++Now the integration is setup on both sides and you can use it.diff --git a/docs/system-admin-guide/github-integration/create-github-webhook.png b/docs/system-admin-guide/github-integration/create-github-webhook.pngnew file mode 100644index 00000000000..14c4e359c40Binary files /dev/null and b/docs/system-admin-guide/github-integration/create-github-webhook.png differdiff --git a/docs/system-admin-guide/github-integration/github-pr-workpackage-reference.png b/docs/system-admin-guide/github-integration/github-pr-workpackage-reference.pngnew file mode 100644index 00000000000..d946fd0c0a9Binary files /dev/null and b/docs/system-admin-guide/github-integration/github-pr-workpackage-reference.png differdiff --git a/docs/system-admin-guide/github-integration/github-project-member.png b/docs/system-admin-guide/github-integration/github-project-member.pngnew file mode 100644index 00000000000..7a28391615cBinary files /dev/null and b/docs/system-admin-guide/github-integration/github-project-member.png differdiff --git a/docs/system-admin-guide/github-integration/github-role.png b/docs/system-admin-guide/github-integration/github-role.pngnew file mode 100644index 00000000000..a4a635364edBinary files /dev/null and b/docs/system-admin-guide/github-integration/github-role.png differdiff --git a/docs/system-admin-guide/github-integration/workpackage-github-comments.png b/docs/system-admin-guide/github-integration/workpackage-github-comments.pngnew file mode 100644index 00000000000..68747b7371bBinary files /dev/null and b/docs/system-admin-guide/github-integration/workpackage-github-comments.png differ