gh-issue-list

command module
v0.0.0-...-492dd4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 6 Imported by: 0

README

gh-issue-list

issue list from json

preparations

Add JSON files to the JSON folder by executing the following command, etc.

command Issues

gh issue list -a @me -s closed --json title,url,createdAt,closedAt | jq --arg s "2021-01-01T00:00:00Z" 'map({title: .title, create: .createdAt, close: .closedAt}) | map(select((.close | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime) as $d | ($s | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime) as $c | $d >= $c))'

or

gh issue list -a @me -s closed --json title,url,createdAt,closedAt | jq --arg s "2021-01-01T00:00:00Z" 'map({title: .title, create: .createdAt, close: .closedAt}) | map(select((.close | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime) as $d | ($s | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime) as $c | $d >= $c))'

PRs

gh pr list -a @me -s closed --json title,url,createdAt,closedAt -L 100 | jq --arg s "2021-01-01T00:00:00Z" 'map({title: .title, create: .createdAt, close: .closedAt}) | map(select((.close | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime) as $d | ($s | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime) as $c | $d >= $c))'

usage

  • Run list issue

go run main.go -f {$filepath} [option]

Option
  • -d : output duration days(rounded down to the nearest whole number).
    • If this option is set, the displayed data will be in detail mode.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL