From ecb774ca4e7090ee7670ae58dd4a02724a6e9779 Mon Sep 17 00:00:00 2001 From: David McMahon Date: Tue, 12 Jul 2016 21:28:13 -0700 Subject: [PATCH] Don't add analytics to .entries. --- .github/PULL_REQUEST_TEMPLATE.md | 3 --- hack/lib/util.sh | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 730e34bd636..9995cb923fa 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -17,6 +17,3 @@ Please remove this comment block before submitting. -OR- * Enter your extended release note here ``` - - -[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]() diff --git a/hack/lib/util.sh b/hack/lib/util.sh index 794cd41cd35..a448274a8af 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -255,7 +255,9 @@ kube::util::gen-analytics() { fi # We don't touch files in special dirs, and the kubectl docs are # autogenerated by gendocs. + # Don't descend into .directories mdfiles=($( find "${dir}" -name "*.md" -type f \ + -not -path '*/\.*' \ -not -path "${path}/vendor/*" \ -not -path "${path}/third_party/*" \ -not -path "${path}/_gopath/*" \