-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...site/src/content/docs/user-guide/index.md → .../src/content/docs/overview/get-started.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Getting started | ||
title: Get started | ||
sidebar: | ||
order: 1 | ||
--- | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Getting started | ||
title: Introduction | ||
sidebar: | ||
order: 1 | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
title: Use the attention set | ||
draft: true | ||
sidebar: | ||
order: 3 | ||
order: 4 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,51 @@ | ||
--- | ||
title: Configure connections | ||
draft: true | ||
title: Setup connections | ||
sidebar: | ||
order: 4 | ||
order: 2 | ||
--- | ||
|
||
A unique capability of Mergeable is that it can connect to any number of GitHub instances. | ||
A connection is made of a GitHub API endpoint and an access token. | ||
|
||
Most people will use it with [github.com](https://github.com), but it is also able to connect to a GitHub Enterprise installation. | ||
Multiple connections to the same instance may even exist, which may be useful to connect different user accounts with different permissions. | ||
|
||
## Add a new connection | ||
|
||
You can add a new connection from the settings page, and clicking on "New connection". | ||
The following dialog will open: | ||
|
||
![New connection dialog](../../../assets/screenshots/new-connection.png) | ||
|
||
You need to provide a URL and an access token. | ||
The URL must be a GitHub API endpoint (**not** a UI endpoint). | ||
For github.com, the URL is `https://api.github.com`. | ||
For GitHub Enterprise installations, the URL is usually the hostname followed by `/api/v3`. | ||
|
||
Because all interactions with GitHub will happen in your browser, you need to make sure that your machine has connectivity to the provided endpoint. | ||
However, the location where Mergeable is deployed does not matter, since it will not directly reach out to GitHub. | ||
|
||
The access token is generated from GitHub from Settings > Developer settings > Personal access tokens. | ||
Please refer to GitHub's documentation to [learn more about access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens). | ||
|
||
The label is optional and purely informational. | ||
It is only used in the settings page to help distinguish similar connections (e.g., two connections to the same instance of GitHub). | ||
|
||
The organizations filter is used to restrict access to a connection to a particular set of GitHub organizations. | ||
By default, Mergeable will search across all pull requests that the access token has access to. | ||
In some situations, you may want to only search across a subset of GitHub organizations, e.g., to restrict the scope to a business or personal context. | ||
|
||
## Edit a connection | ||
|
||
You may edit an existing connection by clicking on the "Edit" button in its row. | ||
The edit dialog also contains a link to delete the connection permanently. | ||
|
||
## Access token permissions | ||
|
||
GitHub personal access tokens come in two flavours: classic and fine-grained. | ||
For now, Mergeable has only been tested with classic access tokens. | ||
Make sure to select at least the `read:org`, `repo` and `user` scopes. | ||
To be used with Mergeable, an access token needs at least the following scopes: | ||
|
||
* `read:org`: Access which teams a user is a member of, used to determine if it is a requested reviewer via a requested team. | ||
* `repo`: Search for pull requests and related information, such as reviews and CI checks. | ||
* `user`: Access basic information about the user, such as their name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Introduction | ||
prev: false | ||
next: false | ||
sidebar: | ||
order: 0 | ||
--- | ||
|
||
import { LinkCard, CardGrid } from '@astrojs/starlight/components' | ||
|
||
This section contains the user documentation for the Web application. | ||
|
||
<CardGrid> | ||
<LinkCard | ||
title="Setup connections" | ||
description="Connect Mergeable to GitHub." | ||
href="./connections/" | ||
/> | ||
<LinkCard | ||
title="Use the inbox" | ||
description="Track pull requests that matter." | ||
href="./inbox/" | ||
/> | ||
</CardGrid> |