diff --git a/README.md b/README.md index 43e028f..5587fb7 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ githubCsvTools | Option | Default | Notes | | ---------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | -f, --exportFileName | YYYY-MM-DD-hh-mm-ss-issues.csv | The name of the CSV you'd like to export to. | -| -a, --exportAttributes | number, title, labels, state, assignees, milestone, comments, created_at, updated_at, closed_at, body | Comma-separated list of attributes (columns) in the export**. | +| -a, --exportAttributes | number, title, labels, state, state_reason, assignees, milestone, comments, created_at, updated_at, closed_at, body | Comma-separated list of attributes (columns) in the export**. | | -c, --exportComments | n/a | Include comments in the export. If using in combination with `--exportAttributes`, `id` must be included. | | -e, --exportAll | n/a | Export all possible values from the GitHub API. If not included, a subset of attributes (see `--exportAttributes` above) that are known to be compatible with GitHub *import* will be included in the export. | diff --git a/export.js b/export.js index 8e4f183..8092515 100644 --- a/export.js +++ b/export.js @@ -93,6 +93,7 @@ const defaultExportColumns = (data) => { number: issueObject.number, title: issueObject.title, state: issueObject.state, + state_reason: issueObject.state_reason, labels: "", // will be filled in below, if it exists milestone: "", // will be filled in below, if it exists user: "", // will be filled in below, if it exists