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

A new workflow to ease pull request review by labelling them #2153

Closed
wants to merge 2 commits into from

Conversation

abikouo
Copy link
Contributor

@abikouo abikouo commented Jun 27, 2024

This new workflow calculates the size of a pull request based on the additions and deletions and add a label corresponding to the size of the pull (XS, S, M, L, XL).
This aims to ease pull request review

  • Prior reviewing the PR, reviewers can estimate the time to spend on it according to the size
  • PR authors should consider this information to split the PR to ease the review

Copy link
Contributor

@GomathiselviS
Copy link
Collaborator

Hi @abikouo

Thank you for the effort you put into creating a GH workflow to ease PR review by labeling the PR based on its size. This is a fantastic step towards improving our review process.

However, I would like to note that while this workflow can inform the PR submitter about the need to break down large PRs, we should be cautious about relying solely on the formula used. The PR size should ideally reflect the complexity of the inserted and deleted lines, not just their count. The current formula may not fully capture this complexity.

Thank you again for your contribution. Your work is much appreciated, and this workflow will certainly help streamline our PR submission and review process. Can you add a proposal in the cloud-content-handbook and move the GH action to cloud-content-ci-automation repository?

Copy link
Collaborator

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

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

As @GomathiselviS suggested, I think this approach should first be proposed in the content handbook.


def LabelCommentPR(repository: str, pr_number: int, insertions: int, deletions: int) -> None:
# Calculating PR Size:
# The PR size is calculated using the formula: insertions + deletions * 0.5.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where this formula is coming from?

@abikouo abikouo closed this Jun 28, 2024
alinabuzachis added a commit to alinabuzachis/amazon.aws that referenced this pull request Oct 16, 2024
SUMMARY

Depends-On: ansible-collections#2303
Refactor ec2_vpc_peer* modules
Once the module is migrated to amazon.aws I will deprecate result returned by the info module and rename the ec2_vpc_peer module (see ansible-collections#2154).

ISSUE TYPE

Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ec2_vpc_peer
ec2_vpc_peering_info
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@fcd780e
alinabuzachis added a commit to alinabuzachis/amazon.aws that referenced this pull request Oct 24, 2024
SUMMARY

Depends-On: ansible-collections#2303
Refactor ec2_vpc_peer* modules
Once the module is migrated to amazon.aws I will deprecate result returned by the info module and rename the ec2_vpc_peer module (see ansible-collections#2154).

ISSUE TYPE

Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ec2_vpc_peer
ec2_vpc_peering_info
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@fcd780e
alinabuzachis added a commit to alinabuzachis/amazon.aws that referenced this pull request Oct 24, 2024
SUMMARY

Depends-On: ansible-collections#2303
Refactor ec2_vpc_peer* modules
Once the module is migrated to amazon.aws I will deprecate result returned by the info module and rename the ec2_vpc_peer module (see ansible-collections#2154).

ISSUE TYPE

Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ec2_vpc_peer
ec2_vpc_peering_info
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@fcd780e
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.

3 participants