割と頭が混乱しているので、まずは1ポモドーロ実行して記録を残す 書く場所はどこが適切かわからないのでとりあえずここに書く
🍅 privateリポジトリを作成する
omniからpush :
git remote add enchi https://github.com/nishio/omoikane-embed-enchi.git
git branch -M main
XXXX git push -u origin main
あーLFS送っちゃうのね
git push -u origin mainは間違いじゃん$ git push -u enchi maincloneして新しいcodeで開く
$ git clone https://github.com/nishio/omoikane-embed-enchi.git$ code omoikane-embed-enchiとりあえずローカルで動かす
.envはリポジトリに入ってないのでomniからコピーPROJECT_NAME=enchiするpayload = {
"title": title,
"project": PROJECT,
"text": "\n".join(buf),
"is_public": is_public,
}
- `is_public=True`はハードコードされてる
- Falseにしとくか
.envでCOLLECTION_NAMEを別立てにしていたことがうまく機能する?COLLECTION_NAMEはnishioのままにするis_public=False?is_public=Falseなものを検索対象にしてしまい、生成したものがenchiに入るようにしたら、誤って自分以外に公開してはいけない情報をis_public=Falseで入れてしまってリークする未来が見えるis_public=True or for_enchi=Trueが適切かis_public=True or project="enchi"かproject="nishio" or project="enchi"でいいのでは?🍅 :
prev_title, prev_lines = bot_output[-1]
~~~~~~~~~~^^^^
IndexError: list index out of range
これはメインブランチが最新のノートを取得して読もうとしていて、最初の導入なので最新のノートが存在しないことによるもの
今回はそもそもメインブランチが必要ない気がしているのでパス
private projectであることに起因するエラー
手動トリガーで1枚ページを作った
リファクタリングした
🍅
そもそもoriginどこなん?
% git remote rename origin core% git push omni main% git fetch enchi
% git push omni mainYour branch and 'enchi/main' have diverged,
and have 5 and 4 different commits each, respectively.
% git branch -dr enchi/mainその他