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

89 Commits

Author SHA1 Message Date
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
Elliot Winkler
f9ea6f5185
Update pull request template (#13908)
In order to properly review a pull request, it is necessary to not only
understand the details about the changes presented, but also the
*context* behind those changes. Oftentimes, this context is difficult to
locate or even absent altogether. Providing a link to an issue or a user
story helps, but only if there are sufficient details listed in the
resource itself, which may not always be the case. Ultimately, I feel
that the best way to provide such information is to briefly explain it
in the PR description.

Additionally, for changes that involve UI/UX improvements, screenshots
or screencaps can really help the review process, as one can comprehend
the changes much faster than reading the relevant code.

With that in mind, this commit updates the pull request template to
include some more prompts and a better template for the description
area.
2022-03-14 09:28:27 -06:00
AndreasGassmann
355e5ab399
Add AirGap Vault detail links (#13650) 2022-02-22 13:00:51 -06:00
ricky
405a3495b0
Update crowdin workflow config (#13494)
* Add metamaskbot GH_USERNAME and GH_EMAIL to env

* add additional config for token, github_user_name, github_user_email

* delete

* delete token

* add GITHUB_ACTOR

Co-authored-by: Alex Donesky <adonesky@gmail.com>
2022-02-04 13:51:11 -05:00
ricky
f58e2552c3
use PAT for GITHUB_TOKEN (#13307)
Use `secrets.METAMASKBOT_CROWDIN_TOKEN` for `GITHUB_TOKEN`

ref: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow

> When you use the repository's GITHUB_TOKEN to perform tasks on behalf of the GitHub Actions app, events triggered by the GITHUB_TOKEN will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs. For example, if a workflow run pushes code using the repository's GITHUB_TOKEN, a new workflow will not run even when the repository contains a workflow configured to run when push events occur.
2022-01-13 17:45:07 -05:00
Mark Stacey
14704917c6
Update Bug Report issue template (#13267)
The "Bug Report" issue template now uses the new "issue form" GitHub
feature[1], which allows creating issues using a web form. This form
should be more effective in encouraging submitters to fill out the
required fields.

This form includes a new field for error messages or log output, and
for the build type the user was using (e.g. Flask).

[1]: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
2022-01-11 15:02:17 -03:30