From 742acf3302703efe70a1384349b920984e088db6 Mon Sep 17 00:00:00 2001 From: chiragvidani Date: Fri, 24 May 2024 17:22:04 +0530 Subject: [PATCH 1/3] feat(export): state_reason attribute as part of default attributes --- export.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/export.js b/export.js index 8e4f183..b5e2ed2 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 @@ -101,7 +102,7 @@ const defaultExportColumns = (data) => { created_at: issueObject.created_at, updated_at: issueObject.updated_at, closed_at: issueObject.closed_at !== null ? issueObject.closed_at : "", - body: issueObject.body, + body: issueObject.body, }; if (issueObject.user) { ret.user = issueObject.user.login; From 7b6cc926ab9f5a390b11da18f11ff774511393ef Mon Sep 17 00:00:00 2001 From: chiragvidani Date: Fri, 24 May 2024 17:22:45 +0530 Subject: [PATCH 2/3] doc(readme): state_reason to be exported in list of default attributes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. | From ad9a5480555752df19b9539255da30679fa6d52b Mon Sep 17 00:00:00 2001 From: chiragvidani Date: Fri, 24 May 2024 17:40:31 +0530 Subject: [PATCH 3/3] fix(export): removed unwanted space. --- export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export.js b/export.js index b5e2ed2..8092515 100644 --- a/export.js +++ b/export.js @@ -102,7 +102,7 @@ const defaultExportColumns = (data) => { created_at: issueObject.created_at, updated_at: issueObject.updated_at, closed_at: issueObject.closed_at !== null ? issueObject.closed_at : "", - body: issueObject.body, + body: issueObject.body, }; if (issueObject.user) { ret.user = issueObject.user.login;