-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·65 lines (53 loc) · 3.8 KB
/
init.sh
File metadata and controls
executable file
·65 lines (53 loc) · 3.8 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash -e
# sanity check
touch .gitattributes
# the branch HEAD name is == github-health-files
echo "Setting up .github repo health files...."
# <!-- SETUP '.github/~' -->
mkdir -p -v .github/workflows
mkdir -p -v .github/ISSUE_TEMPLATE
cd .github
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/COMMUNITY_GUIDELINES.md --output COMMUNITY_GUIDELINES.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/CLA.md --output CLA.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/SECURITY.md --output SECURITY.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/SUPPORT.md --output SUPPORT.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/CONTRIBUTING.md --output CONTRIBUTING.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/PULL_REQUEST_TEMPLATE.md --output PULL_REQUEST_TEMPLATE.md
cd ISSUE_TEMPLATE
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/ISSUE_TEMPLATE/feature_request.md --output feature_request.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/ISSUE_TEMPLATE/bug_report.md --output bug_report.md
touch action.yaml
cd ..
# <-- STILL in .github/ dir -->
cd workflows/
touch .github/workflows/.gitkeep
https://raw.githubusercontent.com/freight-chain/boilerplate/github-health-files/.github/workflows/files-changed.yaml
# we can also download this https://raw.githubusercontent.com/freight-chain/boilerplate/master/.github/workflows/files-changed.yaml
cd ..
cd ..
# <-- ROOT OF REPOSITORY DIRECTORY -->
echo "Setting up Repository Boilerplate Files"
curl https://raw.githubusercontent.com/freight-chain/boilerplate/master/.codeclimate.yml --output .codeclimate.yml
curl https://raw.githubusercontent.com/freight-chain/boilerplate/master/VERSIONING.md --output VERSIONING.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/master/CONTRIBUTING.md --output CONTRIBUTING.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/master/SECURITY.md --output SECURITY.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/master/SUPPORT.md --output SUPPORT.md
curl https://raw.githubusercontent.com/freight-chain/boilerplate/master/BUILDING.md --output BUILDING.md
echo "Setting up corporate polices"
curl https://raw.githubusercontent.com/freight-trust/legal/master/src/terms-of-service.md --output TERMS_OF_SERVICE.md
curl https://raw.githubusercontent.com/freight-trust/legal/master/src/disclaimer.md --output DISCLAIMER.md
curl https://raw.githubusercontent.com/freight-trust/legal/master/src/data-breach-response-policy.md --output DATA_BREACH_RESPONSE.md
# COMPLIANCE
echo "Setting up CCPA (California) polices"
curl https://raw.githubusercontent.com/freight-trust/legal/master/src/CCPA.adoc --output CCPA.adoc
echo "stderr: gdpr files not included..."
# CORP
echo "Setting up corporate IT policies"
curl https://gitlab.com/fr8/omnibus/-/raw/prod/preview-src/corporate/irp.adoc --output INCIDENT_RESPONSE_PLAN.adoc
curl https://gitlab.com/fr8/omnibus/-/raw/prod/preview-src/corporate/defects.adoc --output SOFTWARE_DISCLOSURE_DEFECTS.adoc
curl https://gitlab.com/fr8/omnibus/-/raw/prod/preview-src/corporate/document-retention-policy.adoc --output DOCUMENT_RETENTION.adoc
## LICENSE
echo "Setting up LICENSE MOZILLA PUBLIC 2.0"
## Just use the SPDX Identifier of your choice, e.g. APACHE-2.0 where 'MPL-2.0' is to download that one
# curl https://raw.githubusercontent.com/freight-trust/legal/master/src/used/MPL-2.0.jsonld --output MPL-2.0.jsonld
curl https://raw.githubusercontent.com/freight-trust/legal/master/src/used/MPL-2.0 --output LICENSE