Skip to content
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

test: metamask bot #4

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

test: metamask bot #4

wants to merge 7 commits into from

Conversation

cryptodev-2s
Copy link
Owner

Description

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@cryptodev-2s
Copy link
Owner Author

@metamaskbot update-attributions

Copy link

github-actions bot commented Jun 5, 2024

Attributions updated

cryptodev-2s added a commit to MetaMask/metamask-mobile that referenced this pull request Jun 5, 2024
## **Description**

This pull request introduces a GitHub Action workflow dedicated to
managing attributions effectively within our project. The key components
of this new workflow include:

- Local Scripts for Attributions Management:
- `yarn build:attribution`: Updates attributions to reflect current
dependencies.
- `yarn test:attribution-check`: Checks if attributions are up-to-date
with the latest changes.
- GitHub Actions:
   - A check to ensure attributions are up-to-date on all pull requests.
- An action that allows team members to update attributions directly by
commenting `@metamskbot update-attributions` on any PR.

## **Related issues**

Fixes: [#1550](MetaMask/mobile-planning#1550)

## **Manual testing steps**

### ***Locally***

- Run `yarn build:attribution` to update the attributions file.
- Run `yarn test:attribution-check` to ensure all attributions are
current.
- 
### ***On GitHub (CI/PR)***

- Open and push changes to a PR.
- Intentionally remove an entry from attribution.txt to simulate an
error.
- Observe that CI fails due to missing attributions.
- Comment `@metmaskbot update-attributions` on the PR.
- A bot will respond with a thumbs up, followed by a comment indicating
whether the attributions were successfully updated.

For a practical demonstration, refer to the pull request in my fork: [PR
Demonstration](cryptodev-2s#4)
### ***Note***
This functionality is currently operational only on a fork as it depends
on the integration of the bot action into the develop branch.

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants