@seangalie/precast 0.0.0-stage โ 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/LICENSE +202 -0
- package/README.md +274 -2
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +3 -0
- package/dist/cli.d.ts +7 -0
- package/dist/cli.js +251 -0
- package/dist/collect.d.ts +17 -0
- package/dist/collect.js +143 -0
- package/dist/context.d.ts +38 -0
- package/dist/context.js +206 -0
- package/dist/errors.d.ts +8 -0
- package/dist/errors.js +8 -0
- package/dist/fnmatch.d.ts +9 -0
- package/dist/fnmatch.js +110 -0
- package/dist/generate.d.ts +23 -0
- package/dist/generate.js +76 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/output-path.d.ts +30 -0
- package/dist/output-path.js +84 -0
- package/dist/platforms.d.ts +22 -0
- package/dist/platforms.js +81 -0
- package/dist/profiles.d.ts +23 -0
- package/dist/profiles.js +79 -0
- package/dist/prompts.d.ts +30 -0
- package/dist/prompts.js +103 -0
- package/dist/style.d.ts +14 -0
- package/dist/style.js +34 -0
- package/dist/tiers.d.ts +23 -0
- package/dist/tiers.js +96 -0
- package/package.json +44 -4
- package/platforms/forgejo/files/.forgejo/CODEOWNERS.tmpl +2 -0
- package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/01_bug_report.yml.tmpl +83 -0
- package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/02_feature_request.yml.tmpl +57 -0
- package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/03_codebase_improvement.yml.tmpl +44 -0
- package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/04_support_question.yml.tmpl +47 -0
- package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/config.yml.tmpl +13 -0
- package/platforms/forgejo/files/.forgejo/PULL_REQUEST_TEMPLATE.md.tmpl +49 -0
- package/platforms/forgejo/files/.forgejo/SETUP.md.tmpl +65 -0
- package/platforms/forgejo/files/.forgejo/labels.yml.tmpl +99 -0
- package/platforms/forgejo/files/.forgejo/scripts/check-labels.sh.tmpl +91 -0
- package/platforms/forgejo/files/.forgejo/scripts/sync-labels.sh.tmpl +165 -0
- package/platforms/forgejo/files/.forgejo/workflows/labels.yml.tmpl +45 -0
- package/platforms/forgejo/files/.forgejo/workflows/lint.yml.tmpl +78 -0
- package/platforms/forgejo/files/.forgejo/workflows/pr-labels.yml.tmpl +51 -0
- package/platforms/forgejo/files/.forgejo/workflows/pre-commit.yml.tmpl +24 -0
- package/platforms/forgejo/files/.forgejo/workflows/release.yml.tmpl +130 -0
- package/platforms/forgejo/files/.forgejo/workflows/renovate.yml.tmpl +61 -0
- package/platforms/forgejo/files/.forgejo/workflows/stale.yml.tmpl +260 -0
- package/platforms/forgejo/files/renovate.json +36 -0
- package/platforms/forgejo/platform.json +41 -0
- package/platforms/github/files/.github/CODEOWNERS.tmpl +2 -0
- package/platforms/github/files/.github/ISSUE_TEMPLATE/01_bug_report.yml.tmpl +83 -0
- package/platforms/github/files/.github/ISSUE_TEMPLATE/02_feature_request.yml.tmpl +57 -0
- package/platforms/github/files/.github/ISSUE_TEMPLATE/03_codebase_improvement.yml.tmpl +44 -0
- package/platforms/github/files/.github/ISSUE_TEMPLATE/04_support_question.yml.tmpl +47 -0
- package/platforms/github/files/.github/ISSUE_TEMPLATE/config.yml.tmpl +16 -0
- package/platforms/github/files/.github/PULL_REQUEST_TEMPLATE.md.tmpl +49 -0
- package/platforms/github/files/.github/SETUP.md.tmpl +46 -0
- package/platforms/github/files/.github/dependabot.yml.tmpl +75 -0
- package/platforms/github/files/.github/labels.yml.tmpl +103 -0
- package/platforms/github/files/.github/release.yml.tmpl +47 -0
- package/platforms/github/files/.github/workflows/ci.yml.tmpl +55 -0
- package/platforms/github/files/.github/workflows/codeql.yml.tmpl +63 -0
- package/platforms/github/files/.github/workflows/labels.yml.tmpl +34 -0
- package/platforms/github/files/.github/workflows/lint-workflows.yml.tmpl +75 -0
- package/platforms/github/files/.github/workflows/lint.yml.tmpl +69 -0
- package/platforms/github/files/.github/workflows/lock.yml.tmpl +46 -0
- package/platforms/github/files/.github/workflows/pr-labels.yml.tmpl +26 -0
- package/platforms/github/files/.github/workflows/pre-commit.yml.tmpl +25 -0
- package/platforms/github/files/.github/workflows/release.yml.tmpl +101 -0
- package/platforms/github/files/.github/workflows/stale.yml.tmpl +57 -0
- package/platforms/github/platform.json +44 -0
- package/platforms/gitlab/files/.gitlab/CODEOWNERS.tmpl +2 -0
- package/platforms/gitlab/files/.gitlab/SETUP.md.tmpl +65 -0
- package/platforms/gitlab/files/.gitlab/issue_templates/01_bug_report.md +18 -0
- package/platforms/gitlab/files/.gitlab/issue_templates/02_feature_request.md +11 -0
- package/platforms/gitlab/files/.gitlab/issue_templates/03_codebase_improvement.md +11 -0
- package/platforms/gitlab/files/.gitlab/issue_templates/04_support_question.md +12 -0
- package/platforms/gitlab/files/.gitlab/labels.json +122 -0
- package/platforms/gitlab/files/.gitlab/merge_request_templates/Default.md +14 -0
- package/platforms/gitlab/files/.gitlab/scripts/project.py +159 -0
- package/platforms/gitlab/files/.gitlab-ci.yml.tmpl +56 -0
- package/platforms/gitlab/platform.json +38 -0
- package/template/.editorconfig.tmpl +54 -0
- package/template/.gitattributes +107 -0
- package/template/.gitignore.tmpl +244 -0
- package/template/.pre-commit-config.yaml.tmpl +55 -0
- package/template/.repo/check-secrets.py +40 -0
- package/template/.repo/ci-checks.sh +20 -0
- package/template/AGENTS.md.tmpl +78 -0
- package/template/CHANGELOG.md.tmpl +24 -0
- package/template/CLAUDE.md +1 -0
- package/template/LICENSE +202 -0
- package/template/README.md.tmpl +101 -0
- package/template/SETUP.md.tmpl +56 -0
- package/template/docs/CODE_OF_CONDUCT.md +85 -0
- package/template/docs/CONTRIBUTING.md.tmpl +59 -0
- package/template/docs/SECURITY.md.tmpl +26 -0
- package/template/docs/SUPPORT.md.tmpl +19 -0
- package/template/docs/logo.svg +84 -0
- package/template/docs/screenshot.png +0 -0
- package/tiers.json +10 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ๐ Codebase Improvement
|
|
3
|
+
description: Suggest a better algorithm, structure, tool, or developer workflow
|
|
4
|
+
title: "dev: "
|
|
5
|
+
labels: ["enhancement", "refactor"]
|
|
6
|
+
body:
|
|
7
|
+
- type: markdown
|
|
8
|
+
attributes:
|
|
9
|
+
value: |
|
|
10
|
+
Use this for changes that improve the codebase without changing what
|
|
11
|
+
@@PROJECT_NAME@@ does for its users -- refactors, tooling, build times,
|
|
12
|
+
test coverage, developer ergonomics.
|
|
13
|
+
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: area
|
|
16
|
+
attributes:
|
|
17
|
+
label: What part of the codebase?
|
|
18
|
+
description: Files, modules, or workflows this concerns. Links to lines are welcome.
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: current
|
|
24
|
+
attributes:
|
|
25
|
+
label: What is the current approach?
|
|
26
|
+
description: Describe how it works today and what makes it worth changing.
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
|
|
30
|
+
- type: textarea
|
|
31
|
+
id: proposal
|
|
32
|
+
attributes:
|
|
33
|
+
label: What would you change it to?
|
|
34
|
+
description: The improvement you have in mind, and the benefit it brings.
|
|
35
|
+
validations:
|
|
36
|
+
required: true
|
|
37
|
+
|
|
38
|
+
- type: textarea
|
|
39
|
+
id: tradeoffs
|
|
40
|
+
attributes:
|
|
41
|
+
label: Trade-offs and risks
|
|
42
|
+
description: What would this cost, break, or make harder?
|
|
43
|
+
validations:
|
|
44
|
+
required: false
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: โ Support Question
|
|
3
|
+
description: Ask how to use this project
|
|
4
|
+
title: "support: "
|
|
5
|
+
labels: ["question"]
|
|
6
|
+
body:
|
|
7
|
+
- type: markdown
|
|
8
|
+
attributes:
|
|
9
|
+
value: |
|
|
10
|
+
Open-ended conversation is usually a better fit for Discussions. Use this
|
|
11
|
+
form when you have a specific question about using @@PROJECT_NAME@@.
|
|
12
|
+
|
|
13
|
+
- type: checkboxes
|
|
14
|
+
id: preflight
|
|
15
|
+
attributes:
|
|
16
|
+
label: Before you start
|
|
17
|
+
options:
|
|
18
|
+
- label: I read the README and the documentation.
|
|
19
|
+
required: true
|
|
20
|
+
- label: I searched the existing issues and discussions.
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
id: question
|
|
25
|
+
attributes:
|
|
26
|
+
label: What are you trying to do?
|
|
27
|
+
description: Describe your goal, not only the step you are stuck on.
|
|
28
|
+
validations:
|
|
29
|
+
required: true
|
|
30
|
+
|
|
31
|
+
- type: textarea
|
|
32
|
+
id: tried
|
|
33
|
+
attributes:
|
|
34
|
+
label: What have you tried so far?
|
|
35
|
+
description: Commands, configuration, or code you have already attempted.
|
|
36
|
+
render: shell
|
|
37
|
+
validations:
|
|
38
|
+
required: false
|
|
39
|
+
|
|
40
|
+
- type: input
|
|
41
|
+
id: version
|
|
42
|
+
attributes:
|
|
43
|
+
label: Version
|
|
44
|
+
description: The release tag or commit SHA you are running.
|
|
45
|
+
placeholder: "v1.2.3, or 0a1b2c3"
|
|
46
|
+
validations:
|
|
47
|
+
required: false
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
blank_issues_enabled: false
|
|
3
|
+
|
|
4
|
+
contact_links:
|
|
5
|
+
- name: ๐ฌ Question, idea, or general discussion
|
|
6
|
+
url: @@REPO_URL@@/discussions
|
|
7
|
+
about: Start a discussion for anything that is not a specific, actionable issue.
|
|
8
|
+
- name: ๐ Report a security vulnerability
|
|
9
|
+
url: @@REPO_URL@@/security/advisories/new
|
|
10
|
+
about: Please report vulnerabilities privately. Never open a public issue for one.
|
|
11
|
+
- name: ๐ Contributing guide
|
|
12
|
+
url: @@REPO_URL@@/blob/@@BRANCH_URL@@/docs/CONTRIBUTING.md
|
|
13
|
+
about: How to set up a development environment and open a pull request.
|
|
14
|
+
- name: ๐งญ Support guide
|
|
15
|
+
url: @@REPO_URL@@/blob/@@BRANCH_URL@@/docs/SUPPORT.md
|
|
16
|
+
about: Where to ask what, and what to expect.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!--- Please provide a general summary of your changes in the title above -->
|
|
2
|
+
|
|
3
|
+
## Pull Request type
|
|
4
|
+
|
|
5
|
+
<!-- Please try to limit your pull request to one type; submit multiple pull requests if needed. -->
|
|
6
|
+
|
|
7
|
+
Please check the type of change your PR introduces:
|
|
8
|
+
|
|
9
|
+
- [ ] Bugfix
|
|
10
|
+
- [ ] Feature
|
|
11
|
+
- [ ] Code style update (formatting, renaming)
|
|
12
|
+
- [ ] Refactoring (no functional changes, no API changes)
|
|
13
|
+
- [ ] Build-related changes
|
|
14
|
+
- [ ] Documentation content changes
|
|
15
|
+
- [ ] Other (please describe):
|
|
16
|
+
|
|
17
|
+
## What is the current behavior?
|
|
18
|
+
|
|
19
|
+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
|
|
20
|
+
|
|
21
|
+
Issue Number: N/A
|
|
22
|
+
|
|
23
|
+
## What is the new behavior?
|
|
24
|
+
|
|
25
|
+
<!-- Please describe the behavior or changes that are being added by this PR. -->
|
|
26
|
+
|
|
27
|
+
-
|
|
28
|
+
-
|
|
29
|
+
-
|
|
30
|
+
|
|
31
|
+
## Does this introduce a breaking change?
|
|
32
|
+
|
|
33
|
+
- [ ] Yes
|
|
34
|
+
- [ ] No
|
|
35
|
+
|
|
36
|
+
<!-- If this does introduce a breaking change, please describe the impact and migration path for existing applications below. -->
|
|
37
|
+
|
|
38
|
+
## Other information
|
|
39
|
+
|
|
40
|
+
<!-- Any other information that is important to this PR, such as screenshots of how the component looks before and after the change. -->
|
|
41
|
+
|
|
42
|
+
## Checklist
|
|
43
|
+
|
|
44
|
+
@@TIERS full@@
|
|
45
|
+
- [ ] This PR has at least one of the labels the `PR Labels` check requires (`breaking-change`, `bugfix`, `documentation`, `enhancement`, `refactor`, `performance`, `new-feature`, `maintenance`, `ci`, `dependencies`).
|
|
46
|
+
@@END_TIERS@@
|
|
47
|
+
- [ ] User-visible changes are recorded under `## [Unreleased]` in [CHANGELOG.md](@@REPO_URL@@/blob/@@BRANCH_URL@@/CHANGELOG.md).
|
|
48
|
+
- [ ] Commit messages follow [conventional commits](https://www.conventionalcommits.org).
|
|
49
|
+
- [ ] Documentation has been updated where it was affected.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# GitHub setup
|
|
2
|
+
|
|
3
|
+
Use this alongside the shared `SETUP.md` checklist.
|
|
4
|
+
|
|
5
|
+
@@TIERS slim@@
|
|
6
|
+
- [ ] Enable private vulnerability reporting, or give a private contact in `README.md`.
|
|
7
|
+
- [ ] Configure branch protections or rulesets if the project needs them.
|
|
8
|
+
|
|
9
|
+
Generate with `--tier regular` or `--tier full` for issue templates, CI, and automation.
|
|
10
|
+
@@END_TIERS@@
|
|
11
|
+
@@TIERS regular full@@
|
|
12
|
+
- [ ] Enable Discussions; the issue chooser and support-question form link there.
|
|
13
|
+
- [ ] Enable private vulnerability reporting or set a private contact in `docs/SECURITY.md`.
|
|
14
|
+
@@END_TIERS@@
|
|
15
|
+
@@TIERS full@@
|
|
16
|
+
- [ ] Run **Actions โ Sync labels โ Run workflow** once after the first push.
|
|
17
|
+
It uses `.github/labels.yml`; PR Labels needs at least one accepted label on each PR.
|
|
18
|
+
@@END_TIERS@@
|
|
19
|
+
@@TIERS regular full@@
|
|
20
|
+
- [ ] Review `.github/CODEOWNERS`. An organization must assign a visible team
|
|
21
|
+
with write access rather than the organization account itself.
|
|
22
|
+
- [ ] Replace the placeholder in `.github/workflows/ci.yml` with real project
|
|
23
|
+
build and test commands before requiring that check for merges.
|
|
24
|
+
- [ ] Configure branch protections or rulesets after confirming the real checks run.
|
|
25
|
+
@@END_TIERS@@
|
|
26
|
+
@@TIERS full@@
|
|
27
|
+
- [ ] Configure `.github/dependabot.yml` for the project's dependency ecosystems.
|
|
28
|
+
- [ ] Decide on code scanning. Prefer GitHub's default CodeQL setup if it suits
|
|
29
|
+
the project, and remove the manual CodeQL starter if enabling that setup.
|
|
30
|
+
Otherwise, configure `.github/workflows/codeql.yml` for the project's languages
|
|
31
|
+
and enable the automatic triggers. Availability depends on repository visibility
|
|
32
|
+
and the account's security product entitlement.
|
|
33
|
+
@@END_TIERS@@
|
|
34
|
+
@@TIERS regular full@@
|
|
35
|
+
- [ ] Extend `.github/workflows/lint.yml` with the project's own linters.
|
|
36
|
+
@@END_TIERS@@
|
|
37
|
+
@@TIERS full@@
|
|
38
|
+
- [ ] Review the Stale and Lock workflows. Eligible items become stale after 60
|
|
39
|
+
quiet days and close 14 days later. Lock closes discussion on inactive closed
|
|
40
|
+
threads according to `.github/workflows/lock.yml`; review that policy before relying on it.
|
|
41
|
+
- [ ] Prepare a matching changelog section before pushing a `vX.Y.Z` tag. The
|
|
42
|
+
release workflow publishes notes, not build artifacts. `.github/release.yml`
|
|
43
|
+
applies only to release notes generated through the GitHub UI.
|
|
44
|
+
@@END_TIERS@@
|
|
45
|
+
|
|
46
|
+
Generation did not apply labels, enable features, or change repository settings.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Dependabot keeps the pinned versions in this repository current. The
|
|
3
|
+
# github-actions ecosystem is enabled by default because every template ships
|
|
4
|
+
# with workflows; uncomment the ecosystem below that matches your project.
|
|
5
|
+
#
|
|
6
|
+
# Reference: https://docs.github.com/code-security/dependabot/working-with-dependabot/dependabot-options-reference
|
|
7
|
+
|
|
8
|
+
version: 2
|
|
9
|
+
|
|
10
|
+
updates:
|
|
11
|
+
# Keep the actions used by .github/workflows up to date.
|
|
12
|
+
- package-ecosystem: "github-actions"
|
|
13
|
+
directory: "/"
|
|
14
|
+
schedule:
|
|
15
|
+
interval: "weekly"
|
|
16
|
+
day: "monday"
|
|
17
|
+
time: "06:00"
|
|
18
|
+
open-pull-requests-limit: 5
|
|
19
|
+
# Wait a week before proposing a new release, so a compromised or broken
|
|
20
|
+
# version has time to be caught and yanked upstream first.
|
|
21
|
+
cooldown:
|
|
22
|
+
default-days: 7
|
|
23
|
+
labels:
|
|
24
|
+
- "dependencies"
|
|
25
|
+
- "ci"
|
|
26
|
+
commit-message:
|
|
27
|
+
prefix: "ci"
|
|
28
|
+
groups:
|
|
29
|
+
# One PR per week for all action bumps instead of one PR per action.
|
|
30
|
+
github-actions:
|
|
31
|
+
patterns:
|
|
32
|
+
- "*"
|
|
33
|
+
|
|
34
|
+
# ---------------------------------------------------------------------------
|
|
35
|
+
# Uncomment and adjust the ecosystem that matches this project. The directory
|
|
36
|
+
# is where the manifest lives (package.json, requirements.txt, go.mod, ...).
|
|
37
|
+
# ---------------------------------------------------------------------------
|
|
38
|
+
|
|
39
|
+
# - package-ecosystem: "npm"
|
|
40
|
+
# directory: "/"
|
|
41
|
+
# schedule:
|
|
42
|
+
# interval: "weekly"
|
|
43
|
+
# open-pull-requests-limit: 10
|
|
44
|
+
# labels:
|
|
45
|
+
# - "dependencies"
|
|
46
|
+
# commit-message:
|
|
47
|
+
# prefix: "fix"
|
|
48
|
+
# prefix-development: "chore"
|
|
49
|
+
# groups:
|
|
50
|
+
# production-minor-patch:
|
|
51
|
+
# dependency-type: "production"
|
|
52
|
+
# update-types: ["minor", "patch"]
|
|
53
|
+
# development:
|
|
54
|
+
# dependency-type: "development"
|
|
55
|
+
|
|
56
|
+
# - package-ecosystem: "pip"
|
|
57
|
+
# directory: "/"
|
|
58
|
+
# schedule:
|
|
59
|
+
# interval: "weekly"
|
|
60
|
+
# labels:
|
|
61
|
+
# - "dependencies"
|
|
62
|
+
|
|
63
|
+
# - package-ecosystem: "gomod"
|
|
64
|
+
# directory: "/"
|
|
65
|
+
# schedule:
|
|
66
|
+
# interval: "weekly"
|
|
67
|
+
# labels:
|
|
68
|
+
# - "dependencies"
|
|
69
|
+
|
|
70
|
+
# - package-ecosystem: "docker"
|
|
71
|
+
# directory: "/"
|
|
72
|
+
# schedule:
|
|
73
|
+
# interval: "weekly"
|
|
74
|
+
# labels:
|
|
75
|
+
# - "dependencies"
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Applied by the Sync labels workflow (.github/workflows/labels.yml), which runs
|
|
3
|
+
# when this file changes on the default branch and can also be run manually.
|
|
4
|
+
# Run Sync labels once after the first push. Existing labels are updated in
|
|
5
|
+
# place; labels missing from this file are left alone.
|
|
6
|
+
#
|
|
7
|
+
# Issues and pull requests use different labels for the same kind of work: an
|
|
8
|
+
# issue reports a `bug` or asks for an `enhancement`; the pull request that
|
|
9
|
+
# answers it is a `bugfix` or a `new-feature`. The pull-request labels are the
|
|
10
|
+
# ones the PR Labels check accepts. That list is repeated in
|
|
11
|
+
# .github/workflows/pr-labels.yml, AGENTS.md, docs/CONTRIBUTING.md, and
|
|
12
|
+
# .github/PULL_REQUEST_TEMPLATE.md; the master tests check label consistency.
|
|
13
|
+
|
|
14
|
+
# Kind of change. Every pull request needs at least one of these.
|
|
15
|
+
- name: "breaking-change"
|
|
16
|
+
color: ee0701
|
|
17
|
+
description: "A change that changes the API or breaks backward compatibility for users."
|
|
18
|
+
- name: "bugfix"
|
|
19
|
+
color: ee0701
|
|
20
|
+
description: "A change that resolves a defect for users or implementors."
|
|
21
|
+
- name: "documentation"
|
|
22
|
+
color: 0052cc
|
|
23
|
+
description: "Solely about the documentation of the project."
|
|
24
|
+
- name: "enhancement"
|
|
25
|
+
color: 1d76db
|
|
26
|
+
description: "A request or change that improves the project, including new features."
|
|
27
|
+
- name: "refactor"
|
|
28
|
+
color: 1d76db
|
|
29
|
+
description: "Simpler, clearer, or more efficient code, with no change in behavior."
|
|
30
|
+
- name: "performance"
|
|
31
|
+
color: 1d76db
|
|
32
|
+
description: "Improving performance of the project, not introducing new features."
|
|
33
|
+
- name: "new-feature"
|
|
34
|
+
color: 0e8a16
|
|
35
|
+
description: "New features or options."
|
|
36
|
+
- name: "maintenance"
|
|
37
|
+
color: 2af79e
|
|
38
|
+
description: "Generic maintenance tasks."
|
|
39
|
+
- name: "ci"
|
|
40
|
+
color: 1d76db
|
|
41
|
+
description: "Work that improves the continuous integration."
|
|
42
|
+
- name: "dependencies"
|
|
43
|
+
color: 1d76db
|
|
44
|
+
description: "Change in project dependencies."
|
|
45
|
+
|
|
46
|
+
# Kind of issue.
|
|
47
|
+
- name: "bug"
|
|
48
|
+
color: d73a4a
|
|
49
|
+
description: "A reported defect: something is not working as intended."
|
|
50
|
+
- name: "security"
|
|
51
|
+
color: ee0701
|
|
52
|
+
description: "Addressing a vulnerability or security risk in this project."
|
|
53
|
+
- name: "question"
|
|
54
|
+
color: d876e3
|
|
55
|
+
description: "A request for support or further information about this project."
|
|
56
|
+
|
|
57
|
+
# Workflow state. The Stale workflow applies `stale`, and skips anything
|
|
58
|
+
# carrying `no-stale` or `in-progress`.
|
|
59
|
+
- name: "in-progress"
|
|
60
|
+
color: fbca04
|
|
61
|
+
description: "Issue is currently being worked on by a developer."
|
|
62
|
+
- name: "stale"
|
|
63
|
+
color: fef2c0
|
|
64
|
+
description: "No activity for quite some time."
|
|
65
|
+
- name: "no-stale"
|
|
66
|
+
color: fef2c0
|
|
67
|
+
description: "This is exempt from the stale bot."
|
|
68
|
+
|
|
69
|
+
# Triage.
|
|
70
|
+
- name: "incomplete"
|
|
71
|
+
color: fef2c0
|
|
72
|
+
description: "Missing information."
|
|
73
|
+
- name: "invalid"
|
|
74
|
+
color: fef2c0
|
|
75
|
+
description: "This is off-topic, spam, or otherwise doesn't apply to this project."
|
|
76
|
+
|
|
77
|
+
# These two match GitHub's default label names, which the repository's
|
|
78
|
+
# /contribute page and good-first-issue aggregators look for. The aliases are
|
|
79
|
+
# their names in earlier versions of this template: a sync renames an old label
|
|
80
|
+
# in place, or, if the new one already exists, moves its issues and PRs across
|
|
81
|
+
# and deletes the old one.
|
|
82
|
+
- name: "good first issue"
|
|
83
|
+
color: 0e8a16
|
|
84
|
+
description: "Good first issue for people wanting to contribute to this project."
|
|
85
|
+
aliases: ["beginner-friendly"]
|
|
86
|
+
- name: "help wanted"
|
|
87
|
+
color: 0e8a16
|
|
88
|
+
description: "We need some extra helping hands or expertise in order to resolve this!"
|
|
89
|
+
aliases: ["help-wanted"]
|
|
90
|
+
|
|
91
|
+
# Priority. The Stale workflow never closes an issue carrying one of these.
|
|
92
|
+
- name: "priority-critical"
|
|
93
|
+
color: ee0701
|
|
94
|
+
description: "Must be addressed as soon as possible."
|
|
95
|
+
- name: "priority-high"
|
|
96
|
+
color: b60205
|
|
97
|
+
description: "After critical issues are fixed, these should be dealt with before any further issues."
|
|
98
|
+
- name: "priority-medium"
|
|
99
|
+
color: 0e8a16
|
|
100
|
+
description: "This issue may be useful, and needs some attention."
|
|
101
|
+
- name: "priority-low"
|
|
102
|
+
color: e4ea8a
|
|
103
|
+
description: "Nice addition, maybe... someday..."
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Groups GitHub's automatically generated release notes by label. Each pull
|
|
3
|
+
# request lands in the first category whose labels it matches, so the order
|
|
4
|
+
# below is the order of precedence. The labels come from .github/labels.yml.
|
|
5
|
+
#
|
|
6
|
+
# The Release workflow (.github/workflows/release.yml) publishes tagged
|
|
7
|
+
# releases with their CHANGELOG.md section instead, so these categories apply
|
|
8
|
+
# only when notes are generated from the GitHub UI or with --generate-notes.
|
|
9
|
+
#
|
|
10
|
+
# Reference: https://docs.github.com/repositories/releasing-projects-on-github/automatically-generated-release-notes
|
|
11
|
+
|
|
12
|
+
changelog:
|
|
13
|
+
exclude:
|
|
14
|
+
labels:
|
|
15
|
+
- "invalid"
|
|
16
|
+
categories:
|
|
17
|
+
- title: ๐ฅ Breaking changes
|
|
18
|
+
labels:
|
|
19
|
+
- "breaking-change"
|
|
20
|
+
- title: ๐ Security
|
|
21
|
+
labels:
|
|
22
|
+
- "security"
|
|
23
|
+
- title: โจ New features and enhancements
|
|
24
|
+
labels:
|
|
25
|
+
- "new-feature"
|
|
26
|
+
- "enhancement"
|
|
27
|
+
- title: ๐ Bug fixes
|
|
28
|
+
labels:
|
|
29
|
+
- "bugfix"
|
|
30
|
+
- "bug"
|
|
31
|
+
- title: โก Performance
|
|
32
|
+
labels:
|
|
33
|
+
- "performance"
|
|
34
|
+
- title: ๐ Documentation
|
|
35
|
+
labels:
|
|
36
|
+
- "documentation"
|
|
37
|
+
- title: โฌ๏ธ Dependencies
|
|
38
|
+
labels:
|
|
39
|
+
- "dependencies"
|
|
40
|
+
- title: ๐งฐ Maintenance
|
|
41
|
+
labels:
|
|
42
|
+
- "refactor"
|
|
43
|
+
- "maintenance"
|
|
44
|
+
- "ci"
|
|
45
|
+
- title: Other changes
|
|
46
|
+
labels:
|
|
47
|
+
- "*"
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
# A starting point for this project's build and test pipeline. It passes as-is
|
|
3
|
+
# so that a new repository does not begin with a failing check; replace the
|
|
4
|
+
# placeholder step with real setup, build, and test steps.
|
|
5
|
+
#
|
|
6
|
+
# Once it does real work, make "๐งช Build and test" a required status check in
|
|
7
|
+
# the default branch's protection rule or ruleset.
|
|
8
|
+
#
|
|
9
|
+
# Pin every third-party action to a full commit SHA with the version in a
|
|
10
|
+
@@TIERS regular@@
|
|
11
|
+
# trailing comment, as the other workflows here do.
|
|
12
|
+
@@END_TIERS@@
|
|
13
|
+
@@TIERS full@@
|
|
14
|
+
# trailing comment, as the other workflows here do; Dependabot keeps them
|
|
15
|
+
# current.
|
|
16
|
+
@@END_TIERS@@
|
|
17
|
+
|
|
18
|
+
name: CI
|
|
19
|
+
|
|
20
|
+
on:
|
|
21
|
+
push:
|
|
22
|
+
branches:
|
|
23
|
+
- @@DEFAULT_BRANCH_YAML@@
|
|
24
|
+
pull_request:
|
|
25
|
+
workflow_dispatch:
|
|
26
|
+
|
|
27
|
+
permissions:
|
|
28
|
+
contents: read
|
|
29
|
+
|
|
30
|
+
# A newer push to a pull request supersedes its running build. Builds of main
|
|
31
|
+
# are never cancelled, so every commit there keeps a result.
|
|
32
|
+
concurrency:
|
|
33
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
34
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
35
|
+
|
|
36
|
+
jobs:
|
|
37
|
+
build:
|
|
38
|
+
name: ๐งช Build and test
|
|
39
|
+
runs-on: @@RUNNER_YAML@@
|
|
40
|
+
timeout-minutes: 15
|
|
41
|
+
steps:
|
|
42
|
+
- name: โคต๏ธ Check out code from GitHub
|
|
43
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
44
|
+
with:
|
|
45
|
+
persist-credentials: false
|
|
46
|
+
|
|
47
|
+
# Replace this with the steps your project needs, for example:
|
|
48
|
+
# - uses: actions/setup-node@<commit-sha> # vX.Y.Z
|
|
49
|
+
# with:
|
|
50
|
+
# node-version-file: .nvmrc
|
|
51
|
+
# cache: npm
|
|
52
|
+
# - run: npm ci
|
|
53
|
+
# - run: npm test
|
|
54
|
+
- name: ๐ง Placeholder
|
|
55
|
+
run: echo "::notice::No build or test steps are configured yet. Add them to .github/workflows/ci.yml."
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
# CodeQL needs at least one supported language and may require GitHub Code
|
|
3
|
+
# Security for private repositories. It is manual-only in the template so a new,
|
|
4
|
+
# empty repository does not begin with a failing workflow.
|
|
5
|
+
#
|
|
6
|
+
# GitHub now recommends the UI-based "default setup" (Settings -> Code security
|
|
7
|
+
# -> Code scanning) for most repositories: it picks the languages, keeps the
|
|
8
|
+
# queries current, and needs no workflow file at all. Prefer it unless you need
|
|
9
|
+
# a custom build, custom query packs, or a non-standard matrix -- and if you do
|
|
10
|
+
# enable it, delete this workflow rather than running both.
|
|
11
|
+
#
|
|
12
|
+
# To keep this advanced setup instead: after code has landed, configure the
|
|
13
|
+
# matrix below for the languages and build modes your project uses, then
|
|
14
|
+
# uncomment the automatic triggers. Languages are auto-detected when the matrix
|
|
15
|
+
# remains commented. For example:
|
|
16
|
+
# language: [javascript-typescript, python]
|
|
17
|
+
# See https://docs.github.com/code-security/code-scanning for the current list.
|
|
18
|
+
|
|
19
|
+
name: CodeQL
|
|
20
|
+
|
|
21
|
+
on:
|
|
22
|
+
workflow_dispatch:
|
|
23
|
+
# Enable these triggers after configuring CodeQL for the generated project.
|
|
24
|
+
# push:
|
|
25
|
+
# branches:
|
|
26
|
+
# - main
|
|
27
|
+
# pull_request:
|
|
28
|
+
# branches:
|
|
29
|
+
# - main
|
|
30
|
+
# schedule:
|
|
31
|
+
# - cron: "30 1 * * 0"
|
|
32
|
+
|
|
33
|
+
permissions:
|
|
34
|
+
contents: read
|
|
35
|
+
|
|
36
|
+
jobs:
|
|
37
|
+
codeql:
|
|
38
|
+
name: ๐ญ Scanning
|
|
39
|
+
runs-on: @@RUNNER_YAML@@
|
|
40
|
+
permissions:
|
|
41
|
+
actions: read
|
|
42
|
+
contents: read
|
|
43
|
+
security-events: write
|
|
44
|
+
# strategy:
|
|
45
|
+
# fail-fast: false
|
|
46
|
+
# matrix:
|
|
47
|
+
# language: [javascript-typescript]
|
|
48
|
+
steps:
|
|
49
|
+
- name: โคต๏ธ Check out code from GitHub
|
|
50
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
51
|
+
with:
|
|
52
|
+
persist-credentials: false
|
|
53
|
+
- name: ๐ Initialize CodeQL
|
|
54
|
+
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
|
|
55
|
+
# with:
|
|
56
|
+
# languages: ${{ matrix.language }}
|
|
57
|
+
- name: ๐ Autobuild
|
|
58
|
+
uses: github/codeql-action/autobuild@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
|
|
59
|
+
- name: ๐ Perform CodeQL Analysis
|
|
60
|
+
# When using the matrix above, also set:
|
|
61
|
+
# with:
|
|
62
|
+
# category: "/language:${{ matrix.language }}"
|
|
63
|
+
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Sync labels
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- @@DEFAULT_BRANCH_YAML@@
|
|
8
|
+
paths:
|
|
9
|
+
- .github/labels.yml
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
labels:
|
|
17
|
+
name: โป๏ธ Sync labels
|
|
18
|
+
runs-on: @@RUNNER_YAML@@
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
issues: write
|
|
22
|
+
steps:
|
|
23
|
+
- name: โคต๏ธ Check out code from GitHub
|
|
24
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
25
|
+
with:
|
|
26
|
+
persist-credentials: false
|
|
27
|
+
- name: ๐ Run Label Syncer
|
|
28
|
+
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
|
|
29
|
+
with:
|
|
30
|
+
config-file: .github/labels.yml
|
|
31
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
# Set to true to remove any label that is not defined in labels.yml.
|
|
33
|
+
# Left off by default so GitHub's stock labels survive the first sync.
|
|
34
|
+
delete-other-labels: false
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Checks the GitHub Actions configuration itself: actionlint catches syntax,
|
|
3
|
+
# expression, and type errors (and runs shellcheck over every `run:` script),
|
|
4
|
+
# and zizmor catches security problems such as template injection, overly
|
|
5
|
+
# broad permissions, and unpinned actions.
|
|
6
|
+
|
|
7
|
+
name: Lint workflows
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
branches:
|
|
12
|
+
- @@DEFAULT_BRANCH_YAML@@
|
|
13
|
+
paths:
|
|
14
|
+
- .github/workflows/**
|
|
15
|
+
- .github/actions/**
|
|
16
|
+
@@TIERS full@@
|
|
17
|
+
- .github/dependabot.yml
|
|
18
|
+
@@END_TIERS@@
|
|
19
|
+
pull_request:
|
|
20
|
+
paths:
|
|
21
|
+
- .github/workflows/**
|
|
22
|
+
- .github/actions/**
|
|
23
|
+
@@TIERS full@@
|
|
24
|
+
- .github/dependabot.yml
|
|
25
|
+
@@END_TIERS@@
|
|
26
|
+
workflow_dispatch:
|
|
27
|
+
|
|
28
|
+
permissions:
|
|
29
|
+
contents: read
|
|
30
|
+
|
|
31
|
+
jobs:
|
|
32
|
+
actionlint:
|
|
33
|
+
name: ๐ actionlint
|
|
34
|
+
runs-on: @@RUNNER_YAML@@
|
|
35
|
+
timeout-minutes: 10
|
|
36
|
+
env:
|
|
37
|
+
# Bump both together. The checksum is the linux_amd64 line of
|
|
38
|
+
# https://github.com/rhysd/actionlint/releases/download/v${VERSION}/actionlint_${VERSION}_checksums.txt
|
|
39
|
+
ACTIONLINT_VERSION: "1.7.12"
|
|
40
|
+
ACTIONLINT_SHA256: "8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8"
|
|
41
|
+
steps:
|
|
42
|
+
- name: โคต๏ธ Check out code from GitHub
|
|
43
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
44
|
+
with:
|
|
45
|
+
persist-credentials: false
|
|
46
|
+
- name: ๐ฆ Install actionlint
|
|
47
|
+
run: |
|
|
48
|
+
set -euo pipefail
|
|
49
|
+
archive="actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
|
50
|
+
curl -sSfL -o "${RUNNER_TEMP}/${archive}" \
|
|
51
|
+
"https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/${archive}"
|
|
52
|
+
echo "${ACTIONLINT_SHA256} ${RUNNER_TEMP}/${archive}" | sha256sum --check --strict
|
|
53
|
+
tar -xzf "${RUNNER_TEMP}/${archive}" -C "${RUNNER_TEMP}" actionlint
|
|
54
|
+
- name: ๐ Run actionlint
|
|
55
|
+
# shellcheck is preinstalled on ubuntu-latest, and actionlint uses it.
|
|
56
|
+
run: '"${RUNNER_TEMP}/actionlint" -color'
|
|
57
|
+
|
|
58
|
+
zizmor:
|
|
59
|
+
name: ๐ zizmor
|
|
60
|
+
runs-on: @@RUNNER_YAML@@
|
|
61
|
+
timeout-minutes: 10
|
|
62
|
+
steps:
|
|
63
|
+
- name: โคต๏ธ Check out code from GitHub
|
|
64
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
65
|
+
with:
|
|
66
|
+
persist-credentials: false
|
|
67
|
+
- name: ๐ Run zizmor
|
|
68
|
+
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
|
|
69
|
+
with:
|
|
70
|
+
version: "1.30.1"
|
|
71
|
+
# Report as annotations on the run rather than uploading SARIF,
|
|
72
|
+
# which would need code scanning (and, for private repositories,
|
|
73
|
+
# GitHub Code Security) to be enabled.
|
|
74
|
+
advanced-security: false
|
|
75
|
+
annotations: true
|