1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
Commit Graph

94 Commits

Author SHA1 Message Date
Gauthier Petetin
f1b00de693
fix(action): octokit not supported on MetaMask repos (#20544)
* fix(action): octokit not supported on MetaMask repos

The github action was constantly failing with the following error: octokit/request-action@v2.x is not allowed to be used in MetaMask/metamask-extension

* fix(action): shellcheck was failing

Shellcheck was failing in the CI. Had to craft the payload of the curl before doing the curl to fix this.
2023-08-22 07:49:36 -03:00
Gauthier Petetin
23249b68b7
feat: github actions to automatically create and close bug report issue (#20391)
* feat(action): github action to create bug report issue at RC cut

* feat(action): github action to close bug report issue once release is ready

* fix(action): replace main by master

* fix(action): create event does not support branch filter

* fix(action): indentation

* fix(action): actionlint erors

* fix(action): actionlint erors 2

* fix(action): actionlint erors 3

* fix(action): replace npm by yarn for consistency
2023-08-18 12:57:04 -03:00
Gauthier Petetin
ee48d8f0b7
Fix/check pr labels (#20353)
* fix(action): default branch is develop, not main

* fix(action): add missing documentation
2023-08-01 18:06:59 -03:00
Gauthier Petetin
0c2519397d
feat: github action to check if PR has requested labels before being merged (#19984)
* feat(action): check if pr includes requested labels

* fix(action): add missing QA label

* fix(action): check if no label prevents merging

* fix(action): remove QA label check

* fix(action): add missing reopened condition

* fix(action): increase list of labels which prevent merges
2023-07-28 15:15:18 -03:00
Pedro Figueiredo
937fcdc563
fix: investigate stalebot issue and tweak params (#20047)
* Investigate stalebot issue

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup

* wip cleanup
2023-07-24 15:45:17 +01:00
Pedro Figueiredo
8b2d4efd4a
Add stale bot to extension (#19759)
* add stale bot to extension

* Update .github/workflows/stale-issues-pr.yml

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* change config

* tweak msgs

---------

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2023-07-07 08:32:43 +01:00
Mark Stacey
18699ccb0e
Add metamaskbot comment when policy update fails (#19772)
The `metamaskbot` account now comments with a failure message when the
policy update fails. This comment also includes a link to the specific
run that failed, so that the PR author can review the log and/or retry
the policy update.
2023-06-30 21:28:19 -02:30
Mark Stacey
8404b8a3fc
Allow partially re-running a policy update (#19773)
Today if you try to re-run failed jobs in a policy update, it will
fail to restore caches from jobs that were successful. This could
result in a partial update, or a misleading "No policy changes"
message when there are policy changes to make. It's only safe to re-
run the entire workflow.

The cache key has been updated to reference the commit hash instead of
the run ID, making it safe to re-run just the failed jobs.
2023-06-30 13:01:17 -02:30
Mark Stacey
fb80873aeb
Add reaction when a policy update is requested (#19776)
This lets the commenter know that the process has started.
2023-06-28 14:05:54 -02:30
Mark Stacey
85de0d31c6
Fail policy update on cache miss (#19775)
If there is a cache miss during the policy update workflow, the result
would be invalid (either a partial update or a misleading "no policy
changes" message). To prevent this, the cache step will now fail if it
is not able to restore the cache.
2023-06-27 09:25:50 -02:30
Mark Stacey
5893fb3922
Fix update lavamoat policies workflow (#19774)
The update lavamoat policies workflow was installing dependencies from
the `develop` branch rather than the PR. This resulted in invalid
policy updates. It has been updated to use the PR branch in each step
instead.
2023-06-27 07:49:48 -02:30
Mark Stacey
55a8ff249c
Remove unused GitHub Action workflow (#19660)
This GitHub action workflow was disabled, but was still running setup
steps. It has now been removed entirely. We can re-introduce it again
later once the problem that led to it being disabled has been fixed.

The associated npm script and JavaScript module have been removed as
well.
2023-06-26 11:50:00 -02:30
Mark Stacey
ac8825b5b1
Use Yarn caching in GitHub Actions (#19662)
GitHub actions that install dependencies will now also cache those
dependencies using the standard strategy for Yarn (which is to hash the
lockfile).

This matches the module template (see https://github.com/MetaMask/metamask-module-template/pull/145
for details).

This should have no functional impact except that this action will run
faster when dependencies are unchanged.
2023-06-26 09:05:53 -02:30
Gauthier Petetin
ad3140c949
fix(action): add required permissions to remove labels (#19728) 2023-06-23 09:27:49 -03:00
Gauthier Petetin
6f4584315d
feat(action): remove labels after PR closed (#19639) 2023-06-21 09:05:57 -03:00
Mark Stacey
20d79cf46e
Add bot command to update LavaMoat policies (#19675)
A bot command has been added that can update LavaMoat policies
automatically. This helps contributors without a Linux machine to
produce policy files that match exactly what CI expects.

The README has been updated with instructions for this new workflow.
2023-06-21 09:17:30 -02:30
Mark Stacey
e58e5e166b
Lint GitHub Action workflows (#19665)
* Lint GitHub Action workflows

We now lint GitHub Action workflows. This lint step is performed in the
`main` workflow, which has an "All jobs passed" check that we can add
further checks to in the future. This can grow to encompass all PR
status checks that depend upon the PR contents.

This workflow is based upon the one used in the MetaMask module
template.

* Fix branch names

* Fix lint error
2023-06-21 09:17:13 -02:30
Mark Stacey
b18ad861be
Use immutable install in fitness function workflow (#19678)
The fitness function workflow now uses an immutable install, ensuring
that the dependencies installed are known and tracked in the lockfile.
This makes it easier to audit exactly which dependencies were used for
each run.
2023-06-20 20:03:48 -02:30
Mark Stacey
d138882253
Remove unnecessary step from action workflow (#19677)
The `chmod` step has been removed from the GitHub Actions workflow for
adding release labels. The script has been made executable in the
repository instead (the file mode is tracked by git).
2023-06-20 20:03:24 -02:30
Mark Stacey
1cc599708a
Use nvmrc in GitHub Actions workflows (#19661)
The `nvmrc` file is now referenced in our GitHub Actions workflows,
rather than hard-coding the expected Node.js version. This will make
future Node.js version changes easier to manage.
2023-06-20 20:03:02 -02:30
Pedro Figueiredo
ba6a27130e
add sonarqube to the extension (#19304) 2023-06-20 17:58:10 +01:00
Mark Stacey
962eabd278
Rename the Crowdin workflow action (#19663)
The workflow file has been renamed to use kebab-case, as is the
convention for all of our other files.
2023-06-20 11:36:44 -02:30
Gauthier Petetin
3bbfe87e9e
feat(action): github action to automatically add label "release-x.y.z" when PRs get merged (#19061)
* feat(action): github action to add release label when PR gets merged

* feat(action): make sure the action only runs for PRs merged in main branch

* fix(action): update labels default color

* fix(action): add check on release label format

* fix(action): type function explicitely

* feat(action): add possibility to extract next release version number from artifact

* fix(action): rename next rc cut number into next semver version

* feat(action): add a github action to create release branch

* fix(action): default branch is develop

* fix(action): specify name of workflow used to create release branch

* fix(action): handle case where artifact doesn't exist

* fix(action): create branch but not the PR

* feat(action): fetch next semver version from release branches name or from package.json

* fix(action): remove unused Create Release Branch action

* fix(action): release branch format was not correct

* feat(action): take tags into account when calculating next version number

* feat(action): add the possibility to force next semver version

* fix(action): update comments

* fix(action): adopt kebak-case instead of snake_case

* fix(action): rename PERSONAL_ACCESS_TOKEN into RELEASE_LABEL_TOKEN

* fix(action): yarn installation not required

* fix(action): yarn install shall be immutable

* fix(action): make the script compatible with ShellCheck

* fix(script): exit script earlier if condition is met

* fix(action): use closingIssuesReferences instead of timeline events

* fix(action): add execute permissions to script

* fix(action): remove duplicate comment
2023-06-20 09:29:35 -03:00
Pedro Figueiredo
45c833d890
disable pr labeler (#19185) 2023-05-18 14:03:39 +01:00
Pedro Figueiredo
6e180af313
remove pre commit hook for branch names (#19077)
* remove pre commit hook for branch names

* bail with ticket number 0 detected
2023-05-09 20:39:38 +01:00
Pedro Figueiredo
8df3bc9c1b
Label PRs based on the labels of the associated issue (#17603)
* Implement CI to copy issue labels over to PRs

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* clean up

* clean up
2023-05-08 09:51:02 +01:00
Dan J Miller
9062c347db
Update CODEOWNERS: remove requirement for supply-chain team to approv… (#19014)
* Update CODEOWNERS: remove requirement for supply-chain team to approve lavamoat policy changes

* Require extension-devs or supply-chain teams to give approving reviews on PRs that have lavamoat policy changes

---------

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-05-04 20:56:05 -02:30
Frederik Bolding
2c9306d8ed
Update CODEOWNERS (#19007)
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
2023-05-04 17:32:06 -02:30
Pedro Figueiredo
1d80029691
fix ff diff generation (#18824)
* fix ff diff generation

* wip

* Update .github/workflows/fitness-functions.yml

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update .github/workflows/fitness-functions.yml

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-05-03 16:04:53 +04:00
Frederik Bolding
d58b1f9aa7
Add snaps entries to CODEOWNERS (#18825)
* Add snaps entry to CODEOWNERS

* Add flask entry
2023-04-27 10:48:04 -05:00
Pedro Figueiredo
a4a5b28f2e
Fix diff generation for fitness functions (#18508) 2023-04-25 16:21:14 +01:00
Pedro Figueiredo
632ae0b7c3
Prevent new JS files in shared folder (#17737)
* Prevent new JS files in shared folder

* migrate to typescript

* fix types

* cleanup
2023-04-24 15:44:42 +01:00
Ariella Vu
7617a44a57
Add "Do Not Merge" GH Action to block PRs with "DO-NOT-MERGE" label (#18724)
* gh action: do-not-merge

* gh action: do-not-merge update

* gh action: Do Not Merge - use github.event.pull_request

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-04-21 12:31:49 -03:00
João Tavares
cd1a8270ab
Add github action to trigger metamask-desktop CI (#17977)
* chore: add action to trigger metamask-desktop ci

We want to be able to trigger
MetaMask Desktop CI whenever we
are releasing the Extension (in this
case, merging to master branch).
This will allow the desktop team
to easily identify whenever a breaking
change (to the extension-desktop app
pairing) is being released and address
the issue within the desktop app
in a timely manner

* use double quotes

ensure these get interpreted as single strings.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-03-09 15:37:01 +00:00
Pedro Figueiredo
d00b517682
disable ff (#17754) 2023-02-14 20:01:14 +00:00
Pedro Figueiredo
18a1b80524
Fix mocha syntax fitness function (#17712) 2023-02-10 17:36:14 +00:00
seaona
1dbacc2826
e2e Send to Multisig Wallet (#17565)
* e2e Send to Multisig Wallet

* Update test-dapp dependency to 5.4.0

* Added test-dapp update version to yarn lock

* disable ff

---------

Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
2023-02-10 15:35:45 +01:00
Pedro Figueiredo
26f6ae4c7c
Add testing documentation (#17411)
* Add testing documentation

* Implement diff filtering by regex

* change to relative import
2023-02-09 17:08:48 +00:00
Brad Decker
4cb2e573e5
add brad-decker as codeowner of .circle/ folder (#17648) 2023-02-08 08:29:15 -06:00
Brad Decker
137d5df0f5
Update codeowners to reflect importance of review (#16665) 2022-11-29 13:10:42 -06:00
legobeat
0336a3c006
Revert "ci: temporarily downgrade ubuntu to 20.04" (#16374)
This reverts commit bc6c6c4de4af7da210269700c5f6c417d27d3030.
2022-11-07 03:29:01 +00:00
Peter Yinusa
726b7b52cc
Update PULL_REQUEST_TEMPLATE.md (#16367) 2022-11-04 14:58:35 +00:00
legobeat
b744eab176
ci: temporarily downgrade ubuntu to 20.04 (#16320) 2022-11-01 09:56:35 -02:30
Zbyszek Tenerowicz
44d2f210d0
Set lavamoat codeowners to allow supply chain reviews (#15624) 2022-08-28 12:26:35 -05:00
ryanml
cad7ea04b1
Updating Zendesk ticket request URLs (#15458) 2022-08-04 12:45:25 -05:00
hilvmason
1b23ea1352
Update PULL_REQUEST_TEMPLATE.md (#14790) 2022-06-01 15:10:40 -04:00
Kevin Ghim
6bf87b83a6
Update bug-report.yml (#14466)
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-05-03 11:07:15 -05:00
hilvmason
8223aecabf
Update PULL_REQUEST_TEMPLATE.md (#14547) 2022-05-02 13:36:29 -04:00
ricky
eb241ae68f
bump crowdin/github-action (#14475) 2022-04-20 15:46:53 -04:00
ricky
2b134a0c7f
Update crowdin/github-action (#14381)
* Use crowdin/github-action@1.4.7

* use SHA
2022-04-07 14:28:03 -04:00