MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.14k stars 1.1k forks source link

feat: Add team label to pr #10086

Closed itsyoboieltr closed 3 months ago

itsyoboieltr commented 3 months ago

Description

This PR adds the add-team-label GitHub workflow and the accompanying add-team-label-to-pr script. Most of the implementation follows the add-release-label GitHub workflow and the add-release-label-to-pr-and-linked-issues script. To make the implementation easier, a new helper function, addLabelByIdToLabelable was also added, and the previously non-exported retrieveLabel function was exported.

When a new PR is opened, it will automatically add the author's team to the labels.

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2447

Manual testing steps

  1. Open PR, and see that the correct label is added.

Screenshots/Recordings

Not applicable

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 3 months ago

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

itsyoboieltr commented 3 months ago

I have read the CLA Document and I hereby sign the CLA

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud