https://github.com/amtoine/nu-issue-tracker
A nushell tool to keep track of the issue tracker over time.
https://github.com/amtoine/nu-issue-tracker
issue-tracker nushell scripting time-series
Last synced: 3 months ago
JSON representation
A nushell tool to keep track of the issue tracker over time.
- Host: GitHub
- URL: https://github.com/amtoine/nu-issue-tracker
- Owner: amtoine
- License: gpl-3.0
- Created: 2023-04-13T17:00:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T00:53:12.000Z (about 1 year ago)
- Last Synced: 2024-04-14T00:39:03.668Z (about 1 year ago)
- Topics: issue-tracker, nushell, scripting, time-series
- Language: Nushell
- Homepage:
- Size: 5.69 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nu-issue-tracker
A nushell tool to keep track of the issue tracker over time.## get the previous history of repositories
if you want to keep track of the issue tracker from the beginning of the
history of a project, but do not have all the issue counts over time, you
can follow the procedure below:
```nushell
use mod.nu *# pull the main `nushell` repos
[
"nushell/nushell"
"nushell/nu-ansi-term"
"nushell/nu_scripts"
"nushell/nushell.github.io"
"nushell/reedline"
] | each {|repo| get issues $repo --from 1}# `nushell/nushell` has so many pages, we can only pull the first 59 at once :eyes:
get issues "nushell/nushell" --from 60 # some time later# gather the issues together in a single NUON file per repository
ls nushell/ | get name | each {|repo|
gather issues $repo | select number created_at closed_at | save ({
parent: $repo
stem: "issues"
extension: "nuon"
} | path join)
}# save the full history files
for repo in (ls nushell/ | get name) {
print $"(ansi erase_line)building history of ($repo)"{
parent: $repo
stem: "issues"
extension: "nuon"
} | path join
| open
| build history
| save ({
parent: $repo
stem: "history"
extension: "nuon"
} | path join)
}
```## update the repo
### update the issue trackers
use the `update-issue-trackers.nu` script.### generate the figures
use the `generate-figures.nu` script and then something like `feh **/history.png`.### automatic updates
`github-actions` updates the repo automatically every day at midnight, see the
[`update` CI pipeline](.github/workflows/update.yml).