Skip to content

Commit 0c52ddd

Browse files
committed
Only set gitlab merge request label if the item is an MR
1 parent 126dd9f commit 0c52ddd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/githubHelper.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,13 @@ export class GithubHelper {
428428
labels.push('has attachment');
429429
}
430430

431-
labels.push('gitlab merge request');
431+
// Differentiate between issue and merge request
432+
// Note that it needs to apply to placeholders as well
433+
if ('merge_requests_count' in item) {
434+
labels.push('gitlab issue');
435+
} else {
436+
labels.push('gitlab merge request');
437+
}
432438

433439
if (item.state === 'merged') {
434440
labels.push('merged');

0 commit comments

Comments
 (0)