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.

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".)

```yml name: Comment gid on: schedule: - cron: '* * * * *'

jobs: graspissue: runs-on: macOS-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.

スクリーンショット 2022-04-10 0 20 35

CLI

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 ```

Usage

```sh gid 0.1.0 k-nasa htilcs1115@gmail.com Issue graphical tool

USAGE: gid --organization --repository --issue-number

OPTIONS: -h, --help Print help information -i, --issue-number -o, --organization -r, --repository -V, --version Print version information ```

Install

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

Move binary file to the path

mv gidx8664-apple-darwin/gid /usr/local/bin ```

cargo

sh cargo install --git https://github.com/k-nasa/gid.git

Contribution

  1. Fork it (http://github.com/k-nasa/gid)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

Author

k-nasa