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
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["./index.json"]
}
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"version": "2.7.2",
"resolved": "ghcr.io/devcontainers/features/common-utils@sha256:08e5a6ad4b672301c2010944217aeea4f428a87f4349d9bbf8bc97211238674b",
"integrity": "sha256:08e5a6ad4b672301c2010944217aeea4f428a87f4349d9bbf8bc97211238674b"
},
"ghcr.io/devcontainers/features/docker-in-docker:4": {
"version": "4.1.3",
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:fae40f3c8be5a7c3b0db344c1d30341bc2c91ba38d1d5b14cd2ad72e6d65d084",
"integrity": "sha256:fae40f3c8be5a7c3b0db344c1d30341bc2c91ba38d1d5b14cd2ad72e6d65d084"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "1.1.3",
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2",
"integrity": "sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2"
},
"ghcr.io/devcontainers/features/node:2": {
"version": "2.1.2",
"resolved": "ghcr.io/devcontainers/features/node@sha256:20ac718cc67e7999a9d3fbb8387f1a3a5d53ecbd41fe7c075ebadb8e9b431b17",
"integrity": "sha256:20ac718cc67e7999a9d3fbb8387f1a3a5d53ecbd41fe7c075ebadb8e9b431b17"
}
}
}
35 changes: 35 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "hoverkraft-tech/commitlint-config",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/node:2": {
"version": "24"
},
"ghcr.io/devcontainers/features/docker-in-docker:4": {
"moby": false
},
"ghcr.io/devcontainers/features/github-cli:1": {
"extensions": "nektos/gh-act"
}
},
"remoteUser": "vscode",
"postCreateCommand": "make setup",
"remoteEnv": {
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
},
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"github.vscode-github-actions",
"github.copilot",
"github.copilot-chat",
"ms-vscode.makefile-tools",
"biomejs.biome"
]
}
}
}
59 changes: 59 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
version: 2

updates:
- package-ecosystem: devcontainers
directory: "/"
commit-message:
prefix: build
include: scope
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
devcontainers:
patterns:
- "*"

- package-ecosystem: npm
directories:
- "/"
- "/test/consumer"
commit-message:
prefix: build
include: scope
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
npm:
patterns:
- "*"
- package-ecosystem: github-actions
directory: "/"
commit-message:
prefix: build
include: scope
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
github-actions:
patterns:
- "*"

- package-ecosystem: docker
directory: "/"
commit-message:
prefix: build
include: scope
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
docker:
patterns:
- "*"
13 changes: 13 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"threshold": 0,
"reporters": ["consoleFull"],
"ignore": [
"**/.git/**",
"**/node_modules/**",
"**/package-lock.json",
"**/.github/social-preview.svg",
"**/.github/workflows/main-ci.yml",
"**/.github/workflows/pull-request-ci.yml"
],
"absolute": true
}
15 changes: 15 additions & 0 deletions .github/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions .github/social-preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions .github/workflows/__shared-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Common Continuous Integration tasks

on:
workflow_call:
outputs:
package-tarball-artifact-id:
description: The validated npm package tarball artifact
value: ${{ jobs.nodejs.outputs.package-tarball-artifact-id }}

permissions: {}

jobs:
lint:
name: linter
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@fb44045f079aaed5e7efe21138194a32c9b19025 # 4.3.4
permissions:
actions: read
contents: read
issues: write
packages: read
pull-requests: write
security-events: write
statuses: write
with:
comment: false

nodejs:
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1
permissions:
contents: read
id-token: write
packages: read
pull-requests: write
security-events: write
with:
build: ""
lint: ""
code-ql: ""
test: '{"comment":false,"report-group":"nodejs","report-file":"junit.xml"}'
package: '{"test-project":"test/consumer","tests":"npm test"}'

