Skip to content

Commit 3eb7399

Browse files
authored
feat: implement subject pattern (#254)
1 parent 6b9a912 commit 3eb7399

40 files changed

+34304
-37260
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @jef
1+
* @jef

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github: jef
2-
custom: ["https://www.paypal.me/jxf"]
1+
github: jef
2+
custom: ["https://www.paypal.me/jxf"]

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 🐛 Bug Report
2+
description: File a bug report.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thanks for taking the time to fill out this bug report!
9+
- type: textarea
10+
id: what-happened
11+
attributes:
12+
label: What happened?
13+
description: Also tell us, what did you expect to happen?
14+
placeholder: Tell us what you see!
15+
value: "A bug happened!"
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: logs
20+
attributes:
21+
label: Relevant log output
22+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
23+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
blank_issues_enabled: false
2-
contact_links:
3-
- name: 💡 Have an idea for a new feature?
4-
url: https://github.com/jef/conventional-commits-pr-action/discussions
5-
about: Create a new idea discussion!
6-
- name: 🙇 Need help?
7-
url: https://github.com/jef/conventional-commits-pr-action/discussions
8-
about: Create a new help discussion if it hasn't been asked before!
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💡 Have an idea for a new feature?
4+
url: https://github.com/jef/conventional-commits-pr-action/discussions
5+
about: Create a new idea discussion!
6+
- name: 🙇 Need help?
7+
url: https://github.com/jef/conventional-commits-pr-action/discussions
8+
about: Create a new help discussion if it hasn't been asked before!

.github/pull_request_template.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
<!-- Please use Conventional Commits to label your title -->
2-
<!-- https://www.conventionalcommits.org/en/v1.0.0/ -->
3-
<!-- Example: feat: allow provided config object to extend other configs -->
4-
5-
### Description
6-
7-
<!-- Fixes #(issue) -->
8-
<!-- Please also include relevant motivation and context. -->
9-
10-
### Testing
11-
12-
<!-- Please describe the tests that you ran to verify your changes. -->
13-
<!-- Provide instructions so we can reproduce. -->
14-
<!-- Please also list any relevant details for your test configuration -->
15-
16-
### New dependencies
17-
18-
<!-- List any dependencies that are required for this change. -->
19-
<!-- Otherwise, delete section. -->
1+
<!-- Please use Conventional Commits to label your title -->
2+
<!-- https://www.conventionalcommits.org/en/v1.0.0/ -->
3+
<!-- Example: feat: allow provided config object to extend other configs -->
4+
5+
### Description
6+
7+
<!-- Fixes #(issue) -->
8+
<!-- Please also include relevant motivation and context. -->
9+
10+
### Testing
11+
12+
<!-- Please describe the tests that you ran to verify your changes. -->
13+
<!-- Provide instructions so we can reproduce. -->
14+
<!-- Please also list any relevant details for your test configuration -->
15+
16+
### New dependencies
17+
18+
<!-- List any dependencies that are required for this change. -->
19+
<!-- Otherwise, delete section. -->

.github/workflows/ci.yaml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,54 @@
11
name: Continuous Integration
2+
23
on:
34
pull_request:
45
branches:
56
- main
7+
68
jobs:
7-
build_test_lint:
8-
name: Build, test, and lint
9+
build-lint-test:
10+
name: Build, Lint, and Test
911
runs-on: ubuntu-latest
1012
steps:
1113
- name: Checkout repository
1214
uses: actions/checkout@v4
15+
1316
- name: Setup Node.js
1417
uses: actions/setup-node@v4
1518
with:
1619
node-version-file: package.json
20+
1721
- name: Install dependencies
1822
run: npm ci
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Lint
28+
run: npm run lint
29+
1930
- name: Test
20-
run: npm run test
31+
run: npm run test:run
32+
33+
is-bundled:
34+
name: Check if bundled
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
42+
- name: Check if bundled
43+
run: |
44+
if [ ! -f dist/index.js ]; then
45+
echo "The project is not bundled. Please run the build step.";
46+
exit 1;
47+
fi
48+
49+
- name: Check if dist/index.js is updated in PR
50+
run: |
51+
if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q '^dist/index.js$'; then
52+
echo "dist/index.js was not updated in this PR. Please update the bundle.";
53+
exit 1;
54+
fi

.github/workflows/pr-lint.yaml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
name: Pull Request Title Linter
2-
on:
3-
pull_request:
4-
types:
5-
- opened
6-
- edited
7-
- reopened
8-
- synchronize
9-
jobs:
10-
pr_lint:
11-
name: Lint pull request title
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
16-
- name: Lint pull request title
17-
uses: ./
18-
with:
19-
token: ${{ secrets.GITHUB_TOKEN }}
1+
name: Pull Request Title Linter
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- edited
7+
- reopened
8+
- synchronize
9+
jobs:
10+
pr_lint:
11+
name: Lint pull request title
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Lint pull request title
17+
uses: ./

0 commit comments

Comments
 (0)