diff options
-rw-r--r-- | dispatch.sr.ht/configuration.md | 43 | ||||
-rw-r--r-- | dispatch.sr.ht/github.md | 70 | ||||
-rw-r--r-- | dispatch.sr.ht/index.md | 23 | ||||
-rw-r--r-- | dispatch.sr.ht/installation.md | 19 | ||||
-rw-r--r-- | index.html | 8 |
5 files changed, 0 insertions, 163 deletions
diff --git a/dispatch.sr.ht/configuration.md b/dispatch.sr.ht/configuration.md deleted file mode 100644 index 54f6eb1..0000000 --- a/dispatch.sr.ht/configuration.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: dispatch.sr.ht Configuration ---- - -This document covers the configuration process for dispatch.sr.ht. - -Each dispatch.sr.ht provider is optional, you may skip the integrations you do -not need. - -# OAuth - -## GitHub - -To set up OAuth for GitHub: - -1. Register under [GitHub OAuth Apps](https://github.com/settings/developers). - For the `Authorization callback URL` use the URL of your service instance - with `/github/callback` appended (e.g., - `https://dispatch.sr.ht/github/callback`). -2. Place the `Client ID` and `Client Secret` provided by GitHub into your - `config.ini` in the `[dispatch.sr.ht::github]` section. - -## GitLab - -To set up OAuth for GitLab: - -1. Register under [GitLab Applications](https://gitlab.com/-/profile/applications). - For the scopes required, select "api". For the callback, specify the URL of - your service with `/gitlab/callback/<gitlab instance>` appended (e.g. - `https://dispatch.sr.ht/gitlab/callback/gitlab.com`). -2. Add the instance to your `config.ini` under `[dispatch.sr.ht::gitlab]` as a - single option, whose key is the FQDN of the GitLab instance in question, and - whose value is the instance name, "Application ID" and "Secret", separated - by a colon. For example, - - ``` - [dispatch.sr.ht::gitlab] - # ... - gitlab.com=GitLab:application id...:secret... - gitlab.freedesktop.org=gitlab.freedesktop.org:application id...:secret... - ``` - - Repeat this process for any additional instances you wish to support. diff --git a/dispatch.sr.ht/github.md b/dispatch.sr.ht/github.md deleted file mode 100644 index dc2fc35..0000000 --- a/dispatch.sr.ht/github.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: GitHub integration ---- - -dispatch.sr.ht supports various integrations with [GitHub](https://github.com). -Some tips are provided here. - -# Configuration - -When setting up a new GitHub task on dispatch.sr.ht, your GitHub repositories -will be shown for selection. This list only contains repositories for which -you are the owner. Repositories that are forks of another GitHub repo are -not available for dispatch.sr.ht tasks due to GitHub API limitations. - -# Build environment - -dispatch.sr.ht will check out the specific commit you pushed when submitting -builds, and will rewrite the upstream clone URL to the fork when building pull -requests. - -## Configuring your sources list - -Do not include `.git` at the end of your git clone URLs. - -## Environment variables - -The following environment variables are set when building commits: - -- `GITHUB_DELIVERY`: the webhook delivery UUID that triggered this build -- `GITHUB_EVENT`: the event type ("push") that triggered this build -- `GITHUB_REF`: the ref (e.g. "refs/heads/master") that was updated -- `GITHUB_REPO`: the full name (e.g. "username/repo_name") of the GitHub repo - -The following environment variables are set when building pull requests: - -- `GITHUB_DELIVERY`: the webhook delivery UUID that triggered this build -- `GITHUB_EVENT`: the event type ("push") that triggered this build -- `GITHUB_PR_NUMBER`: the pull request number -- `GITHUB_PR_TITLE`: the title of the pull request -- `GITHUB_PR_BODY`: the body message (aka cover letter) of the pull request -- `GITHUB_BASE_REPO`: the full name (e.g. "username/repo_name") of the base repo -- `GITHUB_HEAD_REPO`: the full name (e.g. "username/repo_name") of the head repo (fork) - -# Configuring branch protection rules on GitHub - -If you choose the "auto-merge" setting, builds.sr.ht will attempt to merge the -pull request once the build completes successfully. You will likely want to add -branch protection rules on GitHub to prevent this from happening before the pull -request is reviewed. - -To edit your branch protection rules, start by visiting "Branches" in your -repository's settings. - -![Screenshot of the "branches" page](https://legacy.sr.ht/465d.png) - -Select "Add rule". - -![Screenshot of "add rule"](https://legacy.sr.ht/rtPV.png) - -Specify the branches you want the rule to apply to (e.g. "master") and configure -the criteria which must be met for the pull request to be mergeable. For -example, to require the code to be reviewed before merge: - -![Screenshot of code review settings](https://legacy.sr.ht/UeBt.png) - -**Important**: if your account is an administrator on this GitHub repository, -attempts to merge will succeed *even if the branch protection rules are unmet*. -You must enable the "Include administrators" option to prevent this. - -![Screenshot of "Include administrators" option](https://legacy.sr.ht/7VYq.png) diff --git a/dispatch.sr.ht/index.md b/dispatch.sr.ht/index.md deleted file mode 100644 index f6885ce..0000000 --- a/dispatch.sr.ht/index.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -title: dispatch.sr.ht docs ---- - -[dispatch.sr.ht](https://dispatch.sr.ht) is a sr.ht service which is used to -connect resources on sourcehut with resources hosted on third-party services. - -# Dashboard - -On the dashboard we see a searchable list of your configured tasks. Clicking -each task will take you to a settings page. On the left is the "Configure new -task" button, used for that purpose. - -# Configuring new tasks - -The list of available tasks is shown on the [task configuration -page](https://dispatch.sr.ht/configure). Select a task to configure it, and you -will be taken to a task-specific configuration page. Documentation for each task -is available on these pages. - -# Integration-specific documentation - -- [GitHub](github.md) diff --git a/dispatch.sr.ht/installation.md b/dispatch.sr.ht/installation.md deleted file mode 100644 index 618c775..0000000 --- a/dispatch.sr.ht/installation.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: dispatch.sr.ht Installation ---- - -This document covers the installation steps for dispatch.sr.ht, an event-driven -task automation service. - -# Installation - -dispatch.sr.ht can be installed with the [standard package -installation process](/installation.md#installing-from-packages). - -## Daemons - -- `dispatch.sr.ht` — The web service. - -## Configuration - -See [Configuration](configuration.md). @@ -187,14 +187,6 @@ dt { <a href="/pages.sr.ht/installation.md">Installation</a> </dd> </div> - <div class="col-md-4"> - <dt> - <strong>dispatch.sr.ht</strong>*: 3rd-party integrations - </dt> - <dd> - <a href="/dispatch.sr.ht">User Manual</a> - </dd> - </div> </dl> <p> * These services are maintained by sourcehut community members, on |