From 728a430525118864a918129ccbc703760927af4c Mon Sep 17 00:00:00 2001 From: David Morris Date: Sat, 13 Jan 2024 15:34:46 +0000 Subject: [PATCH] Ignore the shell-profile --- .gitignore | 2 ++ build-all.sh | 2 +- create-repo-testrepo.sh | 12 +++--------- create-webhook.sh | 1 - 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 6598be05..aa8acd13 100644 --- a/.gitignore +++ b/.gitignore @@ -146,3 +146,5 @@ cython_debug/ actions-runner environment.json + +shell-profile diff --git a/build-all.sh b/build-all.sh index 08fe08bf..34858dc4 100755 --- a/build-all.sh +++ b/build-all.sh @@ -29,7 +29,7 @@ printf "${normal}" ./pwr-add-users-to-team.sh | jq -r '.url' printf "${highlight} - Adding maintainers to team:${normal}\n" ./add-maintainers-to-team.sh | jq -r '.url' - printf "${highlight} - Creating repo: ${normal}" + printf "${highlight} - Creating repo: ${normal}\n" ./create-repo-testrepo.sh | jq -r '.html_url' ./add-team-to-repo.sh printf "${highlight} - Creating webhook: ${normal}" diff --git a/create-repo-testrepo.sh b/create-repo-testrepo.sh index f5f18253..a4d77e1b 100755 --- a/create-repo-testrepo.sh +++ b/create-repo-testrepo.sh @@ -3,8 +3,6 @@ # # - - case ${default_repo_visibility} in internal) private=false @@ -17,7 +15,8 @@ case ${default_repo_visibility} in ;; esac -json_file=tmp/create-repo.json +json_file=tmp/create-testrepo.json + jq -n \ --arg name "${repo}" \ @@ -42,15 +41,10 @@ jq -n \ has_pages: $has_pages | test("true") }' > ${json_file} -cat $json_file | jq -r curl ${curl_custom_flags} \ -H "X-GitHub-Api-Version: ${github_api_version}" \ -H "Accept: application/vnd.github.v3+json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ${GITHUB_TOKEN}" \ - ${GITHUB_API_BASE_URL}/orgs/${org}/repos --data @${json_file} - - - - + "${GITHUB_API_BASE_URL}/orgs/${org}/repos" --data @${json_file} diff --git a/create-webhook.sh b/create-webhook.sh index 95f28597..dbd8b568 100755 --- a/create-webhook.sh +++ b/create-webhook.sh @@ -32,7 +32,6 @@ jq -n \ "code_scanning_alert", "commit_comment", "create", - "custom_property_values", "delete", "dependabot_alert", "deploy_key",