https://github.com/googlemaps/js-github-policy-bot
Enforce polices for repositories in the googlemaps organization.
https://github.com/googlemaps/js-github-policy-bot
Last synced: 6 months ago
JSON representation
Enforce polices for repositories in the googlemaps organization.
- Host: GitHub
- URL: https://github.com/googlemaps/js-github-policy-bot
- Owner: googlemaps
- License: apache-2.0
- Created: 2022-04-27T22:52:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-16T14:34:52.000Z (8 months ago)
- Last Synced: 2025-06-21T05:05:19.554Z (8 months ago)
- Language: TypeScript
- Size: 2.19 MB
- Stars: 4
- Watchers: 16
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# Policy Bot for Google Maps Repositories
[](https://www.npmjs.com/package/@googlemaps/github-policy-bot)


[](https://codecov.io/gh/googlemaps/js-github-policy-bot)

[](https://github.com/semantic-release/semantic-release)
[](https://discord.gg/jRteCzP)
## Description
This package provides a command line tool for enforcing policies on GitHub repositories and initializing files to meet the requirements of these policies.
### `check`
```sh
npx @googlemaps/github-policy-bot \
check DIRECTORY_OF_PROJECT
```
The tool performs checks beyond the minimal required for Google Open Source including specific files around GitHub processes, bots, and workflows.
### `init`
```sh
npx @googlemaps/github-policy-bot \
init DIRECTORY_OF_PROJECT \
--users GITHUB_USERNAME GITHUB_USERNAME2 \ # for blunderbuss and CODEOWNERS
--team googlemaps/eng \ # for CODEOWNERS
--repository js-github-policy-bot \
--kind js \ # should match prefix of repository
--no-overwrite
```
Which will output the following:
```
- Writing file: README.md
- Writing file: SECURITY.md
- Writing file: .github/blunderbuss.yml
- Writing file: .github/CODEOWNERS
- Writing file: .github/workflows/codeql.yml
- Writing file: .github/workflows/test.yml
- Writing file: .github/workflows/release.yml
```
For more information run:
```sh
npx @googlemaps/github-policy-bot help init
```
It is recommended to adjust the generated files before committing them to the repository. The templates for these files are defined at https://github.com/googlemaps/js-github-policy-bot/tree/main/src/init/templates.