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

feat_: implement PR review workflow #5877

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

siddarthkay
Copy link
Contributor

Summary

This PR Implements a PR review workflow like this :

  • If a PR has been reviewed once.
  • This action will check if breaking_change label exists on PR.
  • if it does then @status-im/desktop-qa and @status-im/mobile-qa are asked for review on this PR.
  • Unless 1 person from @status-im/desktop-qa and @status-im/mobile-qa approve that PR the Github action will block the PR.
  • Only after these conditions match the Github action will allow merging of this PR.

@siddarthkay siddarthkay self-assigned this Sep 25, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Sep 25, 2024

Jenkins Builds

Click to see older builds (38)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ bfe0b66 #1 2024-09-25 10:53:55 ~1 min tests-rpc 📄log
✔️ bfe0b66 #1 2024-09-25 10:56:08 ~3 min linux 📦zip
✔️ bfe0b66 #1 2024-09-25 10:56:51 ~4 min ios 📦zip
✔️ bfe0b66 #1 2024-09-25 10:57:13 ~5 min android 📦aar
✔️ bfe0b66 #1 2024-09-25 11:25:05 ~32 min tests 📄log
✔️ 8a90758 #2 2024-09-25 10:57:23 ~1 min tests-rpc 📄log
✔️ 8a90758 #2 2024-09-25 10:58:54 ~1 min android 📦aar
✔️ 8a90758 #2 2024-09-25 10:59:54 ~2 min ios 📦zip
✔️ 8a90758 #2 2024-09-25 11:00:35 ~4 min linux 📦zip
✔️ da41420 #3 2024-09-25 11:00:09 ~1 min tests-rpc 📄log
✔️ da41420 #3 2024-09-25 11:00:48 ~1 min android 📦aar
✔️ da41420 #3 2024-09-25 11:02:48 ~1 min linux 📦zip
✔️ da41420 #3 2024-09-25 11:02:57 ~2 min ios 📦zip
✔️ 54ff2e6 #4 2024-09-25 11:08:00 ~1 min android 📦aar
✔️ 54ff2e6 #4 2024-09-25 11:08:22 ~1 min tests-rpc 📄log
✔️ 54ff2e6 #4 2024-09-25 11:08:33 ~1 min linux 📦zip
✔️ 54ff2e6 #4 2024-09-25 11:09:22 ~2 min ios 📦zip
✔️ 54ff2e6 #2 2024-09-25 11:57:42 ~32 min tests 📄log
✔️ 49a9364 #5 2024-09-25 12:38:22 ~1 min android 📦aar
✔️ 49a9364 #5 2024-09-25 12:38:33 ~1 min tests-rpc 📄log
✔️ 49a9364 #5 2024-09-25 12:38:52 ~2 min linux 📦zip
✔️ 49a9364 #5 2024-09-25 12:41:56 ~5 min ios 📦zip
✔️ 49a9364 #3 2024-09-25 13:09:28 ~32 min tests 📄log
✔️ 0b606e4 #6 2024-09-25 13:47:51 ~1 min tests-rpc 📄log
✔️ 0b606e4 #6 2024-09-25 13:47:52 ~1 min android 📦aar
✔️ 0b606e4 #6 2024-09-25 13:48:17 ~2 min linux 📦zip
✔️ 0b606e4 #6 2024-09-25 13:49:12 ~3 min ios 📦zip
✔️ 0b606e4 #4 2024-09-25 14:16:11 ~29 min tests 📄log
✔️ 6b552c1 #7 2024-09-25 15:56:19 ~1 min android 📦aar
✔️ 6b552c1 #7 2024-09-25 15:56:28 ~1 min tests-rpc 📄log
✔️ 6b552c1 #7 2024-09-25 15:56:58 ~2 min linux 📦zip
✔️ 6b552c1 #7 2024-09-25 15:58:00 ~3 min ios 📦zip
✔️ 6b552c1 #5 2024-09-25 16:27:33 ~32 min tests 📄log
✔️ 1fb7f36 #8 2024-09-29 16:24:03 ~1 min android 📦aar
✔️ 1fb7f36 #8 2024-09-29 16:24:19 ~1 min tests-rpc 📄log
✔️ 1fb7f36 #8 2024-09-29 16:24:33 ~2 min linux 📦zip
✔️ 1fb7f36 #8 2024-09-29 16:25:40 ~3 min ios 📦zip
✔️ 1fb7f36 #6 2024-09-29 16:54:17 ~31 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 03dc775 #9 2024-09-29 16:26:58 ~2 min android 📦aar
✔️ 03dc775 #9 2024-09-29 16:27:15 ~2 min tests-rpc 📄log
✔️ 03dc775 #9 2024-09-29 16:27:26 ~2 min linux 📦zip
✔️ 03dc775 #9 2024-09-29 16:29:05 ~3 min ios 📦zip
✔️ a3ef631 #10 2024-09-29 16:33:07 ~1 min android 📦aar
✔️ a3ef631 #10 2024-09-29 16:33:18 ~1 min tests-rpc 📄log
✔️ a3ef631 #10 2024-09-29 16:33:38 ~1 min linux 📦zip
✔️ a3ef631 #10 2024-09-29 16:34:24 ~2 min ios 📦zip
✔️ a3ef631 #7 2024-09-29 17:26:16 ~31 min tests 📄log

Copy link

github-actions bot commented Sep 25, 2024

Looks like you have BREAKING CHANGES in your PR.
Please make sure to follow 💔How to introduce breaking changes guide:

Check-list

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.06%. Comparing base (2bbcce6) to head (a3ef631).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5877      +/-   ##
===========================================
+ Coverage    45.91%   46.06%   +0.14%     
===========================================
  Files          888      888              
  Lines       157381   157379       -2     
===========================================
+ Hits         72267    72495     +228     
+ Misses       77010    76567     -443     
- Partials      8104     8317     +213     
Flag Coverage Δ
functional 11.36% <ø> (?)
unit 45.64% <ø> (-0.28%) ⬇️

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

see 119 files with indirect coverage changes


on:
pull_request_review:
types: [submitted]
Copy link
Collaborator

Choose a reason for hiding this comment

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

We probably want all 3 event types:

Suggested change
types: [submitted]
types:
- submitted
- edited
- dismissed

name: PR Review Workflow for Breaking Changes

on:
pull_request_review:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just realised that we probably still need pull_request: [opened] here, otherwise the check won't appear until some review appear.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, pull_request: [labeled, unlabeled] will also be needed to track breaking change add/removal.

@siddarthkay
Copy link
Contributor Author

Hmmm

One or more of the teams you specified is not a collaborator of the status-im/status-go repository.

So it seems we will have to make the relevant teams inside status-go repository first.
At the moment I see teams are made at Org level.

@igor-sirotin
Copy link
Collaborator

igor-sirotin commented Sep 25, 2024

@siddarthkay is it time to review this? Or are you still testing?

@siddarthkay siddarthkay marked this pull request as draft September 26, 2024 00:31
@siddarthkay siddarthkay force-pushed the pr-review-workflow-automation branch 2 times, most recently from 1fb7f36 to 03dc775 Compare September 29, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants