generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(test): add labeler.ts tests
- Loading branch information
Showing
5 changed files
with
302 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
export const emptyConfig = {}; | ||
|
||
export const basicConfig = { | ||
policy: [ | ||
{ | ||
section: [ | ||
{ | ||
id: ['type'], | ||
label: [ | ||
{ name: 'bug 🐛', keys: ['Bug Report'] }, | ||
{ name: 'RFE 🎁', keys: ['Feature Request'] }, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
|
||
export const templateConfig = { | ||
policy: [ | ||
{ | ||
template: ['bug.yml', 'feature.yml'], | ||
section: [ | ||
{ | ||
id: ['type'], | ||
label: [ | ||
{ name: 'bug 🐛', keys: ['Bug Report'] }, | ||
{ name: 'RFE 🎁', keys: ['Feature Request'] }, | ||
], | ||
}, | ||
{ | ||
id: ['severity'], | ||
label: [ | ||
{ name: 'high', keys: ['High'] }, | ||
{ name: 'medium', keys: ['Medium'] }, | ||
{ name: 'low', keys: ['Low'] }, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
template: ['custom.yml'], | ||
section: [ | ||
{ | ||
id: ['type'], | ||
label: [ | ||
{ name: 'custom1', keys: ['Custom 1'] }, | ||
{ name: 'custom2', keys: ['Custom 2'] }, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const emptyForm = {}; | ||
|
||
export const basicForm = { | ||
title: 'Test issue', | ||
body: 'Test body', | ||
}; | ||
|
||
export const dropdownForm = { | ||
title: 'Test issue', | ||
body: 'Test body', | ||
severity: 'High', | ||
type: 'Bug Report, Feature Request, other, none', | ||
checkList: ['one', 'two', 'three'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.