This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH numbered AS ( | |
SELECT *, ROW_NUMBER() OVER (partition by summary_date order by timestamp desc) as rn | |
FROM `hoge-project.burndown_chart.day_results` | |
) | |
SELECT total_point, done_point, summary_date FROM numbered WHERE rn = 1 order by summary_date asc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
type item struct { | |
Title string | |
FieldValues struct { | |
Nodes []struct { | |
Value string | |
ProjectField struct { | |
Name string | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
void main() { | |
// アプリの初回起動チェック | |
// 初回起動ならログアウト | |
final prefs = await SharedPreferences.getInstance(); | |
if (prefs.getBool('first_launch') ?? true) { | |
final FirebaseAuth auth = FirebaseAuth.instance; | |
await auth.signOut(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 開発環境利用状況 | |
| |dev1|dev2|dev3| | |
|:---:|:---:|:---:|:---:| | |
|App1|[](https://https://asia-northeast1-[example-project].cludfunctions.net/redirect-url?env=app1&num=1)|[](https://https://asia-northeast1-[example-project].cludfunctions.net/redirect-url?env=app1&num=2)|[](https://https://asia-northeast1-[example-project].cludfunctions.net/redirect-url?env=app1&num=3)| | |
|App2|[](https://https://asia-northeast1-[example-project].cludfunctions.net/redirect-url?env=app2&num=1)|[](https://https://asia-northeast1-[example-project].cludfunctions.net/redirect-url?env=app2&num=2)|[](https://https://asia-no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 指定した開発環境にデプロイしたPR/Commitへ遷移 | |
package p | |
import ( | |
"context" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"cloud.google.com/go/storage" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 指定した環境を未使用状態に切り替えるgithub actionsを実行し、リポジトリのトップへリダイレクト | |
package p | |
import ( | |
"bytes" | |
"context" | |
"log" | |
"net/http" | |
"os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PRがマージ/クローズされたらデプロイした開発環境の使用状況を空に変更 | |
name: Change ENV by Pull Request close | |
on: | |
pull_request_target: | |
# closedしか指定していませんが、マージ時も対象となります | |
types: [closed] | |
jobs: | |
change_env: | |
runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PRに対して特定のコメントが作成されたら使用中に更新&デプロイタグをpush | |
# dev1へアプリ1をデプロイする部分のみ記述(本来はdev2, dev3も記述) | |
name: Deploy by Pull Request Comment | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
deploy_by_pr_comment: |