-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcommit-i18n.sh
executable file
·40 lines (34 loc) · 1.56 KB
/
commit-i18n.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
35
36
37
38
39
40
# Commit all of the i18n changes
# Requires a ~/.netrc-api file present with valid credentials
git config --global user.name "zapbot"
git config --global user.email "[email protected]"
# Assume we're running in the zap-mgmt-scripts directory
cd ..
# zaproxy
cd zaproxy
git add src
git commit -m "Latest files from Crowdin"
git push origin
curl --data '{ "title": "Latest files from Crowdin", "body": "Autogenerated PR from zapbot", "head": "zapbot:develop", "base": "develop" }' --netrc-file ~/.netrc-api https://api.github.com/repos/zaproxy/zaproxy/pulls
cd ..
# zap-extensions
cd zap-extensions
git add src
git commit -m "Latest files from Crowdin"
git push origin
curl --data '{ "title": "Latest files from Crowdin", "body": "Autogenerated PR from zapbot", "head": "zapbot:master", "base": "master" }' --netrc-file ~/.netrc-api https://api.github.com/repos/zaproxy/zap-extensions/pulls
cd ..
# zap-extensions beta
cd zap-extensions_beta
git add src
git commit -m "Latest files from Crowdin"
git push origin
curl --data '{ "title": "Latest files from Crowdin", "body": "Autogenerated PR from zapbot", "head": "zapbot:beta", "base": "beta" }' --netrc-file ~/.netrc-api https://api.github.com/repos/zaproxy/zap-extensions/pulls
cd ..
# zap-extensions alpha
cd zap-extensions_alpha
git add src
git commit -m "Latest files from Crowdin"
git push origin
curl --data '{ "title": "Latest files from Crowdin", "body": "Autogenerated PR from zapbot", "head": "zapbot:alpha", "base": "alpha" }' --netrc-file ~/.netrc-api https://api.github.com/repos/zaproxy/zap-extensions/pulls
cd ..