Skip to content

Commit 5dc82bc

Browse files
committed
Add changelog
1 parent fe85fc0 commit 5dc82bc

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
is-high-risk-environment: false
1717

1818
- run: yarn lint
19+
- name: Validate RC changelog
20+
if: ${{ startsWith(github.head_ref, 'release/') }}
21+
run: yarn lint:changelog --rc
22+
- name: Validate changelog
23+
if: ${{ !startsWith(github.head_ref, 'release/') }}
24+
run: yarn lint:changelog
1925

2026
- name: Require clean working directory
2127
shell: bash

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
[Unreleased]: https://github.com/MetaMask/github-tools/

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"version": "0.0.0",
44
"private": true,
55
"description": "Tools for interacting with the GitHub API to do metrics gathering",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/MetaMask/github-tools.git"
9+
},
610
"scripts": {
711
"changelog:check": "ts-node src/changelog-check.ts",
812
"count-references-to-contributor-docs": "ts-node --swc src/scripts/count-references-to-contributor-docs/cli.ts",
913
"gen:commits": "node .github/scripts/generate-rc-commits.mjs",
1014
"get-review-metrics": "ts-node src/get-review-metrics.ts",
1115
"lint": "yarn lint:tsc && yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check",
1216
"lint:constraints": "yarn constraints",
17+
"lint:changelog": "auto-changelog validate --prettier",
1318
"lint:dependencies": "depcheck && yarn dedupe",
1419
"lint:eslint": "eslint . --cache --ext js,ts",
1520
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies",

0 commit comments

Comments
 (0)