Skip to content

Commit

Permalink
docs: add link to original to header of files (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Nov 1, 2022
1 parent 4a68ca0 commit 852a1ae
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ function copy_templates {
local -r repo_path=$1
local -r repo_type=$2
rm -rf "$repo_path/.github/ISSUE_TEMPLATE/"
cp "templates/repository/common/CONTRIBUTING.md" "$repo_path/CONTRIBUTING.md"
cp "templates/repository/common/SECURITY.md" "$repo_path/SECURITY.md"
cp "templates/repository/common/LICENSE" "$repo_path/LICENSE"
cp "templates/repository/common/CODE_OF_CONDUCT.md" "$repo_path/CODE_OF_CONDUCT.md"
cp -n "templates/repository/common/.reference-ignore" "$repo_path/.reference-ignore" || true # copy only if it does not exist, as it is meant to help getting started
cp -r "templates/repository/common/.github" "$repo_path/"
cp -r "templates/repository/$repo_type/.github" "$repo_path/"
.bin/ory dev headers cp "templates/repository/common/CONTRIBUTING.md" "$repo_path/CONTRIBUTING.md"
.bin/ory dev headers cp "templates/repository/common/SECURITY.md" "$repo_path/SECURITY.md"
.bin/ory dev headers cp "templates/repository/common/LICENSE" "$repo_path/LICENSE"
.bin/ory dev headers cp "templates/repository/common/CODE_OF_CONDUCT.md" "$repo_path/CODE_OF_CONDUCT.md"
.bin/ory dev headers cp -n "templates/repository/common/.reference-ignore" "$repo_path/.reference-ignore" || true # copy only if it does not exist, as it is meant to help getting started
.bin/ory dev headers cp -r "templates/repository/common/.github" "$repo_path/"
.bin/ory dev headers cp -r "templates/repository/$repo_type/.github" "$repo_path/"
}

# creates a pull request with the changes on GitHub
Expand Down Expand Up @@ -249,6 +249,7 @@ function install_dependencies_on_ci {
header "INSTALLING DEPENDENCIES"
sudo apt-get update -y
sudo apt-get install -y moreutils gettext-base
curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.1.45
}

# pushes the committed changes from the local Git client to GitHub
Expand Down

0 comments on commit 852a1ae

Please sign in to comment.