Jelajahi Sumber

tools: update script references to 'main' branch

Owen Voke 4 tahun lalu
induk
melakukan
7d1e2e24ef
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 2 2
      .github/PULL_REQUEST_TEMPLATE.md
  2. 1 1
      scripts/check-pr.sh

+ 2 - 2
.github/PULL_REQUEST_TEMPLATE.md

@@ -5,6 +5,6 @@
 - [ ] The page (if new), does not already exist in the repo.
 - [ ] The page is in the correct platform directory (`common/`, `linux/`, etc.)
 - [ ] The page has 8 or fewer examples.
-- [ ] The PR title conforms to the recommended [templates](/tldr-pages/tldr/blob/master/CONTRIBUTING.md#commit-message).
-- [ ] The page follows the [content guidelines](/tldr-pages/tldr/blob/master/CONTRIBUTING.md#guidelines).
+- [ ] The PR title conforms to the recommended [templates](/tldr-pages/tldr/blob/main/CONTRIBUTING.md#commit-message).
+- [ ] The page follows the [content guidelines](/tldr-pages/tldr/blob/main/CONTRIBUTING.md#guidelines).
 - [ ] The page description includes a link to documentation or a homepage (if applicable).

+ 1 - 1
scripts/check-pr.sh

@@ -49,7 +49,7 @@ function check_diff {
   local line
   local entry
 
-  git_diff=$(git diff --name-status --find-copies-harder --diff-filter=AC --relative=pages/ remotes/origin/master)
+  git_diff=$(git diff --name-status --find-copies-harder --diff-filter=AC --relative=pages/ remotes/origin/main)
 
   if [ -n "$git_diff" ]; then
     echo -e "Check PR: git diff:\n$git_diff" >&2