g0v / dev

dev.g0v.tw
http://dev.g0v.tw/Home.html
148 stars 29 forks source link

定義 g0v repo issue 常用 tag #15

Open clkao opened 11 years ago

clkao commented 11 years ago

譬如 "輸入資料", "翻譯", "圖轉文", "搜尋資料", "畫圖", "寫 parser"

youchenlee commented 11 years ago
youchenlee commented 11 years ago

如需要也可不管顏色,先建立 labels。未來再更新顏色。 github-add-repo-issue-labels script 第二次跑的時候,會判斷 label 存在,把相同名字的 label 之顏色更新。

youchenlee commented 11 years ago

以下 repository 從 https://g0vhub.firebaseio.com/projects.json 取出

跑完的:

沒跑的:

labels file:

translation|ffd8c7,OCR|AAEEEE,datainput|aa0000,research|ffff00,drawing|ff0000,parser|555555,bitesized|fbca04,doc|fad8c7,devops|000098,promote|009800

script

./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=laweasyread-front --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=twbudget --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=hack.g0v.tw --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=kuansim-backend --labels="`cat ./labels`" # failed
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=kuansim-frontend --labels="`cat ./labels`" # failed
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=twangry --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=kuansim --labels="`cat ./labels`"
youchenlee commented 11 years ago

剛不小心 closed 掉. reopen.

youchenlee commented 11 years ago

增加了 dev repo, 其餘的更新了顏色與新增 writing label。

labels

translation|ffd8c7,OCR|005C00,datainput|aa0000,research|ffff00,drawing|ff0000,parser|555555,bitesized|fbca04,doc|47008F,devops|000098,promote|009800,writing|663D3D

updated repos

scripts

#!/bin/sh
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=dev --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=laweasyread-front --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=twbudget --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=hack.g0v.tw --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=twangry --labels="`cat ./labels`"
./github-add-repo-issue-labels.pl --token=`cat ./token` --org=g0v --repo=kuansim --labels="`cat ./labels`"
dannvix commented 11 years ago

提個簡單的 配色方案 供大家做為參考

英文            中文                  HSL 顏色                 Hex 色碼
datainput       資料輸入              hsl(190,  60%, 60%)      #5CC2D6
translation     翻譯                  hsl( 30,  90%, 50%)      #F2800D
OCR             OCR/圖文辨識          hsl( 75,  90%, 60%)      #C7F53D
research        研究                  hsl(  0,  90%, 60%)      #F53D3D
drawing         繪圖                  hsl(120,  50%, 50%)      #40BF40
parser          爬資料                hsl(160,  60%, 45%)      #2EB88A
bitesized       小工作                hsl( 50, 100%, 65%)      #FFE14D
doc             文件 (技術)           hsl(200,  60%, 50%)      #3399CC
devops          維運                  hsl(  0,   0%,  0%)      #000000
promote         宣傳                  hsl(270,  50%, 50%)      #8040BF
writing         文案                  hsl(300,  50%, 60%)      #CC66CC
youchenlee commented 11 years ago

(暫時把 labels 都套在這個 issue)

已更新 @dannvix 的顏色方案至

另新增

Labels:

datainput|5CC2D6,translation|F2800D,OCR|C7F53D,research|F53D3D,drawing|40BF40,parser|2EB88A,bitesized|FFE14D,doc|3399CC,devops|000000,promote|8040BF,writing|CC66CC
youchenlee commented 11 years ago

TODO:

clkao commented 11 years ago

probably better to create a github app, and request auth and get token from user. this makes it also possible to update labels for repos outside g0v/ ;)

clkao commented 11 years ago

other tags:

jeffhung commented 11 years ago

我照著 https://github.com/g0v/dev/issues/15#issuecomment-22885362 的表格設了 app/jsenv.json

youchenlee commented 11 years ago

@clkao 不知道我的理解對不對: 假設 userA 擁有 userA/repoA 這個 repository, g0v 建立一個 github Application, 並用某種方式讓 userA 來授權此 Application 擁有寫入 userA/repoA labels 的權限。 接著 g0v script 可以定期使用這個 Application 來更新 userA/repoA 的資料。(或經由某第三人 trigger)

其他的 repositories 亦都授權給同一個 Application 上述權限。

ipaaa commented 11 years ago

另外我不知道 UX 是否歸類到 design 即可? (例:網站規劃跟設計 logo,用一個 tag 也 ok 否?)

@hlb 請布丁來確定好了~

clkao commented 11 years ago

@youchenlee 應該是說, userA 授權 App, 此時 App 會拿到一個 token, 用這個 token 就可以以 userA 的身分做事,所以就是要留住那個 token 才能定期 update。比較簡單的方式是,非 g0v 下的 repo 需要用這個時,請他們手動在 web 上授權,然後直接在 browser 用他的 token 改 labels.

youchenlee commented 11 years ago

已更新 label + {新增的 repository} - {這次消失的 repository}

+newshelper-backend
twangry
+i64885
+newshelper-extension
+addressbook
kuansim-backend # Failed
g0v.tw
+laweasyread
-laweasyread-front
twbudget
kuansim
dev
hack.g0v.tw
kuansim-frontend # Failed
+typo-resolver
youchenlee commented 11 years ago

@dannvix 加入三個 label 到這個 issue 中, 請有空幫忙改一下配色 :) Thanks

dannvix commented 11 years ago

抱歉,現在才回覆。剛才試著為三個新的 labels 調了顏色,請參考

screen shot 2013-08-28 at 11 32 17 pm

jeffhung commented 11 years ago

Committed configuration for design, code, and frontend labels. See: g0v/hack.g0v.tw@d233357.