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

chore: auto request all reviewers #4093

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Dec 6, 2024

Closes #4092

Note: hasn't been tested yet. Seems like something we can verify post merge.

@rootulp rootulp self-assigned this Dec 6, 2024
# NOTE: This assigned the team itself, not members of the team. The Github
# team auto PR assignment will then turn this into individuals
- team:celestia-core # This is the Github Team
- cmwaters
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cmwaters LMK if you would like to be removed from this list. If that's the case, we can explicitly add you to PRs that need your attention

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm okay with this for now. I'm not too sensitive to github notifications

Comment on lines -13 to -18
# directory owners
# NOTE: the directory owners should include the global owners unless the global
# owner is fully deferring ownership to the directory owner
docs @liamsi @celestiaorg/celestia-core
specs @liamsi @celestiaorg/celestia-core
x/blobstream @rach-id @evan-forbes
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed these b/c I think they outlived their purpose

@rootulp rootulp marked this pull request as ready for review December 6, 2024 22:16
@rootulp rootulp requested a review from a team as a code owner December 6, 2024 22:16
Copy link
Contributor

coderabbitai bot commented Dec 6, 2024

📝 Walkthrough

Walkthrough

The pull request includes modifications to two files in the .github directory. The .github/CODEOWNERS file has had its directory-specific ownership entries removed, leaving only global owners. The .github/auto_request_review.yml file has updated the default reviewers for pull requests, replacing a team designation with individual reviewers. These changes simplify ownership definitions and clarify the review process for pull requests.

Changes

File Change Summary
.github/CODEOWNERS Removed directory ownership entries for docs, specs, and x/blobstream.
.github/auto_request_review.yml Updated default reviewers by removing team designation and explicitly listing five individual reviewers.

Assessment against linked issues

Objective Addressed Explanation
Auto request all reviewers (#4092)

Possibly related PRs

Suggested reviewers

  • cmwaters
  • evan-forbes
  • ninabarbakadze

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
.github/auto_request_review.yml (1)

4-8: Consider implementing a more maintainable reviewer configuration

While the current implementation achieves the goal of requesting all reviewers, it introduces maintenance overhead as the list needs manual updates when team members join or leave. Consider these alternatives:

  1. Use GitHub team references (e.g., org/team-name) to automatically manage membership
  2. Split the configuration into separate groups for core and app engineers for better organization

Example structure:

reviewers:
  groups:
    core-engineers:
      - org/celestia-core-team
    app-engineers:
      - org/celestia-app-team
  defaults:
    - group: core-engineers
    - group: app-engineers
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between f11a169 and 5b99395.

📒 Files selected for processing (2)
  • .github/CODEOWNERS (0 hunks)
  • .github/auto_request_review.yml (1 hunks)
💤 Files with no reviewable changes (1)
  • .github/CODEOWNERS
🔇 Additional comments (2)
.github/auto_request_review.yml (2)

4-4: Consider adding an opt-out mechanism for @cmwaters

Based on the previous review discussion, @cmwaters might want to opt out of automatic review requests.


4-8: Verify the reviewer assignment functionality in a test environment

The PR description mentions that the implementation is untested. Since this is a critical workflow change affecting all PRs, it should be tested before merging.

Run this script to verify the current team membership and ensure all required reviewers are included:

Copy link
Member

@rach-id rach-id left a comment

Choose a reason for hiding this comment

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

Approving but Im wondering if there was a decision to make all reviewers review all PRs?

@rootulp
Copy link
Collaborator Author

rootulp commented Dec 7, 2024

Approving but Im wondering if there was a decision to make all reviewers review all PRs?

There wasn't a decision so this is up for debate. Currently we have a rule that each PR must have 2 approvals before being merged. Since 2 random ppl get tagged on each PR, it can take a while for those two people to review. I usually add all core/app engineers as reviewers on my PRs so I figured I'd automate it.

Copy link
Contributor

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

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

I prefer everyone being tagged for reviews. Everyone that has the capacity should spend time reviewing everyone else's work. It's super important.

# NOTE: This assigned the team itself, not members of the team. The Github
# team auto PR assignment will then turn this into individuals
- team:celestia-core # This is the Github Team
- cmwaters
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm okay with this for now. I'm not too sensitive to github notifications

@rootulp rootulp merged commit 61aa46b into celestiaorg:main Dec 10, 2024
31 checks passed
@rootulp rootulp deleted the rp/auto-request-all-reviewers branch December 10, 2024 15:47
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.

Auto request all reviewers
3 participants