← Winnitude! Search  ·  Reader Mode (1527 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 69 LINKS

GitHub - MetaMask/github-tools: An assortment of tools interacting with the GitHub API to get metrics for things like PR review comments/reviews

Repository navigation

github-tools
Public

About

An assortment of tools interacting with the GitHub API to get metrics for things like PR review comments/reviews

Resources

Readme

Code of conduct

Code of conduct

Security policy

Security policy Activity Custom properties

Stars

13 stars

Watchers

52 watching

Forks

8 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


275 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github .github    
.yarn/ plugins/ @yarnpkg .yarn/ plugins/ @yarnpkg    
src src    
.editorconfig .editorconfig    
.gitattributes .gitattributes    
.gitignore .gitignore    
.nvmrc .nvmrc    
.oxfmtrc.json .oxfmtrc.json    
.yarnrc.yml .yarnrc.yml    
CHANGELOG.md CHANGELOG.md    
README.md README.md    
knip.config.mts knip.config.mts    
oxlint-suppressions.json oxlint-suppressions.json    
oxlint.config.mts oxlint.config.mts    
package.json package.json    
tsconfig.json tsconfig.json    
vitest.config.mts vitest.config.mts    
yarn.config.cjs yarn.config.cjs    
yarn.lock yarn.lock    

Repository files navigation

GitHub Tools

A place for internal GitHub tools to exist and be used.

Usage

This repository holds a collection of scripts which are intended to be run locally:

  • yarn get-review-metrics: Gets the PR load of the extension platform team.

  • yarn count-references-to-contributor-docs: Counts the number of references to the contributor-docs repo in pull request comments.

  • yarn run slack:release-testing: Publishes a notification to slack for active releases regarding the release testing statuses.

  • yarn segment-schema:draft-pr: Local CLI for the Segment schema draft. See the CLI and the action .

Authentication

Some scripts require a GitHub token in order to run fully.

For best results, create a classic personal token and ensure that it has the following scopes:

  • read:org
  • public_repo

To use the token, you need to set the GITHUB_AUTH_TOKEN environment variable:

GITHUB_AUTH_TOKEN="<your GitHub token>" <command>

It's recommended to use your machine's local keychain to store the token and retrieve it from there. For example, under macOS, you can use the following command to store the token:

security add-generic-password -a $USER -s 'GitHub auth token' -w "<your GitHub token>"

Now you can use the token like this:

GITHUB_NPM_TOKEN="$(security find-generic-password a $USER -s 'GitHub auth token' -w)" <command>

Logging

Some scripts print additional information that may be useful for debugging. To see it, set the DEBUG environment variable as follows:

DEBUG="metamask:*" <command>

Contributing

Setup

  • Install Node.js version 20
    • If you are using nvm (recommended) running nvm use will automatically choose the right node version for you.
  • Install Yarn v3
  • Run yarn install to install dependencies and run any required post-install scripts

Testing and Linting

Run yarn test to run the tests once. To run tests on file changes, run yarn test:watch.

Run yarn lint to run the linter, or run yarn lint:fix to run the linter and fix any automatically fixable issues.

About

An assortment of tools interacting with the GitHub API to get metrics for things like PR review comments/reviews

Resources

Readme

Code of conduct

Code of conduct

Security policy

Security policy Activity Custom properties

Stars

13 stars

Watchers

52 watching

Forks

8 forks Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Generated from MetaMask/metamask-module-template