Skip to content

Commit 3a3161a

Browse files
authored
chore: Add semantic pull requests (#5)
Add a semantic-pull-requests configuration (like we have for `coder/m`), to validate commit messages.
1 parent 2618ce4 commit 3a3161a

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.github/semantic.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
###############################################################################
2+
# This file configures "Semantic Pull Requests", which is documented here:
3+
# https://github.com/zeke/semantic-pull-requests
4+
#
5+
# This action/spec implements the "Conventional Commits" RFC which is
6+
# available here:
7+
# https://www.notion.so/coderhq/Conventional-commits-1d51287f58b64026bb29393f277734ed
8+
###############################################################################
9+
10+
# We only check that the PR title is semantic. The PR title is automatically
11+
# applied to the "Squash & Merge" flow as the suggested commit message, so this
12+
# should suffice unless someone drastically alters the message in that flow.
13+
titleOnly: true
14+
15+
# Types are the 'tag' types in a commit or PR title. For example, in
16+
#
17+
# chore: fix thing
18+
#
19+
# 'chore' is the type.
20+
types:
21+
# A build of any kind.
22+
- build
23+
24+
# A RELEASED fix that will NOT be back-ported. The originating issue may have
25+
# been discovered internally or externally to Coder.
26+
- fix
27+
28+
# Any code task that is ignored for changelog purposes. Examples include
29+
# devbin scripts and internal-only configurations.
30+
- chore
31+
32+
# Any work performed on CI.
33+
- ci
34+
35+
# An UNRELEASED correction. For example, features are often built
36+
# incrementally and sometimes introduce minor flaws during a release cycle.
37+
# Corrections address those increments and flaws.
38+
- correct
39+
40+
# Work that directly implements or supports the implementation of a feature.
41+
- feat
42+
43+
# A fix for a RELEASED bug (regression fix) that is intended for patch-release
44+
# purposes.
45+
- hotfix
46+
47+
# A refactor changes code structure without any behavioral change.
48+
- refactor
49+
50+
# A git revert for any style of commit.
51+
- revert
52+
53+
# Adding tests of any kind. Should be separate from feature or fix
54+
# implementations. For example, if a commit adds a fix + test, it's a fix
55+
# commit. If a commit is simply bumping coverage, it's a test commit.
56+
- test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ This repository contains source code for Coder V2. Additional documentation:
1010
## Directory Structure
1111

1212
- `.github/`: Settings for [Dependabot for updating dependencies](https://docs.github.com/en/code-security/supply-chain-security/customizing-dependency-updates) and [build/deploy pipelines with GitHub Actions](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions).
13+
- [`semantic.yaml`](./github/semantic.yaml): Configuration for [semantic pull requests](https://github.com/apps/semantic-pull-requests)

0 commit comments

Comments
 (0)