Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定義 g0v repo issue 常用 tag #15

Open
clkao opened this issue Aug 9, 2013 · 18 comments
Open

定義 g0v repo issue 常用 tag #15

clkao opened this issue Aug 9, 2013 · 18 comments

Comments

@clkao
Copy link
Member

clkao commented Aug 9, 2013

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

@youchenlee
Copy link
Member

  • 因為 create label 時要填色碼,例如 FFFFFF 這樣的值,因此可以連色碼一起定義。
  • Hackpad 好像不能加 color, 用這頁來一起定義如何?看是否合用? http://scratchpad.io/broken-apparatus-429

@youchenlee
Copy link
Member

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

@youchenlee
Copy link
Member

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

跑完的:

  • laweasyread-front
  • twbudget
  • hack.g0v.tw
  • twangry
  • kuansim

沒跑的:

  • 沒啟用 Issue 的
    • kuansim-backend
    • kuansim-frontend
  • 在外面 Repo 的
    • listeningme/listeningme
    • lulalala/taiwanese_news_parser
    • audreyt/moedict-webkit

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
Copy link
Member

剛不小心 closed 掉. reopen.

@youchenlee
Copy link
Member

增加了 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

  • dev
  • laweasyread-front
  • twbudget
  • hack.g0v.tw
  • twangry
  • kuansim

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
Copy link
Member

dannvix commented Aug 19, 2013

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

英文            中文                  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
Copy link
Member

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

已更新 @dannvix 的顏色方案至

  • dev
  • laweasyread-front
  • twbudget
  • hack.g0v.tw
  • twangry
  • kuansim

另新增

  • g0v.tw

Labels:

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

@youchenlee
Copy link
Member

TODO:

  • One script to:
    • Get project lists from https://g0vhub.firebaseio.com/projects.json
    • Get labels names and colors from @jeffhung 's json
    • Asking github account / password by a readline prompt (password should not show on the screen neither be logged)
    • run github-add-repo-issue-labels.pl

@clkao
Copy link
Member Author

clkao commented Aug 19, 2013

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
Copy link
Member Author

clkao commented Aug 19, 2013

other tags:

  • design
  • code
  • frontend

@jeffhung
Copy link
Member

我照著 #15 (comment) 的表格設了 app/jsenv.json

@youchenlee
Copy link
Member

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

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

@ipaaa
Copy link
Member

ipaaa commented Aug 20, 2013

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

@hlb 請布丁來確定好了~

@clkao
Copy link
Member Author

clkao commented Aug 20, 2013

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

@youchenlee
Copy link
Member

已更新 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
Copy link
Member

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

  • design
  • code
  • frontend

@dannvix
Copy link
Member

dannvix commented Aug 28, 2013

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

  • design — hsl(210, 100%, 30%) or #004C99
  • code — hsl(0, 100%, 32%) or #A30000
  • frontend — hsl(190, 100%, 70%) or #66E6FF

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

@jeffhung
Copy link
Member

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

youchenlee added a commit to g0v/hack.g0v.tw that referenced this issue Aug 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants