-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into hm/remove-notification-controller
- Loading branch information
Showing
288 changed files
with
20,868 additions
and
5,413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'Add PR to Project Board - Wallet Framework Team' | ||
|
||
on: | ||
pull_request: | ||
types: [opened, labeled, review_requested] | ||
|
||
jobs: | ||
add-to-project: | ||
name: Add PR to Project Board | ||
runs-on: ubuntu-latest | ||
env: | ||
TEAM_NAME: 'wallet-framework-engineers' | ||
TEAM_LABEL: 'team-wallet-framework' | ||
|
||
steps: | ||
- name: Add PR to project board | ||
uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e | ||
if: | | ||
github.event.requested_team.name == env.TEAM_NAME || | ||
contains(github.event.pull_request.labels.*.name, env.TEAM_LABEL) || | ||
contains(github.event.pull_request.requested_teams.*.name, env.TEAM_NAME) | ||
with: | ||
project-url: https://github.com/orgs/MetaMask/projects/113 | ||
github-token: ${{ secrets.CORE_ADD_PRS_TO_PROJECT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Create Update Issues | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
CORE_CREATE_UPDATE_ISSUES_TOKEN: | ||
description: GitHub token with permission to create issues in both mobile and extension repositories | ||
required: true | ||
|
||
jobs: | ||
create-update-issues: | ||
environment: default-branch | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout head | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
|
||
- name: Create Issues | ||
env: | ||
GH_TOKEN: ${{ secrets.CORE_CREATE_UPDATE_ISSUES_TOKEN }} | ||
run: | | ||
IFS=$'\n' read -r -d '' -a tag_array < <(git tag --points-at HEAD && printf '\0') | ||
for tag in "${tag_array[@]}"; do | ||
if [[ "${tag}" == @metamask/* ]] ; then | ||
# Extract package name without the leading '@' | ||
package_name="${tag#@}" | ||
package_name="${package_name%@*}" | ||
# Extract version number | ||
version="${tag##*@}" | ||
# Check if version number ends with .0.0 | ||
if [[ $version == *.0.0 ]]; then | ||
# Fetch responsible team from file | ||
teams=$(jq -r --arg key "$package_name" '.[$key]' teams.json) | ||
gh issue create --title "Update ${package_name} to version ${version}" --body "Please update ${package_name} to version ${version}" --repo "MetaMask/metamask-extension" --label "$teams" | ||
gh issue create --title "Update ${package_name} to version ${version}" --body "Please update ${package_name} to version ${version}" --repo "MetaMask/metamask-mobile" --label "$teams" | ||
fi | ||
fi | ||
done | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.