-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: INFRA-2087 auto generated issues for mobile and extension repositories #4763
Open
rrabenda
wants to merge
12
commits into
main
Choose a base branch
from
feat/INFRA-2087-auto-generate-issues
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
dc8c828
INFRA-2087 auto generated issues for mobile and extension repositories
rrabenda e11bf76
INFRA-2087 spellcheck fix
rrabenda af3ce7a
INFRA-2087 spellcheck fix 2
rrabenda b2349ca
main merge
rrabenda 4a1f6b5
INFRA-2087 auto generated issues for mobile and extension repositories 2
rrabenda 38bd005
INFRA-2087 auto generated issues for mobile and extension repositories 3
rrabenda fcf7a34
INFRA-2087 auto generated issues for mobile and extension repositories 4
rrabenda d4772b1
main merge
rrabenda 028e224
INFRA-2087 add missing team-product-safety team
rrabenda 66f0d36
main merge
rrabenda 440fe6a
INFRA-2087 add teams lists for labels creation
rrabenda 3451a23
INFRA-2087 add teams lists for labels creation 2
rrabenda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Create Update Issues | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
GH_TOKEN: | ||
description: GitHub token with permission to create issues in both mobile and extension repositories | ||
required: true | ||
|
||
jobs: | ||
create-update-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout head | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
|
||
- name: Create Issues | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_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 form 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 "consensys-vertical-apps/rr-auto-issue-test" --label $teams | ||
gh issue create --title "Update ${package_name} to version ${version}" --body "Please update ${package_name} to version ${version}" --repo "consensys-vertical-apps/rr-auto-issue-test-2" --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"metamask/accounts-controller": "team-accounts", | ||
"metamask/address-book-controller": "team-confirmations", | ||
"metamask/announcement-controller": "team-wallet-ux", | ||
"metamask/approval-controller": "team-confirmations", | ||
"metamask/assets-controllers": "team-assets", | ||
"metamask/base-controller": "team-wallet-framework", | ||
"metamask/build-utils": "team-wallet-framework", | ||
"metamask/chain-controller": "team-accounts", | ||
"metamask/composable-controller": "team-wallet-framework", | ||
"metamask/controller-utils": "team-wallet-framework", | ||
"metamask/ens-controller": "team-confirmations", | ||
"metamask/eth-json-rpc-provider": "team-wallet-api-platform", | ||
"metamask/gas-fee-controller": "team-confirmations", | ||
"metamask/json-rpc-engine": "team-wallet-api-platform", | ||
"metamask/json-rpc-middleware-stream": "team-wallet-api-platform", | ||
"metamask/keyring-controller": "team-accounts", | ||
"metamask/logging-controller": "team-confirmations", | ||
"metamask/message-manager": "team-confirmations", | ||
"metamask/name-controller": "team-confirmations", | ||
"metamask/network-controller": "team-wallet-framework", | ||
"metamask/notification-controller": "team-snaps-platform", | ||
"metamask/notification-services-controller": "team-notifications", | ||
"metamask/permission-controller": "team-wallet-api-platform", | ||
"metamask/permission-log-controller": "team-wallet-api-platform", | ||
"metamask/phishing-controller": "team-product-safety", | ||
"metamask/polling-controller": "team-wallet-framework", | ||
"metamask/preferences-controller": "team-wallet-framework", | ||
"metamask/profile-sync-controller": "team-notifications", | ||
"metamask/queued-request-controller": "team-wallet-api-platform", | ||
"metamask/rate-limit-controller": "team-snaps-platform", | ||
"metamask/selected-network-controller": "team-wallet-api-platform", | ||
"metamask/signature-controller": "team-confirmations", | ||
"metamask/transaction-controller": "team-confirmations", | ||
"metamask/user-operation-controller": "team-confirmations" | ||
} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on mapping each controller to an array of team labels, rather than just one? Many of them have multiple code owners. Choosing just one for the label seems a bit arbitrary.