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

ci: fix pull_req時にAPI diffの実行ができない #12123

Merged
merged 6 commits into from
Oct 23, 2023

Conversation

anatawa12
Copy link
Member

@anatawa12 anatawa12 commented Oct 23, 2023

What

Fix #12122

Why

Additional info (optional)

default branchにworkflowがないと一切動作しないので、 https://github.com/anatawa12/misskeyapi-diff (このprのhead)をdefault branchにしてるので、ここに適当なpullreq投げていただけると動作確認できると思います。

anatawa12#1

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5a39c1a) 79.23% compared to head (085f4bd) 79.18%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12123      +/-   ##
===========================================
- Coverage    79.23%   79.18%   -0.06%     
===========================================
  Files          939      939              
  Lines       100419   100561     +142     
  Branches      8161     8170       +9     
===========================================
+ Hits         79569    79631      +62     
- Misses       20850    20930      +80     

see 14 files with indirect coverage changes

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

@anatawa12
Copy link
Member Author

OKだと思います

@syuilo syuilo requested a review from tai-cha October 23, 2023 06:31
@tai-cha
Copy link
Contributor

tai-cha commented Oct 23, 2023

元のスクリプトだとapi-base.json, api-head.jsonも同じArtifactに含まれていたのですが、Diffだけでなくこちらも改めて同梱するようにしていただけたら助かります:pray:

実際にユースケースとしてdiffの比較だけでなくapi-head.jsonもリファレンスとしてDL可能にすることを想定しているため

@anatawa12
Copy link
Member Author

Report API Diffのartifactsにもapi-{base,head}.jsonを含めるようにしました

@anatawa12
Copy link
Member Author

変更点とは関係ないとこで落ちてますね...

@anatawa12
Copy link
Member Author

github.event.workflow_run.pull_requests.*.numberを使うようにし、save-pr-number消しました

Copy link
Contributor

@tai-cha tai-cha left a comment

Choose a reason for hiding this comment

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

ありがとうございます:+1:

@syuilo syuilo merged commit b22066b into misskey-dev:develop Oct 23, 2023
17 checks passed
@syuilo
Copy link
Member

syuilo commented Oct 23, 2023

🙏🙏🙏

kanarikanaru pushed a commit to kanarikanaru/misskey that referenced this pull request Nov 2, 2023
* initial commit for report-api-diff.yml

* add api-{base,head}.json into api-artifact

* try to get pull request id from github.event.workflow_run.pull_requests

* Update report-api-diff.yml

* Update report-api-diff.yml

* remove save-pr-number
@anatawa12 anatawa12 deleted the api-diff branch November 24, 2023 13:26
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.

pull_req時にAPI diffの実行ができない
3 participants