Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @jef
* @jef
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: jef
custom: ["https://www.paypal.me/jxf"]
github: jef
custom: ["https://www.paypal.me/jxf"]
25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🐛 Bug Report
description: File a bug report.
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 💡 Have an idea for a new feature?
url: https://github.com/jef/conventional-commits-pr-action/discussions
about: Create a new idea discussion!
- name: 🙇 Need help?
url: https://github.com/jef/conventional-commits-pr-action/discussions
about: Create a new help discussion if it hasn't been asked before!
blank_issues_enabled: false
contact_links:
- name: 💡 Have an idea for a new feature?
url: https://github.com/jef/conventional-commits-pr-action/discussions
about: Create a new idea discussion!
- name: 🙇 Need help?
url: https://github.com/jef/conventional-commits-pr-action/discussions
about: Create a new help discussion if it hasn't been asked before!
38 changes: 19 additions & 19 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!-- Please use Conventional Commits to label your title -->
<!-- https://www.conventionalcommits.org/en/v1.0.0/ -->
<!-- Example: feat: allow provided config object to extend other configs -->

### Description

<!-- Fixes #(issue) -->
<!-- Please also include relevant motivation and context. -->

### Testing

<!-- Please describe the tests that you ran to verify your changes. -->
<!-- Provide instructions so we can reproduce. -->
<!-- Please also list any relevant details for your test configuration -->

### New dependencies

<!-- List any dependencies that are required for this change. -->
<!-- Otherwise, delete section. -->
<!-- Please use Conventional Commits to label your title -->
<!-- https://www.conventionalcommits.org/en/v1.0.0/ -->
<!-- Example: feat: allow provided config object to extend other configs -->
### Description
<!-- Fixes #(issue) -->
<!-- Please also include relevant motivation and context. -->
### Testing
<!-- Please describe the tests that you ran to verify your changes. -->
<!-- Provide instructions so we can reproduce. -->
<!-- Please also list any relevant details for your test configuration -->
### New dependencies
<!-- List any dependencies that are required for this change. -->
<!-- Otherwise, delete section. -->
40 changes: 37 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,54 @@
name: Continuous Integration

on:
pull_request:
branches:
- main

jobs:
build_test_lint:
name: Build, test, and lint
build-lint-test:
name: Build, Lint, and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm run test
run: npm run test:run

is-bundled:
name: Check if bundled
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check if bundled
run: |
if [ ! -f dist/index.js ]; then
echo "The project is not bundled. Please run the build step.";
exit 1;
fi

- name: Check if dist/index.js is updated in PR
run: |
if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q '^dist/index.js$'; then
echo "dist/index.js was not updated in this PR. Please update the bundle.";
exit 1;
fi
36 changes: 17 additions & 19 deletions .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: Pull Request Title Linter
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
pr_lint:
name: Lint pull request title
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Lint pull request title
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Pull Request Title Linter
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
pr_lint:
name: Lint pull request title
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Lint pull request title
uses: ./
53 changes: 23 additions & 30 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
name: Release
on:
push:
branches:
- main
jobs:
build_tag_release:
name: Build, tag, and release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup release please
uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
changelog-path: CHANGELOG.md
package-name: conventional-commits-pr-action
- name: Tag major version
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/google-github-actions/release-please-action.git"
git tag -d v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git push origin v${{ steps.release.outputs.major }}
name: Release
on:
push:
branches:
- main
jobs:
build-tag-release:
name: Build, tag, and release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup release please
uses: googleapis/release-please-action@v3
id: release
with:
release-type: node
package-name: conventional-commits-pr-action
- name: Tag major version
if: ${{ steps.release.outputs.release_created }}
run: |
git tag -a v${{ steps.release.outputs.new_version }} -m "Release v${{ steps.release.outputs.new_version }}"
git push origin v${{ steps.release.outputs.new_version }}
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.idea/
.vscode/

build/
coverage/
node_modules/
.idea/
.vscode/

node_modules/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 0 additions & 3 deletions .prettierrc.js

This file was deleted.

102 changes: 51 additions & 51 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
# Changelog

## [1.2.1](https://github.com/jef/conventional-commits-pr-action/compare/v1.2.0...v1.2.1) (2025-02-12)


### Bug Fixes

* fail missing scope ([#251](https://github.com/jef/conventional-commits-pr-action/issues/251)) ([e187277](https://github.com/jef/conventional-commits-pr-action/commit/e187277687d2af590ac3f692c786ad2d709a44f5))

## [1.2.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.1.1...v1.2.0) (2024-12-12)


### Features

* bump node, deps, add bot_ignore ([ac8b430](https://github.com/jef/conventional-commits-pr-action/commit/ac8b430aae3be29f1a53b5e84eddb190341b7647))

## [1.3.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.2.0...v1.3.0) (2024-12-11)


### Features

* add bots_ignore input ([#231](https://github.com/jef/conventional-commits-pr-action/issues/231)) ([6a6c1c4](https://github.com/jef/conventional-commits-pr-action/commit/6a6c1c4e9d224ea5ee12911040d5983c028fe9a6))

## [1.2.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.1.1...v1.2.0) (2024-12-11)


### Features

* update node, deps, testing ([#229](https://github.com/jef/conventional-commits-pr-action/issues/229)) ([774e6b8](https://github.com/jef/conventional-commits-pr-action/commit/774e6b82d68662745722538184f979fb0dba9561))

### [1.1.1](https://github.com/jef/conventional-commits-pr-action/compare/v1.1.0...v1.1.1) (2022-03-22)


### Bug Fixes

* ci version, rebuild dist ([74f2326](https://github.com/jef/conventional-commits-pr-action/commit/74f23260ae52eecbdd9a449612b6fcd3a953e9f0))

## [1.1.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.0.0...v1.1.0) (2022-03-22)


### Features

* use node16, bump deps ([cc95951](https://github.com/jef/conventional-commits-pr-action/commit/cc959510ec8608ff1d43f15be229d7008f83404e))

## 1.0.0 (2021-02-23)


### Features

* add comment toggle ability ([#2](https://www.github.com/jef/conventional-commits-pr-action/issues/2)) ([b6b3642](https://www.github.com/jef/conventional-commits-pr-action/commit/b6b3642a5bba63f443ee0430ae21f5e2a59d081a))
* initial commit ([cb9c21c](https://www.github.com/jef/conventional-commits-pr-action/commit/cb9c21c8a9d11e311fe4d3c06c502a9c0fea82da))
# Changelog
## [1.2.1](https://github.com/jef/conventional-commits-pr-action/compare/v1.2.0...v1.2.1) (2025-02-12)
### Bug Fixes
* fail missing scope ([#251](https://github.com/jef/conventional-commits-pr-action/issues/251)) ([e187277](https://github.com/jef/conventional-commits-pr-action/commit/e187277687d2af590ac3f692c786ad2d709a44f5))
## [1.2.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.1.1...v1.2.0) (2024-12-12)
### Features
* bump node, deps, add bot_ignore ([ac8b430](https://github.com/jef/conventional-commits-pr-action/commit/ac8b430aae3be29f1a53b5e84eddb190341b7647))
## [1.3.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.2.0...v1.3.0) (2024-12-11)
### Features
* add bots_ignore input ([#231](https://github.com/jef/conventional-commits-pr-action/issues/231)) ([6a6c1c4](https://github.com/jef/conventional-commits-pr-action/commit/6a6c1c4e9d224ea5ee12911040d5983c028fe9a6))
## [1.2.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.1.1...v1.2.0) (2024-12-11)
### Features
* update node, deps, testing ([#229](https://github.com/jef/conventional-commits-pr-action/issues/229)) ([774e6b8](https://github.com/jef/conventional-commits-pr-action/commit/774e6b82d68662745722538184f979fb0dba9561))
### [1.1.1](https://github.com/jef/conventional-commits-pr-action/compare/v1.1.0...v1.1.1) (2022-03-22)
### Bug Fixes
* ci version, rebuild dist ([74f2326](https://github.com/jef/conventional-commits-pr-action/commit/74f23260ae52eecbdd9a449612b6fcd3a953e9f0))
## [1.1.0](https://github.com/jef/conventional-commits-pr-action/compare/v1.0.0...v1.1.0) (2022-03-22)
### Features
* use node16, bump deps ([cc95951](https://github.com/jef/conventional-commits-pr-action/commit/cc959510ec8608ff1d43f15be229d7008f83404e))
## 1.0.0 (2021-02-23)
### Features
* add comment toggle ability ([#2](https://www.github.com/jef/conventional-commits-pr-action/issues/2)) ([b6b3642](https://www.github.com/jef/conventional-commits-pr-action/commit/b6b3642a5bba63f443ee0430ae21f5e2a59d081a))
* initial commit ([cb9c21c](https://www.github.com/jef/conventional-commits-pr-action/commit/cb9c21c8a9d11e311fe4d3c06c502a9c0fea82da))
Loading