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

新規ドラフト記事を投稿時、ディレクトリ構成によって記事の格納先が変わる #150

Open
Mahito opened this issue Nov 17, 2023 · 1 comment

Comments

@Mahito
Copy link
Contributor

Mahito commented Nov 17, 2023

blogsync pull で作成されるディレクトリ構成(entry/${year}/${month}/${day}/)とそうでない場合で記事の格納先が異なり、意図せず EditURL などが反映されないことがある。

  • entry/${year}/${month}/${day}/file の場合: entry/_draft/ に新規ファイルとして PreviewURL などを格納(push したファイルに追記なし)
% blogsync push entry/2023/11/17/test_entry.md
      POST ---> https://blog.hatena.ne.jp/mazinlabs/mahito.hatenablog.com/atom/entry
       201 <--- https://blog.hatena.ne.jp/mazinlabs/mahito.hatenablog.com/atom/entry
     store /Users/mahito/repos/github/mahito.hatenablog.com/entry/_draft/6801883189059489955.md
% blogsync fetch entry/2023/11/17/test_entry.md
     error failed to get blogID form EditURL:
  • 上記以外の場合: push したファイルに追記
% blogsync push entry/2023/11/test_entry.md
      POST ---> https://blog.hatena.ne.jp/mazinlabs/mahito.hatenablog.com/atom/entry
       201 <--- https://blog.hatena.ne.jp/mazinlabs/mahito.hatenablog.com/atom/entry
     store /Users/mahito/repos/github/mahito.hatenablog.com/entry/2023/11/test_entry.md
% blogsync fetch entry/2023/11/test_entry.md
       GET ---> https://blog.hatena.ne.jp/mazinlabs/mahito.hatenablog.com/atom/entry/6801883189059489023
       200 <--- https://blog.hatena.ne.jp/mazinlabs/mahito.hatenablog.com/atom/entry/6801883189059489023
@Songmu
Copy link
Member

Songmu commented Dec 14, 2023

これは、ここで実施した変更に関係しているかも知れません。
#128

その変更通りに動いている可能性もあるし、意図しない挙動になっている可能性もあります。
何にせよ、ちゃんと現行挙動をドキュメントする必要がありますね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants