We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d3407 commit 3352df1Copy full SHA for 3352df1
__tests__/main.test.ts
@@ -168,6 +168,20 @@ describe('run', () => {
168
});
169
170
171
+ it('can support multiple branches by providing an array', async () => {
172
+ github.context.payload.pull_request!.head = {ref: 'array/123'};
173
+ usingLabelerConfigYaml('branches.yml');
174
+ await run();
175
+
176
+ expect(addLabelsMock).toHaveBeenCalledTimes(1);
177
+ expect(addLabelsMock).toHaveBeenCalledWith({
178
+ owner: 'monalisa',
179
+ repo: 'helloworld',
180
+ issue_number: 123,
181
+ labels: ['array-branch']
182
+ });
183
184
185
it('adds a label when matching any and all patterns are provided', async () => {
186
usingLabelerConfigYaml('any_and_all.yml');
187
mockGitHubResponseChangedFiles('tests/test.ts');
0 commit comments