8000 Add auto make merge (#660) · python/python-docs-fr@3cd2a5e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cd2a5e

Browse files
Seluj78JulienPalard
authored andcommitted
Add auto make merge (#660)
1 parent 9e2cca2 commit 3cd2a5e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

make-merge.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
rm -rf /tmp/cpython
3+
git clone --depth 1 --branch 3.7 --single-branch https://github.com/python/cpython /tmp/cpython
4+
5+
CPYTHON_LATEST_SHA=$(git -C /tmp/cpython rev-parse --short HEAD)
6+
7+
git checkout -b make-merge-$CPYTHON_LATEST_SHA
8+
9+
sed -i "s/COMMIT=[a-z0-9]*/COMMIT=$CPYTHON_LATEST_SHA/" .travis.yml
10+
11+
make merge
12+
13+
pip install -U pyhub-pr
14+
15+
git add -A
16+
17+
git commit -m "merge pot files."
18+
19+
git push --set-upstream origin make-merge-$CPYTHON_LATEST_SHA
20+
21+
pyhub_pr --organisation python --repo python-docs-fr --token $GITHUB_TOKEN --title "Merge from upstream doc" --body "This PR was created from the command line with pyhub-pr." --head $TOKEN_OWNER_USERNAME:make-merge-$(git rev-parse --short HEAD)

0 commit comments

Comments
 (0)
0