From 4e66bbb76b6cacf8751d9f20fec9a9e426898f80 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Mon, 12 Oct 2020 15:18:58 -0500 Subject: [PATCH 1/3] Check for changelog label in CI --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 86814df27..ca2b39854 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -62,6 +62,11 @@ jobs: - checkout-plus - run: go mod tidy - run: git diff --exit-code -- go.mod go.sum + check-changelog-label: + executor: + name: golang + steps: + - run: curl https://moleculacorp:$GITHUB_PERSONAL_ACCESS_TOKEN@api.github.com/repos/molecula/pilosa/pulls/$CIRCLE_PR_NUMBER | jq "[.labels[] | .name | startswith(\"changelog\")] | any" -e test-build-arm: executor: name: golang @@ -178,6 +183,9 @@ workflows: - go-mod-tidy: requires: - setup + - check-changelog-label: + requires: + - setup - test-build-arm: requires: - setup From 2ac09af8945a380d57181da2fe083c67c60a1dd4 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Tue, 13 Oct 2020 16:40:46 -0500 Subject: [PATCH 2/3] Only run on pull requests --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ca2b39854..d70d2b750 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -186,6 +186,10 @@ workflows: - check-changelog-label: requires: - setup + # the following should make this only run on pull requests + filters: + branches: + ignore: /.*/ - test-build-arm: requires: - setup From ca5dbe8d39106d9ce2d3198754c2d512d13eaa7a Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Wed, 14 Oct 2020 09:42:07 -0500 Subject: [PATCH 3/3] Fix pull request filter --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d70d2b750..bdbc06fbc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -189,7 +189,7 @@ workflows: # the following should make this only run on pull requests filters: branches: - ignore: /.*/ + only: /^pull\/.*$/ - test-build-arm: requires: - setup