sync_templates_and_ci: add search to PR_TEMPLATE specific links (#50265)

This commit is contained in:
Vítor Galvão
2018-07-31 01:54:33 +01:00
committed by GitHub
parent 5bf579834c
commit 5418ca9377
+1 -1
View File
@@ -33,7 +33,7 @@ function copy_templates_and_ci {
repo_name="${1}"
rsync --archive --delete "${main_repo_dir}"/{.editorconfig,.gitattributes,.github,.gitignore,.travis.yml,ci,CODE_OF_CONDUCT.md} '.'
rm '.github/ISSUE_TEMPLATE/02_feature_request.md' # Feature requests only make sense in the main repo
/usr/bin/sed -i '' -E "s:homebrew-cask/(pulls|issues):${repo_name}/\1:" '.github/PULL_REQUEST_TEMPLATE.md' # PULL_REQUEST_TEMPLATE has repo-specific links
/usr/bin/sed -i '' -E "s:homebrew-cask/(pulls|issues|search):${repo_name}/\1:" '.github/PULL_REQUEST_TEMPLATE.md' # PULL_REQUEST_TEMPLATE has repo-specific links
}
function push_changes {