From d2ed379fae7e4decbfe6164b77bdeabc627f5314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Iv=C3=A1n=20God=C3=ADnez=20Mart=C3=ADnez?= Date: Mon, 20 Oct 2025 22:36:49 -0600 Subject: [PATCH] chore: add `.github` folder with initial files --- .github/CODEOWNERS | 1 + .github/COMMIT_CONVENTION.md | 93 ++++++++++++++++++++++++++++++ .github/FUNDING.yml | 1 + .github/ISSUE_TEMPLATE/bug.yml | 21 +++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature.yml | 21 +++++++ .github/PULL_REQUEST_TEMPLATE.md | 20 +++++++ .github/workflows/coverage.yml | 28 +++++++++ 8 files changed, 186 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/COMMIT_CONVENTION.md create mode 100644 .github/FUNDING.yml create mode 100644 .github/ISSUE_TEMPLATE/bug.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/coverage.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..8ddc789 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @BlessInSoftware/ZeroDay diff --git a/.github/COMMIT_CONVENTION.md b/.github/COMMIT_CONVENTION.md new file mode 100644 index 0000000..0860fa9 --- /dev/null +++ b/.github/COMMIT_CONVENTION.md @@ -0,0 +1,93 @@ +# Git conventional commit messages + +> Note +> This is adapted from [Discord.js commit convention](https://github.com/discordjs/discord.js/blob/main/.github/COMMIT_CONVENTION.md) and [Conventional commits](https://www.conventionalcommits.org). + +## TL;DR + +Messages must be matched by the following regex: + +```js +/^(revert: )?(feat(\(.+\))?:|fix(\(.+\))?:|docs(\(.+\))?:|style(\(.+\))?:|refactor(\(.+\))?:|perf(\(.+\))?:|test(\(.+\))?:|build(\(.+\))?:|ci(\(.+\))?:|chore(\(.+\))?:) .{1,72}/; +``` + +### Examples + +Appears under "features" header, `scope` subheader: + +```text +feat(scope): add 'tag' method +``` + +Appears under "fixes" header, `scope` subheader, with a link to issue #1: + +```text +fix(scope): handle events correctly + +close #1 +``` + +Appears under "performance" header, and under "Breaking Changes" with the breaking change explanation: + +```text +perf(core)!: improve patching by removing 'bar' option + +BREAKING CHANGE: The 'bar' option has been removed. +``` + +The following commit and commit `410fbbc` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. + +```text +revert: feat(Managers): add Managers + +This reverts commit 410fbbc5c4d0072b9bb97a466f56b07c90b926be. +``` + +### Full Message Format + +A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: + +```text +(): + + + +