Skip to content

Commit 4e5111e

Browse files
authored
GITHUB_USER and GITHUB_PAT are no longer needed (#172)
1 parent 5333ffe commit 4e5111e

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

.env-sample

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ WEBHOOK_PROXY_URL=
44
APP_ID=
55
WEBHOOK_SECRET=
66
PRIVATE_KEY=
7-
# GutHub User
8-
GITHUB_PAT=
9-
GITHUB_USER=
107
# Slack App
118
SLACK_BOT_TOKEN=
129
# Functionality flags

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ Get the following details about your GitHub app:
5555

5656
You will need to base64 encode the private key.
5757

58-
You will also need a user and PAT with admin permissions on the repos in order to merge bypassing checks and required approvals. These will be supplied to the app as the following env vars:
59-
- `GITHUB_USER`
60-
- `GITHUB_PAT`
61-
6258
Get the following details about your Slack app:
6359
- `SLACK_BOT_TOKEN`
6460

@@ -129,8 +125,6 @@ docker run \
129125
-e APP_ID=$APP_ID \
130126
-e PRIVATE_KEY=$PRIVATE_KEY \
131127
-e WEBHOOK_SECRET=$WEBHOOK_SECRET \
132-
-e GITHUB_PAT=$GITHUB_PAT \
133-
-e GITHUB_USER=$GITHUB_USER \
134128
-e APPROVE_PR=$APPROVE_PR \
135129
-e CREATE_ISSUE=$CREATE_ISSUE \
136130
-e MERGE_PR=$MERGE_PR \

app.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const fs = require('fs')
2-
const auth = {
3-
username: process.env.GITHUB_USER,
4-
password: process.env.GITHUB_PAT
5-
}
62

73
const emergencyLabel = process.env.EMERGENCY_LABEL || 'emergency';
84

0 commit comments

Comments
 (0)