reports:
needs: [lint, nodejs]
if: always()
uses: hoverkraft-tech/ci-github-common/.github/workflows/ci-reports.yml@fb44045f079aaed5e7efe21138194a32c9b19025 # 4.3.4
permissions:
contents: read
pull-requests: write
with:
job-results: ${{ toJSON(needs) }}
24 changes: 24 additions & 0 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Main - Continuous Integration

on:
push:
branches: [main]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
uses: $/.github/workflows/__shared-ci.yml
permissions:
actions: read
contents: read
packages: read
pull-requests: write
id-token: write
issues: write
security-events: write
statuses: write
14 changes: 14 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Prepare release labels

on:
pull_request:
types: [opened, reopened, synchronize, edited]

permissions: {}

jobs:
prepare:
uses: hoverkraft-tech/ci-github-publish/.github/workflows/prepare-release.yml@bf24f894f60a3def62a8750f3964d05acb052c11 # 3.1.2
permissions:
contents: read
pull-requests: write
25 changes: 25 additions & 0 deletions .github/workflows/pull-request-ci.yml
Comment thread
neilime marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pull request - Continuous Integration

on:
pull_request:
branches: [main]
merge_group:

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
uses: $/.github/workflows/__shared-ci.yml
permissions:
actions: read
contents: read
packages: read
pull-requests: write
id-token: write
issues: write
security-events: write
statuses: write
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Release

on:
# checkov:skip=CKV_GHA_7:Force selects a committed release version; it cannot change commands or bypass validation.
workflow_dispatch:
inputs:
force:
description: Release the package even without changes
type: boolean
default: false
schedule:
- cron: "25 8 * * 1"

permissions: {}

concurrency:
group: release-${{ github.repository }}
cancel-in-progress: false

jobs:
prepare:
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/prepare-package-release.yml@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1
permissions:
actions: write
contents: write
pull-requests: read
with:
force: ${{ github.event_name == 'workflow_dispatch' && inputs.force }}
github-app-client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }}
secrets:
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}

validate:
needs: prepare
if: needs.prepare.outputs.status == 'ready'
uses: $/.github/workflows/__shared-ci.yml
permissions:
actions: read
contents: read
packages: read
pull-requests: write
security-events: write
id-token: write
statuses: write
issues: write

release:
needs: [prepare, validate]
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/release.yml@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1
permissions:
actions: read
contents: write
pull-requests: read
id-token: write
with:
packages: ${{ needs.prepare.outputs.packages }}
package-tarball-artifact-id: ${{ needs.validate.outputs.package-tarball-artifact-id }}
secrets:
changelog-summary: ${{ secrets.CHANGELOG_SUMMARY }}
13 changes: 13 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request - Semantic Lint

on:
pull_request:
types: [opened, edited, synchronize]

permissions: {}

jobs:
lint:
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@fb44045f079aaed5e7efe21138194a32c9b19025 # 4.3.4
permissions:
contents: read
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
junit.xml
*.tgz
.cache/
super-linter.log
13 changes: 13 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Agent instructions

Follow the organization-wide guidance in
[hoverkraft-tech/.github/AGENTS.md](https://github.com/hoverkraft-tech/.github/blob/main/AGENTS.md).

This repository publishes `@hoverkraft/commitlint-config`. Keep the policy in
`index.json`; repository configuration and tests consume that source. Do not add
bot bypasses, custom message rewriting, or duplicated rule sets.

Use the [validation guide](docs/development/validation.md) for local checks and the
[release guide](docs/development/releasing.md) for versioning and publication.
GitHub Actions documentation is generated with CI Dokumentor; edit workflow
metadata and regenerate it instead of changing generated output by hand.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:2.0.2@sha256:12dedee667b43856a9cc792628fecc4723fc0868bf8090d268981407a7402b2c

HEALTHCHECK --interval=5m --timeout=10s --start-period=30s --retries=3 CMD ["/bin/sh","-c","test -d /github/home"]
ARG UID=1000
ARG GID=1000
USER ${UID}:${GID}
Loading
Loading