複数のリポジトリのプルリクエストを見ていくのが大変なので、いっきにプルリクを出すやつ。 LabelでWIP付いてると無視、一度表示したのは二度出なくなる機能付き。
- インポートのやつをgo getする
- tokenとuserとreposを好きなのに変更
- go run
| #!/bin/bash | |
| apiurl="https://example.backlog.jp/api/v2/" | |
| project="1" | |
| apikey="apikey" | |
| jqbody=".[].summary, .[].assignee.name, .[].dueDate" | |
| function sendMailTalknote() { | |
| head="Content-Type: text/plain; charset=ISO-2022-JP"; | |
| from="From: notifier@example.com" |
| #!/bin/bash | |
| URL=http://peatix.com/event/87412/view | |
| XPATH='//*[@id="tix-249035"]' | |
| if [[ -n $(curl -s "$URL" | xmllint --nowarning --html -xpath "$XPATH" - 2>/dev/null | fgrep 'SOLD OUT') ]]; then | |
| echo "YAPC2015 SOLD OUT" | |
| else | |
| echo "YAPC2015 BUY NOW" | |
| fi |
| #!/bin/bash | |
| # | |
| # send_rss_to_talknote.sh [Mail] [RSS] | |
| # | |
| # RSS Example: | |
| # http://postd.cc/feed/ | |
| # http://b.hatena.ne.jp/hotentry/it.rss | |
| # | |
| function getRss() { |
| (* | |
| 以下のようにAutomatorに設定する | |
| 1. シェルスクリプトを実行 (update-smbpasswd.sh) | |
| 2. AppleScriptを実行 (after-update.applescript) | |
| 3. ループ (ループして自動的に停止:30分) | |
| *) | |
| on run {input, parameters} | |
| if input is not in {{}, {""}, ""} then | |
| set AppleScript's text item delimiters to return |