[no-ci] Add assignee check to PR metadata check workflow#1823
[no-ci] Add assignee check to PR metadata check workflow#1823rwgk merged 1 commit intoNVIDIA:mainfrom
Conversation
Also trigger on assigned/unassigned events and report missing assignees alongside the existing label and milestone checks. Made-with: Cursor
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Why pr-metadata-check.yml cannot trigger on milestone changesThe workflow uses Evidence
Practical impactWhen someone assigns or removes a milestone, the metadata check does not re-run automatically. However, the next Could we switch to
|
Why pr-metadata-check.yml does not check GitHub Projects "Status"Labels, milestone, and assignees are first-class PR fields available directly in the What it would take
Where it's brittle
Rough GraphQL sketchquery($owner: String!, $repo: String!, $pr: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pr) {
projectItems(first: 10) {
nodes {
fieldValueByName(name: "Status") {
... on ProjectV2ItemFieldSingleSelectValue {
name
}
}
}
}
}
}
}RecommendationHold off on this check. If you want to gate on readiness, a label like |
|
What is the motivation here? Are we really going to fail a PR because it doesn't have an assignee? |
|
I saw @leofang going through many times assigning me after PRs were merged. That made me think it must have a purpose. I was also thinking it's in line with enforcing labels and milestones. |
|
Still not understanding what the motivation here is. We shouldn't add more process requirements to code review. For the record, I am against this change as it creates more work and things to remember for no obvious reason. |
|
I can totally see that consistency going forward will make tracking and summarizing easier for management. The only slight issue I see is that we can currently not assign "partners" (as discussed in our team meeting), but IIUC that's about to change. |
This comment has been minimized.
This comment has been minimized.
1 similar comment
|
Extends the PR metadata check (#1815) to also require at least one assignee.
Changes
assigned/unassignedevents so the check re-runs when assignees change