docs/react-v9/contributing/rfcs/shared/build-system/triage-automation.md
contributors: @hotell
We wanna make initial triage-ing issues a fully automated process.
At the moment processing newly created issues is mostly manual work done by 2 people on shield duty. While this was a good start it wont scale as the codebase/team/contributors list grows. Thus we need to introduce automation to establish best possible contributors DX while they need our help.
<!-- Why are we making this change? What problem are we solving? What do we expect to gain from this? This section is important as the motivation or problem statement is indepenent from the proposed change. Even if this RFC is not accepted this Motivation can be used for alternative solutions. In the end, please make sure to present a neutral Problem statement, rather than one that motivates a particular solution -->After we introduced new github issues beta for reporting issues and feature request, the experience for both contributors and shield devs was significantly improved. A followup that was discussed is to implement further automation by leveraging Github Actions, This document will describe the approach in better detail.
We would like to automate following steps:
Pre-requirements:
Current state:
Expected state:
Note:
- by "project" we mean one of libraries that exist within monorepo (v0,v8,v9,web-components)
Workflow:
Based on selected project within issue template, we should add appropriate label.
NOTE:
- this is already implement via github action
Note:
- by "package" we mean official package name used to publish to npm registry without
@scopeprefix- by "Component name" we mean official package name transformed via following
toPascalCase(packageName.replace('@fluentui/react-'))
Workflow:
Based on selected project within issue template, additional select should be dynamically generated so contributor can pick proper package.
Unfortunately dynamic input controls are not possible with github issues beta which leaves us with following options how to implement this:
1. project label assignment as labeling would be handled in one stepWorkflow approach - summary:
After feedback and additional discussion the majority is in favor of "2. creating feature/bug templates per library", where the select list will contain "Component names".
Simplified example of select box option for project issue template:
Component:
- Text
- Menu
- Dialog
- ...
Based on this, all project labels should adhere to unified pattern based on issue origin(project):
Text -> package: react-text, Fluent UI react-components (v9)
Menu -> package: react-menu, Fluent UI react-components (v9)
Dialog -> package: react-dialog, Fluent UI react-components (v9)
Text -> package: react, Fluent UI react (v8)
Menu -> package: react, Fluent UI react (v8)
Dialog -> package: react, Fluent UI react (v8)
Chart -> package: react-charting, Fluent UI react (v8)
Text -> package: react-northstar, Fluent UI react-northstar (v0)
Menu -> package: react-northstar, Fluent UI react-northstar (v0)
Dialog -> package: react-northstar, Fluent UI react-northstar (v0)
Text -> package: web-components
Menu -> package: web-components
Q&A:
1. How will we maintain list of packages in issue template:
On library creation/removal we will tweak our issue/feature template automatically.
Note:
- this can also happen only after created package has been published to npm registry ( post release GH action)
Based on assigned labels, we can automate assignment of issues based on our source of truth of ownership which is CODEOWNERS file.
💡 NOTE:
- every issue will still contain "Triage needed" flag, so it can be verified by person on shield duty
Workflow:
graph TD;
I("issue template created")-->L("labels added")-->C("parse codeowners");
subgraph "parse codeowners"
C-->D("find owner based on package")
end
D-->A("add issue to unified board")-->AA("pick team based on ownership definition");
Cons:
Pros:
NONE
Not applicable
<!-- Optional section, but useful for first drafts. Use this section to track open issues on unanswered questions regarding the design or proposal. -->