-
Notifications
You must be signed in to change notification settings - Fork 4
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 code]: Formatterの自動適応Workflowの作成 #106
Conversation
on:
pull_request:
types: ["opened", "synchronize", "reopened"] |
6899092
to
944f30f
Compare
Deploying skyshare with Cloudflare Pages
|
一旦コミットから fe14394 を削除、rebaseでコミットの結合・整形し、再度 Formatterが実行できるようにブランチを修正実施した |
https://github.com/nkte8/skyshare/actions/runs/8687589376/job/23821413716
修正中 |
https://github.com/nkte8/skyshare/actions/runs/8687696499/job/23821737034
|
refを変更したことで、formatterによる変更が発生した場合に以下が正しく反映されなくなってしまった(shaが変わったことが原因?)
|
f36eb73
to
8df347d
Compare
CheckoutするRefを明示 Commit Statusを削除 Cloudflare PagesのAlias URLを正しく出力するように修正 アクションするユーザをgithub-actionsユーザからworkflow実行者に修正
Cloudflare PagesのAlias URLは文字数が28文字超えた場合、後の文字列が削除されるため、これを設定する処理をWorkflowに追加 備考: Wrangler DeployではこのAlias URLの直接取得は現時点ではできない |
PR時に自動的にコードをフォーマットするワークフローを作成 フォーマッタをDeployへ統合 CheckoutするRefを明示 Commit Statusを削除 Cloudflare PagesのAlias URLを正しく出力するように修正 アクションするユーザをgithub-actionsユーザからworkflow実行者に修正 [Github Action] Format code at ./astro --------- Co-authored-by: nkte8 <nkte8@users.noreply.github.com>
本PRでは
astro
配下のコードを自動整形するworkflowを取り扱う。本対応はあくまで
astro
ディレクトリ配下のみの対応で、#65 の一部という扱いであるチェックする項目
PRリクエスト時にFormatterが自動適応され、必要に応じてcommitが追加されることPRへコミットの追加時にFormatterが自動適応され、必要に応じてcommitが追加されることPRをリオープン時、Formatterが自動適応され、必要に応じてcommitが追加されること本Workflowが実行される場合、←あくまでPRリクエスト操作なので影響ないため、除外Auto-manage PR branches
の後に実行されることrelated Issue #65