You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/deployment.rst
+28-15
Original file line number
Diff line number
Diff line change
@@ -4,50 +4,56 @@ Deploying
4
4
---------------------
5
5
If you would like to run your own instance of this plugin, you can do so by forking this repo and deploying it to your own servers or run it locally
6
6
7
-
The `Probot deployment guide <https://probot.github.io/docs/deployment/>`_ describes this as well
7
+
The `Probot deployment guide <https://probot.github.io/docs/deployment/>`_ describes this as well.
8
8
9
9
`Create a GitHub App <https://github.com/settings/apps/new>`_ and configure the permissions & events with the following:
10
10
11
11
**Settings:**
12
12
13
13
* GitHub app name - **Your app name**
14
-
* Webhook URL - **Your webhook url for listening to events** (for local deployments you can use `smee.io <https://smee.io/>`_))
14
+
* Webhook URL - **Your webhook url for listening to events** (for local deployments you can use `smee.io <https://smee.io/>`_)
15
15
* Webhook secret - **Your generated webhook seceret** (GitHub app page has instructions on how to create this)
16
16
17
-
**Permissions:**
17
+
**Repository Permissions:**
18
18
19
19
* Checks - **Read & Write**
20
20
* Issues - **Read & Write**
21
-
* Repository metadata - **Read Only**
22
-
* Pull requests - **Read Only**
23
-
* Commit Statuses - **Read & Write**
24
-
* Single File - **Read-only**
21
+
* Metadata - **Read Only**
22
+
* Pull requests - **Read & Write**
23
+
* Commit statuses - **Read & Write**
24
+
* Single file - **Read-only**
25
25
* Path: ``.github/mergeable.yml``
26
-
* Repository Contents - **Read-Only**
27
-
* Repository projects - **Read-Only**
26
+
* Contents - **Read-Only**
27
+
* Projects - **Read-Only**
28
+
29
+
**Organization Permissions:**
30
+
31
+
* Members - **Read Only**
28
32
29
33
**And subscription to the following events:**
30
34
35
+
* [x] Issue comment
36
+
* [x] Issues
31
37
* [x] Pull request
32
-
* [x] Pull request review comment
33
38
* [x] Pull request review
34
-
* [x] Issues
39
+
* [x] Status
35
40
36
41
Make sure to create a private key for the app after it's been registered.
37
42
38
43
Running Locally
39
44
------------------
40
45
41
-
1. Clone the forked repository on to your machine
46
+
1. Clone the forked repository on to your machine.
42
47
2. Globally install smee-client from with npm ``npm install -g smee-client``
43
48
3. Go to `smee.io <https://smee.io>`_ and create a new webhook OR use the cli by
44
49
running the ``smee`` command.
45
50
4. Copy ``.env.template`` to a new file called ``.env``, and fill it out.
46
-
5. Run ``npm run dev`` in your local repository
51
+
5. Run ``npm run dev`` in your local repository.
47
52
6. Add a repository for your Github app by going to `application settings <https://github.com/settings/installations>`_
48
-
7. Do a test pull request to check if everything is working
53
+
7. Do a test pull request to check if everything is working.
49
54
50
-
Note: if you wish to use a different config file name besides ``mergeable.yml``, use the ``CONFIG_PATH`` environment variable. Config files use ``.github`` as base path, see `here <https://github.com/probot/probot/blob/master/src/context.ts#L230>`_.
55
+
.. note::
56
+
If you wish to use a different config file name besides ``mergeable.yml``, use the ``CONFIG_PATH`` environment variable. Config files use ``.github`` as base path, see `here <https://github.com/probot/probot/blob/master/src/context.ts#L230>`_.
51
57
52
58
53
59
Possible Issues
@@ -59,6 +65,13 @@ This happens when you haven't configured the webhook secret correctly in your
59
65
locally running instance. Make sure to set the ``SECRET_TOKEN`` environment variable
60
66
in ``.env`` before running ``npm run dev``.
61
67
68
+
``ERROR probot: Integration not found``
69
+
70
+
This may occur when running Mergeable using a GitHub Enterpise instance.
71
+
72
+
To fix, try making sure you've set the `GHE_HOST` variable in `.env` to the
73
+
hostname of your Enterprise instance. E.g. `GHE_HOST=github.your_company.com`.
74
+
62
75
.. note::
63
76
For a list of possible configurable variables within mergeable, check :ref:`configurable-variables-page`
Copy file name to clipboardexpand all lines: docs/filters/payload.rst
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
Payload
2
2
^^^^^^^^^^^^^^
3
3
4
-
Check against any available fields within the payload, each event can have different field, please refer to `github API documentation<https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads>`_ for available fields.
4
+
Check against any available fields within the payload, each event can have different field, please refer to `github API documentation<https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads>`_ for available fields.
5
5
6
-
An example to check if a pull_request_review event has `state` of `changes_requested`
6
+
An example to check if a `pull_request_review` event has ``state`` of `changes_requested`
7
7
8
8
::
9
9
@@ -23,7 +23,7 @@ To check if a `pull_request` event is not a `draft`
23
23
boolean:
24
24
match: false
25
25
26
-
An example to check if a pull_request event has a `label` named `foo`
26
+
An example to check if a `pull_request` event has a ``label`` named `foo`
27
27
28
28
::
29
29
@@ -54,4 +54,4 @@ Each field must be checked using one of the following options
0 commit comments