From e9a1777eb0b3d187efcbea1e1ce054265a96bc36 Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Sat, 18 Mar 2023 16:46:54 -0400 Subject: [PATCH] Fix linting and formatting --- __tests__/fixtures/branches.yml | 8 ++++---- __tests__/fixtures/only_pdfs.yml | 2 +- __tests__/main.test.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/__tests__/fixtures/branches.yml b/__tests__/fixtures/branches.yml index c4c2e7ba..1ad12ac6 100644 --- a/__tests__/fixtures/branches.yml +++ b/__tests__/fixtures/branches.yml @@ -1,11 +1,11 @@ test-branch: - - head-branch: "^test/" + - head-branch: '^test/' feature-branch: - - head-branch: "/feature/" + - head-branch: '/feature/' bug-branch: - - head-branch: "^bug/|fix/" + - head-branch: '^bug/|fix/' array-branch: - - head-branch: ["^array/"] + - head-branch: ['^array/'] diff --git a/__tests__/fixtures/only_pdfs.yml b/__tests__/fixtures/only_pdfs.yml index 0f4b61a7..2909dce7 100644 --- a/__tests__/fixtures/only_pdfs.yml +++ b/__tests__/fixtures/only_pdfs.yml @@ -1,3 +1,3 @@ touched-a-pdf-file: - changed-files: - - any: ['*.pdf'] + - any: ['*.pdf'] diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 52e8d210..fd21ca20 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -134,7 +134,7 @@ describe('run', () => { }); }); - it('it can support multiple branches by batching', async () => { + it('can support multiple branches by batching', async () => { github.context.payload.pull_request!.head = {ref: 'fix/123'}; usingLabelerConfigYaml('branches.yml'); await run(); @@ -148,7 +148,7 @@ describe('run', () => { }); }); - it('it can support multiple branches by providing an array', async () => { + it('can support multiple branches by providing an array', async () => { github.context.payload.pull_request!.head = {ref: 'array/123'}; usingLabelerConfigYaml('branches.yml'); await run();