feat(action): Improve bug report creation #13397
Open
+731
−133
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The purpose of this improvement is to automate several steps that I currently do manually when a new release x.y.z is created:
a.
regression-RC-x.y.z
b.
regression-prod-x.y.z
These steps are important because the data pipelines of our metrics system consume the data that's present on the Releases Github Project board.
Finally this improvement includes a check to no longer re-create the bug report issue when it already exists, which used to happen sometimes when the release was re-cut, and which was disturbing other automations (e.g. wrong metrics, duplicated Slack notifications).
The following prerequisites are already met:
BUG_REPORT_TOKEN
to repo secrets (fine grained access token withIssues:Write
andMetadata:Read
permissions for metamask-mobile and mobile-planning repos, as well asProjects: Write
permissions for MetaMask organization)RELEASES_GITHUB_PROJECT_BOARD_NUMBER
to repo variablesRELEASES_GITHUB_PROJECT_BOARD_VIEW_NUMBER
to repo variablesSame PR for Extension
Related issues
None
Manual testing steps
release/x.y.z
(where x, y, z, are numbers)regression-RC-x.y.z
and regression-prod-x.y.z
labels have been created on the public code reporegression-RC-x.y.z
and regression-prod-x.y.z
labels have been created on the private planning repoIn case, you don't have sufficient permissions on these test repos, here's a video where the manual testing steps are demoed.
Screenshots/Recordings
Before
None
After
Github action to automate bug report creation - Watch Video
Pre-merge author checklist
Pre-merge reviewer checklist