From 05b7aedac1e2fcf39ac9f0042549e21ee63d4b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CMark?= <“74402146+TechnoFinch@users.noreply.github.com”> Date: Thu, 17 Oct 2024 13:52:42 -0700 Subject: [PATCH 1/2] Adding linear ticket requirements to the repo --- .github/workflows/linear_pr_checker.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/linear_pr_checker.yml diff --git a/.github/workflows/linear_pr_checker.yml b/.github/workflows/linear_pr_checker.yml new file mode 100644 index 00000000..e551056d --- /dev/null +++ b/.github/workflows/linear_pr_checker.yml @@ -0,0 +1,20 @@ +name: Linear PR Checker +# If the PR Checker is not functioning properly, adding SKIP_LINEAR_CHECK +# to the body will skip the check. Only use this when you are certain linear +# tickets are properly attached to the PR. + +on: + pull_request: + types: [opened, reopened, edited, synchronize] + branches: + - main + +defaults: + run: + shell: bash + working-directory: ./pr_checker + +jobs: + linear_pr_checker: + uses: togethercomputer/tools/.github/workflows/pr_checker.yml@main + secrets: inherit From b5c7dfa01b0af380a91a1ba92ee15adb7783d2e8 Mon Sep 17 00:00:00 2001 From: Mark Jones <74402146+TechnoFinch@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:29:28 -0700 Subject: [PATCH 2/2] Linting --- .github/workflows/linear_pr_checker.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linear_pr_checker.yml b/.github/workflows/linear_pr_checker.yml index e551056d..a7c44abe 100644 --- a/.github/workflows/linear_pr_checker.yml +++ b/.github/workflows/linear_pr_checker.yml @@ -1,19 +1,20 @@ name: Linear PR Checker # If the PR Checker is not functioning properly, adding SKIP_LINEAR_CHECK # to the body will skip the check. Only use this when you are certain linear -# tickets are properly attached to the PR. - +# tickets are properly attached to the PR. on: pull_request: - types: [opened, reopened, edited, synchronize] + types: + - opened + - reopened + - edited + - synchronize branches: - - main - + - main defaults: run: shell: bash working-directory: ./pr_checker - jobs: linear_pr_checker: uses: togethercomputer/tools/.github/workflows/pr_checker.yml@main