Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Although we were able to parse out diff for a single file path, I believe it’s a very nasty & error-prone way to do it and ideally, this feature should exist within gh. I have created an issue to track this, let’s see where it goes.
jq - Command-line JSON processor
[ { "author": { "login": "authorUsername" }, "baseRefName": "somebranch", "files": [ { "path": ".gitmodules", "additions": 2, "deletions": 2 }, ... ], "headRefName": "dev", "number": 300, "title": "my new feature", "url": "https://github.com/user/repo/pull/300" }, ... ]
The source is available here if you want to reference or hack anything. I took the liberty to beautify the output from our script. Here is how the finalized version looks like: