Skip to content

Commit 9f12826

Browse files
committed
prepare: use label to calculate due date
instead of issue title. To support offline workshop.
1 parent 63f9eac commit 9f12826

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/ISSUE_TEMPLATE/workshop_preparation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ about: ワークショップ開催までのタスク管理
1414
- [ ] Doorkeeperのイベントページ作成(要管理権限)
1515
- [ ] 以下の各日付`YYYY-MM-DD`をセットする
1616
- `prepare/get_preparation_issue_converted_dates.rb` を実行する
17-
- オープン状態の各ワークショップ準備issueについて、日付部分を計算して置換したテキストが得られる
17+
- `prepare workshop`ラベルが付いている各ワークショップ準備issueについて、日付部分を計算して置換したテキストが得られる
1818
- 上コマンドで得られたテキストから本issueの部分をコピーして、この内容を差し替える
1919
- タイムライン、メッセージ送信予定(要管理権限)
2020
- 開催1ヵ月前(YYYY-MM-DD)

prepare/get_preparation_issue_converted_dates.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ def get_preparation_issues
3434

3535
issues = JSON.parse(res.body)
3636

37-
issues.select { |issue| issue["title"].start_with?("OSS Gateオンラインワークショップ") }
37+
issues.select do |issue|
38+
issue["labels"].any? do |label|
39+
label["name"] == "prepare workshop"
40+
end
41+
end
3842
end
3943

4044
def convert_body(body, date)

0 commit comments

Comments
 (0)