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

dependabotでchangesetの自動生成をやめる #1346

Merged
merged 4 commits into from
Jul 31, 2023

Conversation

penicillin0
Copy link
Contributor

@penicillin0 penicillin0 commented Jul 31, 2023

背景

ref: https://cartaholdings.slack.com/archives/C02Q8F3FQBC/p1690246043246829

depenadabotの場合は、自動でchangesetを実行することを試みていたが、以下の課題があった。

  • package.jsonが更新されない場合(yarn.lockのみの更新)の対処が難しい、無理やりやったとてもyarnに依存してしまう
  • patch以外を上げたいような大きなバージョンアップもpatchになる

そのため、dependabotのPRはリリースノートには含めず、大きな変更があった場合のみ、depenadabot作成PRに手動でpushする方針とした。

やったこと

  • dependabotのPRで自動でchangesetの実行をするjobを削除
  • changesetを実行しているかのcheckはdependabot以外にした

@changeset-bot
Copy link

changeset-bot bot commented Jul 31, 2023

🦋 Changeset detected

Latest commit: 8c50c16

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
ingred-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Jul 31, 2023

👷 Deploy Preview for ingred-ui processing.

Name Link
🔨 Latest commit ce39231
🔍 Latest deploy log https://app.netlify.com/sites/ingred-ui/deploys/64c84542869a66000732ed25

1 similar comment
@netlify
Copy link

netlify bot commented Jul 31, 2023

👷 Deploy Preview for ingred-ui processing.

Name Link
🔨 Latest commit ce39231
🔍 Latest deploy log https://app.netlify.com/sites/ingred-ui/deploys/64c84542869a66000732ed25

@netlify
Copy link

netlify bot commented Jul 31, 2023

Deploy Preview for ingred-ui ready!

Name Link
🔨 Latest commit 8c50c16
🔍 Latest deploy log https://app.netlify.com/sites/ingred-ui/deploys/64c84610699fed00083b9442
😎 Deploy Preview https://deploy-preview-1346--ingred-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@penicillin0 penicillin0 self-assigned this Jul 31, 2023
@penicillin0 penicillin0 marked this pull request as ready for review July 31, 2023 23:42
Comment on lines 20 to +22
- name: check changesets
run: make -f ci.mk check_changesets
if: github.actor != 'dependabot[bot]'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dependabotはchangesetをしていないくもいいので除外

@@ -95,6 +19,7 @@ jobs:
run: make -f ci.mk install
- name: check changesets
run: make -f ci.mk check_changesets
if: github.actor != 'dependabot[bot]'
Copy link
Contributor

Choose a reason for hiding this comment

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

人間はチェックする、良さそう!

@@ -4,84 +4,8 @@ on:
pull_request:

jobs:
generate-changeset:
Copy link
Contributor

Choose a reason for hiding this comment

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

直でスクリプトを書いている場所を削れたの大変素敵でいい

@penicillin0 penicillin0 merged commit b47fd3c into master Jul 31, 2023
2 checks passed
@penicillin0 penicillin0 deleted the feature/changeset-rm-dependabot branch July 31, 2023 23:47
@FluctMember FluctMember mentioned this pull request Aug 14, 2023
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.

None yet

2 participants