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

Adding PR Guidelines to workflow #6307

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Open

Conversation

jgonz120
Copy link
Contributor

@jgonz120 jgonz120 commented Mar 7, 2025

Bug

Fixes:

Description

Updating the Worklfow.md so the PR section is structured as different topics and guidelines.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jgonz120 jgonz120 requested a review from a team as a code owner March 7, 2025 23:20
@jgonz120 jgonz120 requested a review from Copilot March 7, 2025 23:39
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR updates the workflow documentation to provide clearer, more organized guidelines for pull requests and code reviews.

  • Updated the header from "Workflow" to "Workflow Guidelines".
  • Reorganized and added sections to better delineate guidelines for requesting, addressing, and merging pull requests.
  • Improved the clarity of feedback instructions with concrete examples.

Reviewed Changes

File Description
docs/workflow.md Restructured sections and updated guidelines to improve clarity.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

docs/workflow.md Outdated
- ex. "I've never seen this before! Can you help me understand..."
- ex. "Nit: Spelling mistake"
- Focus on actionable feedback when requesting changes.
- ❌ This button won't do anything
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this as being actionable. Requiring a reviewer to do the investigation and provide exact steps to remediate seems unreasonable. Perhaps a better example can be added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would say that it isn't actionable feedback. While the author might now know the button isn't working, the reviewer hasn't shared the context as to why it wouldn't work. For this example, I don't think there's really any additional investigation if a button is missing a listener.

Copy link
Contributor

@jebriede jebriede Mar 10, 2025

Choose a reason for hiding this comment

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

In more general terms, comments such as "this code won't work" are not very actionable code review comments.

According to Copilot:

The comment "this button won't do anything" is not very actionable because it doesn't provide specific details about why the button won't work or what needs to be done to fix it. An actionable code review comment should offer clear, constructive feedback that helps the developer understand the issue and how to resolve it.

An alternative, more actionable comment could be:

"This button won't do anything because the click event handler is not defined. You need to add an event listener for the button's click event that triggers the desired action."

This comment is actionable because it:

Identifies the specific issue (missing click event handler).
Provides a suggestion for how to fix the issue (adding an event listener).
Would you like more examples of actionable code review comments or any other assistance with code reviews?

Copy link
Contributor

Choose a reason for hiding this comment

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

If someone submits a PR with a button not working, I don't expect we should have to go figure out what they didn't do to make the button work.

While the author might now know the button isn't working

This tells me the PR author did not do basic UI testing on their work before opening the PR. Therefore, adding this as PR guidance is not an acceptable standard to me.

Since you're also tracking metrics on review time, note that such practice will also be increasing time-to-complete PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pulled up some examples from ChatGPT:

Unactionable Feedback: ❌ "Your code is messy."
Actionable Feedback: ✔️ "Consider organizing your functions into smaller, more modular components to improve readability and maintainability."

Unactionable Feedback:
❌ "You’re not using best practices here."
Actionable Feedback:
✔️ "Consider using const or let instead of var for variable declarations to avoid potential scoping issues. This can help make your code more predictable."

Unactionable Feedback:
❌ "The formatting is wrong."
Actionable Feedback:
✔️ "It seems like the indentation is inconsistent. Following the style guide (e.g., using 2 spaces for indentation) could help make the code more consistent and easier to maintain."

That said this is meant to be an example, do we want to hold examples to this level of scrutiny? Is there a concern that someone will reference this example in their PR when we ask if they tested their code? It just seems like a lot of weight to place on an example.

Copy link
Member

Choose a reason for hiding this comment

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

I feel like the some of the examples in that list are really wordy. You can be nice without writing fluff.

That being said we're not adding those examples, but a different one.
I think it makes sense that the examples here are something universally agreed upon.
When using strong wording in guidelines like do this and don't do that, people are likely to take it very seriously.

I think it's worth coming up with a different example than the current one, one that doesn't put heavy burden on the reivewer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the example and asked chat gpt to give me some bullet points on providing actionable feedback.

docs/workflow.md Outdated
- ex. "I've never seen this before! Can you help me understand..."
- ex. "Nit: Spelling mistake"
- Focus on actionable feedback when requesting changes.
- ❌ This button won't do anything
Copy link
Member

Choose a reason for hiding this comment

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

I feel like the some of the examples in that list are really wordy. You can be nice without writing fluff.

That being said we're not adding those examples, but a different one.
I think it makes sense that the examples here are something universally agreed upon.
When using strong wording in guidelines like do this and don't do that, people are likely to take it very seriously.

I think it's worth coming up with a different example than the current one, one that doesn't put heavy burden on the reivewer.

Choose a reason for hiding this comment

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

Pull Request Overview

This PR restructures the workflow guidelines documentation to improve clarity and organization for pull requests and code reviews.

  • Updated section headings to better represent document topics
  • Revised guidelines for requesting and providing pull request feedback
  • Enhanced instructions on merging PRs and branch strategies
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.

5 participants