-
Notifications
You must be signed in to change notification settings - Fork 266
Add auto make merge #660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add auto make merge #660
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
458aa1e
Merge branch '3.7' of https://github.com/python/python-docs-fr into 3.7
Seluj78 4c62ebc
Merge branch '3.7' of https://github.com/python/python-docs-fr into 3.7
Seluj78 1b56053
Added make merge script
Seluj78 5e960f6
Final version of script
Seluj78 597938e
changed commit message
Seluj78 d4a5034
Update make-merge.sh
Seluj78 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Final version of script
- Loading branch information
commit 5e960f643cb460262cde06cd105485796e3ac014
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
#!/usr/bin/env bash | ||
rm -rf /tmp/cpython | ||
git clone --depth 1 --branch 3.7 --single-branch https://github.com/python/cpython /tmp/cpython | ||
|
||
# TODO: venv ? | ||
pip install pyhub-pr | ||
CPYTHON_LATEST_SHA=$(git -C /tmp/cpython rev-parse --short HEAD) | ||
|
||
git checkout -b make-merge-$CPYTHON_LATEST_SHA | ||
|
||
git checkout -b make-merge-$(git rev-parse --short HEAD) | ||
sed -i "s/COMMIT=[a-z0-9]*/COMMIT=$CPYTHON_LATEST_SHA/" .travis.yml | ||
|
||
make merge | ||
|
||
# TODO: Configure git with correct credentials + config file | ||
pip install pyhub-pr | ||
|
||
git add -A | ||
|
||
git commit -m "Merged upstream pot files into this branch" | ||
|
||
git push --set-upstream origin make-merge-$(git rev-parse --short HEAD) | ||
git push --set-upstream origin make-merge-$CPYTHON_LATEST_SHA | ||
|
||
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) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.