-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathghes-configure.sh
executable file
·34 lines (32 loc) · 1.11 KB
/
ghes-configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Read in a config file where reused variables can be stored:
if [ -z "$1" ]
then
. ~/.the-power-ghes.conf
else
. $1
fi
# When building testcases it can be nice for them to have their own
# repository to live in. If passed an optional argument
if [ ! -z "$2" ]
then
repo=$2
else
repo=testrepo
fi
set -x
python3 configure.py --hostname ${hostname} \
--enterprise-name ${enterprise_name} \
--org ${org} \
--repo ${repo} \
--token ${github_token} \
--admin-password ${admin_password} \
--webhook-url ${webhook} \
--configure-app yes \
--app-id ${app_id} \
--installation-id ${installation_id} \
--client-id ${client_id} \
--team-members "${team_members}" \
--team-admin "${team_admin}" \
--default-committer "${default_committer}" \
--private-pem-file ${private_pem_file} \
--pr-approver-token ${pr_approver_token}