Coder Social home page Coder Social logo

gh-board's Introduction

gh-board: GitHub Project Viewer for Terminal

GitHub Projects 専用のターミナルビューワー。ターミナル上で、プロジェクトボードと issue を確認できる。

term

プロジェクトボード

project

Prerequisites

個人アクセストークンを持っている。

Auto creation

gh-boardで表示させたいプロジェクトボードがまだ作成されていない場合は、このセクションの手順を実行することで自動的に作成できる。すでにプロジェクトボードを持っている場合は、次のセクションを実行することでターミナル上でプロジェクトボードを表示させることができる。

ソースコードと実行環境が含まれている Docker image が用意されている。次のコマンドを使用して最新の Docker image をダウンロードする。

docker pull ghcr.io/kiyo27/gh-board:latest

gh-boardで表示したいプロジェクトボードとプロジェクトボードが紐づいているリポジトリを環境変数で設定する。もし環境変数で設定したリポジトリが GitHub 上に作られていなければ、同名のリポジトリが自動的に作成される。プロジェクトボードも同様にリポジトリ内に存在していなければ、自動的に作成される。gh-boardと GitHub 間で API 通信を行うため、GitHub から設定・取得した個人アクセストークンも環境変数に設定する。

docker run -it --rm \
    -e REPO_OWNER=<repository owner> \
    -e REPO_NAME=<repository name> \
    -e PROJECT_NAME=<project board name> \
    -e ACCESS_TOKEN=<personal access token> \
    ghcr.io/kiyo27/gh-board:latest --init

REPO_NAMEが環境変数として設定されていない場合は、board-sampleというリポジトリが作成される。PROJECT_NAMEが設定されていない場合は、SampleProjectが作成される。

環境変数 説明 必須 デフォルト
REPO_NAME リポジトリ名 board-sample
REPO_OWNER リポジトリの所有者 required
PROJECT_NAME プロジェクトのボード名 SampleProject

--initフラグをつけて Docker image を起動すると、環境変数で設定されたリポジトリがまだ作られていない場合は作成し、プロジェクトボードが自動的に作成される。

Execution

gh-boardで表示させたいプロジェクトボード、プロジェクトボードが紐づいているリポジトリ名などを環境変数として設定する。

docker run -it --rm \
    -e REPO_OWNER=<repository owner> \
    -e REPO_NAME=<repository name> \
    -e PROJECT_NAME=<project board name> \
    -e ACCESS_TOKEN=<personal access token> \
    ghcr.io/kiyo27/gh-board:latest --up

--upフラグをつけて Docker image を起動すると、ターミナルアプリが起動される。

設定可能な環境変数

環境変数 説明
ACCESS_TOKEN GitHub の個人アクセストークン
REPO_NAME リポジトリ名
REPO_OWNER リポジトリの所有者
PROJECT_NAME プロジェクトのボード名
KANBAN_COLUMNS カンバンのカラム名。カラム名を指定するときは、カンマ区切りで設定する(例:KANBAN_COLUMNS="Backlog,In Progress,Done")。デフォルトはBacklogIn ProgressDone

gh-board's People

Contributors

kiyo27 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

gh-board's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.