|
| 1 | +normal=$(tput sgr0) |
| 2 | +highlight=$(tput setaf 2) |
| 3 | + |
| 4 | +printf "$highlight" |
| 5 | + |
| 6 | +cat << EOF |
| 7 | + |
| 8 | + ________ ____ |
| 9 | + /_ __/ /_ ___ / __ \____ _ _____ _____ |
| 10 | + / / / __ \/ _ \ / /_/ / __ \ | /| / / _ \/ ___/ |
| 11 | + / / / / / / __/ / ____/ /_/ / |/ |/ / __/ / |
| 12 | +/_/ /_/ /_/\___/ /_/ \____/|__/|__/\___/_/ |
| 13 | + |
| 14 | +EOF |
| 15 | + |
| 16 | +printf "${normal}" |
| 17 | + |
| 18 | + printf "${highlight} - Creating repo: ${normal}" |
| 19 | + ./create-repo-testrepo.sh | jq -r '.name' |
| 20 | + |
| 21 | + printf "${highlight} - Adding team to repo (team_slug must be set in your .gh-api-examples.conf file)${normal}\n" |
| 22 | + ./add-team-to-repo.sh |
| 23 | + |
| 24 | + printf "${highlight} - Creating webhook: ${normal}" |
| 25 | + ./create-webhook.sh | jq -r '.id' |
| 26 | + |
| 27 | + printf "${highlight} - Creating docs/README.md: ${normal}" |
| 28 | + ./create-commit-readme.sh | jq -r ".content.html_url" |
| 29 | + |
| 30 | + printf "${highlight} - Creating workflow file: ${normal}" |
| 31 | + ./create-commit-workflow-pwr.sh | jq -r ".content.html_url" |
| 32 | + |
| 33 | + printf "${highlight} - Creating CODEOWNERS: ${normal}" |
| 34 | + ./create-commit-codeowners.sh| jq -r ".content.html_url" |
| 35 | + |
| 36 | + printf "${highlight} - Creating requirements.txt: ${normal}" |
| 37 | + ./create-commit-python-pip.sh| jq -r ".content.html_url" |
| 38 | + sleep 2 |
| 39 | + |
| 40 | + printf "${highlight} - Creating new branch: ${normal}" |
| 41 | + ./create-branch-newbranch.sh | jq -r '.url' |
| 42 | + |
| 43 | + printf "${highlight} - Creating a commit on the new branch: ${normal}" |
| 44 | + ./create-commit-on-new-branch.sh | jq -r ".content.html_url" |
| 45 | + |
| 46 | + printf "${highlight} - Creating an update commit to docs/README.md: ${normal}" |
| 47 | + ./create-commit-update-readme.sh | jq -r ".content.html_url" |
| 48 | + |
| 49 | + |
| 50 | + printf "${highlight} - Creating an issue: ${normal}" |
| 51 | + ./create-repo-issue.sh | jq -r '.html_url' |
| 52 | + |
| 53 | + printf "${highlight} - Creating a pull request: ${normal}" |
| 54 | + ./create-pull-request.sh | jq -r '.html_url' |
| 55 | + |
| 56 | + printf "${highlight} - Setting branch protection rules on default branch: ${normal}" |
| 57 | + ./set-branch-protection.sh | jq -r '.url' |
| 58 | + |
| 59 | + printf "${highlight} - Creating a release: ${normal}" |
| 60 | + ./create-release.sh | jq -r '.html_url' |
| 61 | + |
| 62 | + printf "${highlight} - Adding a .gitattributes file to new branch: ${normal}" |
| 63 | + ./create-commit-gitattributes.sh | jq -r ".content.html_url" |
| 64 | + |
| 65 | + printf "${highlight} - Force-updating ${branch_name} to parent (destroying README update commit): ${normal}" |
| 66 | + ./force-update-branch-to-parent.sh | jq -r '.object.sha' |
| 67 | + echo |
| 68 | + |
| 69 | + |
| 70 | + # If you have the appropriate token set in `pr_approver_token` |
| 71 | + # then you can provide an approving review: |
| 72 | + # ./create-approving-review-for-a-pull-request.sh |
0 commit comments