Skip to content

Commit

Permalink
add default since value (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Aug 8, 2020
1 parent 70c15da commit 327445e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
description: 'The organization to search for issues.'
required: true
since:
description: 'The start date to search for team pings. Forma: {4 digit year}-{month}-{day}. For example: 2020-5-20'
description: 'The start date to search for team pings. Form: {4 digit year}-{month}-{day}. For example: 2020-5-20'
required: false
default: '2020-1-1'
project-board:
Expand Down
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,13 +503,15 @@ async function run () {
const team = core.getInput('team')
const org = core.getInput('org')
const fullTeamName = `${org}/${team}`
const since = core.getInput('since')
const since = core.getInput('since') !== ''
? core.getInput('since') : '2020-01-01'
const projectBoard = core.getInput('project-board')
const columnId = parseInt(core.getInput('project-column'), 10)
const ignoreTeam = core.getInput('ignore-team')
const ignoreBot = core.getInput('ignore-bot')
const body = core.getInput('comment-body')
const ignoreRepos = core.getInput('ignore-repos').split(',').map(x => x.trim())
const ignoreRepos = core.getInput('ignore-repos') !== ''
? core.getInput('ignore-repos').split(',').map(x => x.trim()) : []
const octokit = new GitHub(token)

const projectInfo = await getProjectMetaData(projectBoard, org)
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ async function run () {
const team = core.getInput('team')
const org = core.getInput('org')
const fullTeamName = `${org}/${team}`
const since = core.getInput('since')
const since = core.getInput('since') !== ''
? core.getInput('since') : '2020-01-01'
const projectBoard = core.getInput('project-board')
const columnId = parseInt(core.getInput('project-column'), 10)
const ignoreTeam = core.getInput('ignore-team')
const ignoreBot = core.getInput('ignore-bot')
const body = core.getInput('comment-body')
const ignoreRepos = core.getInput('ignore-repos').split(',').map(x => x.trim())
const ignoreRepos = core.getInput('ignore-repos') !== ''
? core.getInput('ignore-repos').split(',').map(x => x.trim()) : []
const octokit = new GitHub(token)

const projectInfo = await getProjectMetaData(projectBoard, org)
Expand Down

0 comments on commit 327445e

Please sign in to comment.