Skip to content

Commit

Permalink
Change name of input to assignees
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-dohm committed Dec 4, 2019
1 parent 6798c51 commit 3a80790
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ steps:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
assignee: JasonEtco, octocat
assignees: JasonEtco, octocat
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ branding:
icon: alert-circle
color: gray-dark
inputs:
assignee:
assignees:
description: GitHub handle of the user(s) to assign the issue (comma-separated)
filename:
description: The name of the file to use as the issue template
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function listToArray (list) {

Toolkit.run(async tools => {
const template = core.getInput('filename') || '.github/ISSUE_TEMPLATE.md'
const assignees = core.getInput('assignee')
const assignees = core.getInput('assignees')
const env = nunjucks.configure({ autoescape: false })
env.addFilter('date', dateFilter)

Expand Down
4 changes: 2 additions & 2 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ describe('create-an-issue', () => {
})

it('creates a new issue with an assignee passed by input', async () => {
process.env.INPUT_ASSIGNEE = 'octocat'
process.env.INPUT_ASSIGNEES = 'octocat'
await actionFn(tools)
expect(params).toMatchSnapshot()
expect(tools.log.success).toHaveBeenCalled()
expect(tools.log.success.mock.calls).toMatchSnapshot()
})

it('creates a new issue with multiple assignees passed by input', async () => {
process.env.INPUT_ASSIGNEE = 'octocat, JasonEtco'
process.env.INPUT_ASSIGNEES = 'octocat, JasonEtco'
await actionFn(tools)
expect(params).toMatchSnapshot()
expect(tools.log.success).toHaveBeenCalled()
Expand Down

0 comments on commit 3a80790

Please sign in to comment.