-
Notifications
You must be signed in to change notification settings - Fork 20
Check if local files are up to date #37
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
Conversation
@@ -17,9 +17,9 @@ export const pull = async (argv: string[]) => { | |||
|
|||
const qiitaApi = await getQiitaApiInstance(); | |||
const fileSystemRepo = await getFileSystemRepo(); | |||
const isLocalUpdate = args["--force"]; | |||
const forceUpdate = args["--force"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull.ts
とsync-article-from-qiita.ts
の変数の命名変更は別文脈なのでコミット分けたいです 🙏
@ohakutsu エラーが出ている時のUIの画像を添付して欲しいです 🙏 |
7439b9b
to
5b39357
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
private async syncItem( | ||
item: Item, | ||
beforeSync: boolean = false, | ||
isLocalUpdate: boolean = false | ||
forceUpdate: boolean = false | ||
) { | ||
const fileContent = FileContent.fromItem(item); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMした後ですみません
テストは変更ないですが大丈夫ですか?
5b39357
to
c800d90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What
現在、Qiita上で記事を変更した場合に
pull --force
をしなければ、ローカルの記事ファイルが古い状態になってしまう可能性がある。→ Qiita上で変更したものが上書きされてしまい消えてしまう恐れがある。
そのため、Qiita上で記事が更新されているが、記事ファイルが古い状態になってしまっているときに注意を出すようにした。
How
Why
Refs