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.
https://user-images.githubusercontent.com/23740172/162850243-bd4e0df7-726c-4d89-829a-d2ef929298d0.mp4
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".)
```yml name: Comment gid
on: workflow_dispatch: issues: types: [ opened, edited, deleted, closed, reopened, labeled, ]
concurrency: group: single cancel-in-progress: true
jobs: graspissue: 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 githubtoken: ${{secrets.GITHUB_TOKEN}} ```
Comment by github actions.
Let's analyze issue 1 as a trial.
sh
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.)
```mermaid 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 ```
```sh gid 0.1.0 k-nasa htilcs1115@gmail.com Issue graphical tool
USAGE:
gid --organization
OPTIONS:
-h, --help Print help information
-i, --issue-number
curl
```sh curl -L -o gid.tar.gz https://github.com/k-nasa/gid/releases/download/0.1.0/gidx8664-apple-darwin.tar.gz tar -zxvf gid.tar.gz
mv gidx8664-apple-darwin/gid /usr/local/bin ```
cargo
sh
cargo install gid_cli