Skip to content

Conversation

@yihuiliao
Copy link
Member

@yihuiliao yihuiliao commented Dec 23, 2025

Labels, labels, labels! In order for the script to produce a meaningful output, we need to add the appropriate labels to each PR, notably which library (S2, RAC, V3) and component the PR belongs to. If there is no valid component label, the script will default to using the PR title as the "Component" column. If the library label is missing, the script will default to "Other".

If a PR does not need testing, we can add the "no testing" label so the script skips the PR.

I've also added the PR title to the last column just to give a bit more context directly on the sheet. That said, I'm sure most of us open the GitHub link anyway so not sure how useful this is but might be good when differentiating between two PR's under the same component.

Probably the most important thing is to add testing instructions since this is the most time consuming part of creating a testing sheet. The script will look for the content under "Test Instructions" in the PR to fill out this column. For those on the team, it is each of our responsibility to add testing instructions to our own PR's. If it doesn't need to be tested during the testing session, we should be adding the "no testing" label.

For contributors, those reviewing should be taking a look at the testing instructions and adding any additional instructions if needed.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

  1. Run the following script: node scripts/getCommitsForTesting.mjs 2025-01-13 2025-10-21
  2. Go to output.csv, copy it to Google sheets, highlight the rows, go to "Data" in the toolbar -> split text to columns -> separator: comma

🧢 Your Project:

@rspbot
Copy link

rspbot commented Dec 23, 2025

@rspbot
Copy link

rspbot commented Dec 23, 2025

@rspbot
Copy link

rspbot commented Jan 2, 2026

@rspbot
Copy link

rspbot commented Jan 2, 2026

@rspbot
Copy link

rspbot commented Jan 9, 2026

@rspbot
Copy link

rspbot commented Jan 20, 2026

@yihuiliao yihuiliao changed the title wip: update testing sheet automation update testing sheet automation Jan 20, 2026
@yihuiliao yihuiliao changed the title update testing sheet automation chore: update testing sheet automation Jan 20, 2026
@adobe adobe deleted a comment from rspbot Jan 20, 2026
@yihuiliao yihuiliao marked this pull request as ready for review January 20, 2026 23:52
@rspbot
Copy link

rspbot commented Jan 21, 2026

if (labels.size === 0) {
otherPRs.push(row);
} else {
if (labels.has('S2')) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't know if you're already considering this, but you can probably auto apply these labels when the "needs localisation" tag is applied as well, just by checking the directories that a change affects

Copy link
Member Author

Choose a reason for hiding this comment

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

oh true, that shouldn't be too hard to do

return title.replace(/\s*\(#\d+\)\s*$/, '');
}

let validLabels = new Set([
Copy link
Member

Choose a reason for hiding this comment

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

can we automate this list? is it all labels? or are some omitted?

Copy link
Member Author

Choose a reason for hiding this comment

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

i don't think we want to have all the labels available on our github. it is filtered to some extent because i don't want to include labels like "good first issue" or "ready for review". there are only some labels that are actually "valid". if we automated it by pulling all the labels available on the repo, we would still have to filter it. maybe that would be easier to maintain tho?

@rspbot
Copy link

rspbot commented Jan 22, 2026

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.

4 participants