mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 12:37:48 +00:00
Fix linting and formatting
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
test-branch:
|
test-branch:
|
||||||
- head-branch: "^test/"
|
- head-branch: '^test/'
|
||||||
|
|
||||||
feature-branch:
|
feature-branch:
|
||||||
- head-branch: "/feature/"
|
- head-branch: '/feature/'
|
||||||
|
|
||||||
bug-branch:
|
bug-branch:
|
||||||
- head-branch: "^bug/|fix/"
|
- head-branch: '^bug/|fix/'
|
||||||
|
|
||||||
array-branch:
|
array-branch:
|
||||||
- head-branch: ["^array/"]
|
- head-branch: ['^array/']
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
touched-a-pdf-file:
|
touched-a-pdf-file:
|
||||||
- changed-files:
|
- changed-files:
|
||||||
- any: ['*.pdf']
|
- any: ['*.pdf']
|
||||||
|
|||||||
@@ -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'};
|
github.context.payload.pull_request!.head = {ref: 'fix/123'};
|
||||||
usingLabelerConfigYaml('branches.yml');
|
usingLabelerConfigYaml('branches.yml');
|
||||||
await run();
|
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'};
|
github.context.payload.pull_request!.head = {ref: 'array/123'};
|
||||||
usingLabelerConfigYaml('branches.yml');
|
usingLabelerConfigYaml('branches.yml');
|
||||||
await run();
|
await run();
|
||||||
|
|||||||
Reference in New Issue
Block a user