gregswindle / github-resource-converter Goto Github PK
View Code? Open in Web Editor NEWExport GitHub Issues and Pull Requests to CSV and JSON from your Terminal or Node.js app.
License: MIT License
Export GitHub Issues and Pull Requests to CSV and JSON from your Terminal or Node.js app.
License: MIT License
As a consumer,
I should be able to use the github-resource-converter
module's save
method
In order to programmatically write CSV and JSON files to disk.
grc.save
write data
to the dest
ination path I provide.const grc = require('github-resource-converter')
// Or
import * as grc from 'github-resource-converter'
Create a simple data structure:
const data = [{
"url": "https://api.github.com/repos/democracy-ia/govinfo-link-js/issues/7",
"repository_url": "https://api.github.com/repos/democracy-ia/govinfo-link-js",
"labels_url": "https://api.github.com/repos/democracy-ia/govinfo-link-js/issues/7/labels{/name}",
"comments_url": "https://api.github.com/repos/democracy-ia/govinfo-link-js/issues/7/comments",
"events_url": "https://api.github.com/repos/democracy-ia/govinfo-link-js/issues/7/events",
"html_url": "https://github.com/democracy-ia/govinfo-link-js/issues/7",
"id": 309583334,
"number": 7,
"title": "refactor(client): use unmodified javascript-client from swagger-codegen"
}]
Attempt to save the data:
grc.save({ data })
TypeError
:TypeError: grc.save is not a function
Version of github-resource-converter
: v1.0.0
Node.js version (node --version
): 8.9.4
NPM version (npm --version
): 5.8.0
Yarn version (yarn --version
): 1.5.1
Operating System and version (desktop or mobile):
💡 MacOS
- Open a Terminal
- Run
system_profiler SPHardwareDataType SPSoftwareDataType -detailLevel mini | pbcopy
- Paste (command ⌘ + v) below:
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro11,4
Processor Name: Intel Core i7
Processor Speed: 2.8 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 16 GB
Boot ROM Version: MBP114.0177.B00
SMC Version (system): 2.29f24
Software:
System Software Overview:
System Version: macOS 10.12.6 (16G1212)
Kernel Version: Darwin 16.7.0
Time since boot: 11 days 9:28
Link to your project: N/A
Link to RunKit or Repl example: https://runkit.com/gregswindle/github-resource-converter-issue-16
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
package.json
files, so that was left aloneIf you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Note: this issue was sent to my (@gregswindle) personal email address.
I have copied and pasted the email body, but left the sender anonymous.
⌦ Describe what you want to accomplish {do something},
⌦ in what role/capacity {role},
⌦ and why it's important to you {achieve value}.
As a user,
I want to export GitHub issues
In order to review them.
⌦ Provide a link to a live example, or
⌦ Replace the examples below with an unambiguous sequence of
⌦ instructions that end with proof of the defect.
⌦ Include source code and log files, if relevant and available.
Updated Nodejs via Homebrew (had some issues with some symlinks, but finally got a successful update)
Cloned Repo
Installed via npm i -g github-resource-converter inside MAC terminal
Created the personal access token inside Github and ran this…
mkdir -p /usr/local/etc/github-resource-center/envvars/
touch /usr/local/etc/github-resource-center/envvars/.env
echo "GITHUB_ACCESS_TOKEN="{your-personal-access-token-value}" > \
/usr/local/etc/github-resource-center/envvars/.env
Ran this...
github-resource-converter \
--owner gregswindle \
--repo eslint-plugin-crc \
--dest './docs/gregswindle-eslint-plugin-crc-issues.csv'
I did change all the —owner
and --repo
but not the —dest
but it’s not even getting that far. It doesn’t even see the command in the .bashrc
file.
bash doesn’t see the command.
=> github-resource-converter \
| => —owner cj***** \
| => —repo Ku****** \
| => --dest './docs/gregswindle-eslint-plugin-crc-issues.csv'
-bash: github-resource-converter: command not found
If you have any insight. I would greatly appreciate your help.
⌦ Include as many relevant details about the environment
⌦ in which the defect occured.
github-resource-converter
: v1.0.0As a maintainer,
I need to publish my last fix to NPM
In order to save resources.
Travis reported the following error:
Invalid commit message, please fix:
- Commit message line 6 too long: 212 characters, only 100 allowed.
Was: * **save:** implemen[...]
- <subject> must start with a lowercase letter
Commit message was:
chore(release): 1.0.1 [skip ci]
<a name="1.0.1"></a>
* **save:** implement "save" method for Node.js API ([#17](https://github.com/gregswindle/github-resource-converter/issues/17)) ([7e22c30](https://github.com/gregswindle/github-resource-converter/commit/7e22c30))
github-resource-converter
version:node --version
): v8.9.4npm --version
): 5.8.0yarn --version
): 1.5.1Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro11,4
Processor Name: Intel Core i7
Processor Speed: 2.8 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 16 GB
Boot ROM Version: MBP114.0177.B00
SMC Version (system): 2.29f24
Software:
System Software Overview:
System Version: macOS 10.12.6 (16G1212)
Kernel Version: Darwin 16.7.0
Time since boot: 11 days 16:23
See Travis Build #70, Job #70.2 for details.
⌦ Describe what you want to accomplish {do something},
⌦ in what role/capacity {role},
⌦ and why it's important to you {achieve value}.
As a QA engineer,
I want to export GitHub (and GitHub Enterprise) issues to CSV
In order to build reports.
⌦ Acceptance criteria define things that must be
true
when this feature is delivered.
dest
--of the CSV.host
--of the GitHub server.owner
--i.e., account name or organization name--to target.repo
--whose issues I want to pull.path-prefix
of the GitHub REST API v3 for GitHub Enterprise.protocol
for cases in which I need to query a GitHub Enterprise instance that is not encrypted.🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
As a consumer,
I would like to know whenever there are updates available for grc
In order to benefit from product enhancements and security fixes.
update-notifier
provides update notifications via the CLI.As a maintainer,
I want to track usage
In order to gain insights and improve the product.
gregswindle/github-resource-converter
exists.insight
module prompts users to opt-in for tracking.⌦ Describe what you want to accomplish {do something},
⌦ in what role/capacity {role},
⌦ and why it's important to you {achieve value}.
As a maintainer,
I want to automate releases
In order to increase time-to-market.
⌦ Acceptance criteria define things that must be
true
when this feature is delivered.Example: Job Applicants receive a confirmation email after they submit their resumes.
semantic-release
automatically bumps the semver and publishes to npm.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.