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

Improve: アップロード後にコメントを更新するようにする #13

Merged

Conversation

sevenc-nanashi
Copy link
Member

内容

アップロード後にコメントを更新するようにするようにします。

Copilotに要約させてみた

This pull request includes several changes to the workflow and script files to improve the build and deployment processes. The key changes involve renaming and restructuring scripts, updating the workflow configuration, and modularizing common functionality into a shared file.

Workflow and Script Updates:

  • Renamed scripts/collect.ts to scripts/collectArtifacts.ts and updated the script to use modular imports from a new scripts/common.ts file. [1] [2] [3]
  • Added scripts/updateComments.ts to handle updating comments with deployment information.
  • Updated package.json to reflect the new script names and added a script for updating comments.

Workflow Configuration Changes:

  • Modified .github/workflows/update_pages.yml to separate artifact collection and build steps, and added a step to update comments after deployment. [1] [2]

Codebase Simplification:

  • Created scripts/common.ts to centralize shared constants and functions used across multiple scripts.
  • Updated src/composables/useDownloadData.ts to use the DownloadData type from the new scripts/common.ts file.

関連 Issue

(なし)

スクリーンショット・動画など

(なし)

その他

(なし)

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 suggestion.

Files not reviewed (1)
  • package.json: Language not supported

// 収集対象のリポジトリ
export const guestRepo = "voicevox/voicevox";
// デプロイ情報を書き込むコメントの最初に付けるマーカー
export const commentMarker = "<!-- voiccevox preview-pages info -->";
Copy link
Preview

Copilot AI Nov 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "voiccevox" should be "voicevox".

Suggested change
export const commentMarker = "<!-- voiccevox preview-pages info -->";
export const commentMarker = "<!-- voicevox preview-pages info -->";

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

タイポの修正はどっちでも良いと思います!

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 suggestion.

Files not reviewed (1)
  • package.json: Language not supported

// 過去に使われていたマーカーも含めたマーカーの一覧
export const commentMarkers = [
commentMarker,
"<!-- voiccevox preview-pages info -->",
Copy link
Preview

Copilot AI Nov 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in the comment marker. It should be "".

Suggested change
"<!-- voiccevox preview-pages info -->",
"<!-- voicevox preview-pages info -->",

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

マーカーが大体置き換わったら過去のマーカーは消せそうですね!

@Hiroshiba Hiroshiba merged commit 93db0d5 into VOICEVOX:main Nov 24, 2024
1 check passed
@Hiroshiba
Copy link
Member

mainブランチのCDが落ちてそう?(把握されてる気がしますがとりあえずコメント)

@sevenc-nanashi
Copy link
Member Author

sevenc-nanashi commented Nov 24, 2024

修正をこっちに入れ忘れてました…

gitGraph
  commit ID: "..."
  branch pr/13
  commit ID: "バグを埋め込む"
  branch pr/14
  commit ID: "新機能を作る"
  commit ID: "バグに気がついて直す"
  checkout main
  merge pr/13
  commit ID: "いまここ"
Loading

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

Successfully merging this pull request may close these issues.

2 participants