-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Expensify/master
Merge
- Loading branch information
Showing
77 changed files
with
6,758 additions
and
291 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
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,12 @@ | ||
name: 'Get Release Body' | ||
description: 'Generate the body of a production release' | ||
inputs: | ||
PR_LIST: | ||
description: JSON array of pull request numbers (string) | ||
required: true | ||
outputs: | ||
RELEASE_BODY: | ||
description: String body of a production release. | ||
runs: | ||
using: 'node12' | ||
main: './index.js' |
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,12 @@ | ||
const _ = require('underscore'); | ||
const core = require('@actions/core'); | ||
const GithubUtils = require('../../libs/GithubUtils'); | ||
|
||
// Parse the stringified JSON array of PR numbers, and cast each from String -> Number | ||
const PRList = _.map(JSON.parse(core.getInput('PR_LIST', {required: true})), Number); | ||
console.log(`Got PR list: ${PRList}`); | ||
|
||
const releaseBody = GithubUtils.getReleaseBody(PRList); | ||
console.log(`Generated release body: ${releaseBody}`); | ||
|
||
core.setOutput('RELEASE_BODY', releaseBody); |
Oops, something went wrong.