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

自動マージの仕組みを導入 #827

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

shinya
Copy link
Contributor

@shinya shinya commented Feb 1, 2024

PRの円滑なマージを推奨するために、試験的に自動マージのGithubActionを導入してみる。

従来との変更点

現在、ワークフローはpushされると自動で並列に走行するようになっている。
それを一部直列実行に変更。

  1. PHP Stan
  2. Unit Test
  3. E2E Test
  4. Auto Merge

の順番で実行していく。次のワークフローが完了かつ、成功した場合に次のワークフローを実行する。
つまり、E2E Testまでが完了すると、マージを行う想定。

現時点ではまず、いきなりマージの事故を防ぐために「自動承認(Approve)」を実装している。
自動承認される状況に問題がなければ、自動マージの処理もコメントアウトを解除する予定。

また、最初に動く「PHP Stan」のワークフローはPush時のみならず、承認を行った際にも駆動するように変更している

注意点

このワークフローを動かすためには、リポジトリの設定変更が必須となる。

  • Setting > Actions > Generalの設定を開く
  • 「Workflow permissions」のところまで移動する
  • Read and write permissions にラジオボタンを変更
  • Allow GitHub Actions to create and approve pull requests にチェックを入れる
スクリーンショット 2024-01-25 17 38 00 スクリーンショット 2024-01-25 17 38 08

最後に

試行錯誤を重ねながらする前提で構築しているので、運用してみて適さない場合は随時やり方を検討していく。
よろしくお願いします。

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (21c0025) 55.38% compared to head (d68e826) 55.38%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #827   +/-   ##
=======================================
  Coverage   55.38%   55.38%           
=======================================
  Files          75       75           
  Lines        8908     8908           
=======================================
  Hits         4934     4934           
  Misses       3974     3974           
Flag Coverage Δ
tests 55.38% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dotani1111 dotani1111 merged commit 41a96a0 into EC-CUBE:master Feb 5, 2024
3 checks passed
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.

4 participants