add test for issue option (#20)
This commit is contained in:
17
src/issue.ts
Normal file
17
src/issue.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as core from '@actions/core'
|
||||
import {IssueOption} from './interface'
|
||||
|
||||
export function getIssueOption(body: string): IssueOption {
|
||||
return {
|
||||
title: core.getInput('issue_title'),
|
||||
body,
|
||||
assignees: core
|
||||
.getInput('issue_assignees')
|
||||
.replace(/\s+/g, '')
|
||||
.split(','),
|
||||
labels: core
|
||||
.getInput('issue_labels')
|
||||
.replace(/\s+/g, '')
|
||||
.split(',')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user