4 releases
0.2.1 | Apr 30, 2022 |
---|---|
0.1.3 | Apr 19, 2022 |
0.1.2 | Apr 19, 2022 |
0.1.0 | Apr 10, 2022 |
#1008 in Development tools
21 downloads per month
1MB
42K
SLoC
gid (Grasp issue dependencies)
Help project managers and project owners with easy-to-understand views of github issue dependencies.
This tool can be used on github action or the command line. Basically, it is supposed to be used in Github Action.
It relies on GitHub's builtin mermaid support. The output format may increase in the future.
Currently it only supports analysis with the tracking feature of GitHub issues. Issue Description tasks and issue link analysis will be added in the future.
DEMO
GitHub Actions
Adding the following workflow will analyze the issue every minute and comment on the diagram. (This is an example of parsing an issue labeled "root".)
name: Comment gid
on:
workflow_dispatch:
issues:
types: [
opened,
edited,
deleted,
closed,
reopened,
labeled,
]
concurrency:
group: single
cancel-in-progress: true
jobs:
grasp_issue:
runs-on: ubuntu-latest
name: Grasp issue dependencies
steps:
- uses: actions/checkout@v3
- uses: k-nasa/gid@main
with:
label: 'root' # Analyze the issue with the specified label
github_token: ${{secrets.GITHUB_TOKEN}}
Comment by github actions.
CLI
Let's analyze issue 1 as a trial.
gid -o k-nasa -r gid -i 1
This command outputs the following figure. (To be exact, the mermaid script that is the basis of the figure is output.)
graph LR
classDef CLOSED fill:#8256d0,color:#FFFFFF,stroke-width:0px;
classDef OPEN fill:#347d39,color:#FFFFFF,stroke-width:0px;
2 --> 4["Child 1"]:::CLOSED
2 --> 5["Child 2"]:::CLOSED
2 --> 6["Child 3"]:::CLOSED
7 --> 8["Child 2"]:::OPEN
7 --> 9["Child 1"]:::OPEN
9 --> 10["Grandchild1"]:::OPEN
9 --> 11["Grandchild2"]:::CLOSED
1 --> 2["DEMO 1"]:::CLOSED
1 --> 3["DEMO2"]:::OPEN
1 --> 7["DEMO3"]:::OPEN
click 4 href "https://github.com/k-nasa/gid/issues/4" _blank
click 5 href "https://github.com/k-nasa/gid/issues/5" _blank
click 6 href "https://github.com/k-nasa/gid/issues/6" _blank
click 8 href "https://github.com/k-nasa/gid/issues/8" _blank
click 9 href "https://github.com/k-nasa/gid/issues/9" _blank
click 10 href "https://github.com/k-nasa/gid/issues/10" _blank
click 11 href "https://github.com/k-nasa/gid/issues/11" _blank
click 2 href "https://github.com/k-nasa/gid/issues/2" _blank
click 3 href "https://github.com/k-nasa/gid/issues/3" _blank
click 7 href "https://github.com/k-nasa/gid/issues/7" _blank
Usage
gid 0.1.0
k-nasa <htilcs1115@gmail.com>
Issue graphical tool
USAGE:
gid --organization <ORGANIZATION> --repository <REPOSITORY> --issue-number <ISSUE_NUMBER>
OPTIONS:
-h, --help Print help information
-i, --issue-number <ISSUE_NUMBER>
-o, --organization <ORGANIZATION>
-r, --repository <REPOSITORY>
-V, --version Print version information
Install
curl
curl -L -o gid.tar.gz https://github.com/k-nasa/gid/releases/download/0.1.0/gid_x86_64-apple-darwin.tar.gz
tar -zxvf gid.tar.gz
# Move binary file to the path
mv gid_x86_64-apple-darwin/gid /usr/local/bin
cargo
cargo install gid_cli
Contribution
- Fork it (http://github.com/k-nasa/gid)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
License
Author
Dependencies
~11–26MB
~344K SLoC