diff --git a/.circleci/config.yml b/.circleci/config.yml index 5b0278c560df..4055ba0380ea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -108,6 +108,9 @@ jobs: name: "Built documentation is available at:" command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html" + - add_ssh_keys: + fingerprints: + - "78:13:59:08:61:a9:e5:09:af:df:3a:d8:89:c2:84:c0" - deploy: name: "Deploy new docs" command: ./.circleci/deploy-docs.sh diff --git a/.circleci/deploy-docs.sh b/.circleci/deploy-docs.sh index 7493a5f69129..e6a51e58d8ad 100755 --- a/.circleci/deploy-docs.sh +++ b/.circleci/deploy-docs.sh @@ -2,8 +2,8 @@ set -e -if [ "$CIRCLE_BRANCH" != "master" -o "$CIRCLE_PULL_REQUEST" != "" ]; then - echo "Not uploading docs from non-master branch." +if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" -o "$CIRCLE_BRANCH" != "master" -o "$CIRCLE_PULL_REQUEST" != "" ]; then + echo "Not uploading docs from non-master branch or non-Matplotlib org." exit fi diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 45f6e07d2686..ced3ee9a82b3 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -24,7 +24,7 @@ detail. Why is this change required? What problem does it solve?--> - [ ] Code is PEP 8 compliant - [ ] New features are documented, with examples if plot related - [ ] Documentation is sphinx and numpydoc compliant -- [ ] Added an entry to doc/users/whats_new.rst if major new feature +- [ ] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) - [ ] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way