@seangalie/precast 0.0.0-stage → 0.1.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.
Files changed (98) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE +202 -0
  3. package/README.md +217 -2
  4. package/dist/bin.d.ts +2 -0
  5. package/dist/bin.js +3 -0
  6. package/dist/cli.d.ts +1 -0
  7. package/dist/cli.js +140 -0
  8. package/dist/collect.d.ts +17 -0
  9. package/dist/collect.js +143 -0
  10. package/dist/context.d.ts +32 -0
  11. package/dist/context.js +159 -0
  12. package/dist/errors.d.ts +8 -0
  13. package/dist/errors.js +8 -0
  14. package/dist/fnmatch.d.ts +9 -0
  15. package/dist/fnmatch.js +110 -0
  16. package/dist/generate.d.ts +17 -0
  17. package/dist/generate.js +67 -0
  18. package/dist/index.d.ts +6 -0
  19. package/dist/index.js +6 -0
  20. package/dist/output-path.d.ts +30 -0
  21. package/dist/output-path.js +84 -0
  22. package/dist/platforms.d.ts +17 -0
  23. package/dist/platforms.js +62 -0
  24. package/dist/tiers.d.ts +23 -0
  25. package/dist/tiers.js +96 -0
  26. package/package.json +44 -4
  27. package/platforms/forgejo/files/.forgejo/CODEOWNERS.tmpl +2 -0
  28. package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/01_bug_report.yml.tmpl +83 -0
  29. package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/02_feature_request.yml.tmpl +57 -0
  30. package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/03_codebase_improvement.yml.tmpl +44 -0
  31. package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/04_support_question.yml.tmpl +47 -0
  32. package/platforms/forgejo/files/.forgejo/ISSUE_TEMPLATE/config.yml.tmpl +13 -0
  33. package/platforms/forgejo/files/.forgejo/PULL_REQUEST_TEMPLATE.md.tmpl +49 -0
  34. package/platforms/forgejo/files/.forgejo/SETUP.md.tmpl +61 -0
  35. package/platforms/forgejo/files/.forgejo/labels.yml.tmpl +99 -0
  36. package/platforms/forgejo/files/.forgejo/scripts/check-labels.sh.tmpl +91 -0
  37. package/platforms/forgejo/files/.forgejo/scripts/sync-labels.sh.tmpl +165 -0
  38. package/platforms/forgejo/files/.forgejo/workflows/labels.yml.tmpl +45 -0
  39. package/platforms/forgejo/files/.forgejo/workflows/lint.yml.tmpl +78 -0
  40. package/platforms/forgejo/files/.forgejo/workflows/pr-labels.yml.tmpl +51 -0
  41. package/platforms/forgejo/files/.forgejo/workflows/pre-commit.yml.tmpl +24 -0
  42. package/platforms/forgejo/files/.forgejo/workflows/release.yml.tmpl +130 -0
  43. package/platforms/forgejo/files/.forgejo/workflows/renovate.yml.tmpl +61 -0
  44. package/platforms/forgejo/files/.forgejo/workflows/stale.yml.tmpl +260 -0
  45. package/platforms/forgejo/files/renovate.json +36 -0
  46. package/platforms/forgejo/platform.json +41 -0
  47. package/platforms/github/files/.github/CODEOWNERS.tmpl +2 -0
  48. package/platforms/github/files/.github/ISSUE_TEMPLATE/01_bug_report.yml.tmpl +83 -0
  49. package/platforms/github/files/.github/ISSUE_TEMPLATE/02_feature_request.yml.tmpl +57 -0
  50. package/platforms/github/files/.github/ISSUE_TEMPLATE/03_codebase_improvement.yml.tmpl +44 -0
  51. package/platforms/github/files/.github/ISSUE_TEMPLATE/04_support_question.yml.tmpl +47 -0
  52. package/platforms/github/files/.github/ISSUE_TEMPLATE/config.yml.tmpl +16 -0
  53. package/platforms/github/files/.github/PULL_REQUEST_TEMPLATE.md.tmpl +49 -0
  54. package/platforms/github/files/.github/SETUP.md.tmpl +46 -0
  55. package/platforms/github/files/.github/dependabot.yml.tmpl +75 -0
  56. package/platforms/github/files/.github/labels.yml.tmpl +103 -0
  57. package/platforms/github/files/.github/release.yml.tmpl +47 -0
  58. package/platforms/github/files/.github/workflows/ci.yml.tmpl +55 -0
  59. package/platforms/github/files/.github/workflows/codeql.yml.tmpl +63 -0
  60. package/platforms/github/files/.github/workflows/labels.yml.tmpl +34 -0
  61. package/platforms/github/files/.github/workflows/lint-workflows.yml.tmpl +75 -0
  62. package/platforms/github/files/.github/workflows/lint.yml.tmpl +69 -0
  63. package/platforms/github/files/.github/workflows/lock.yml.tmpl +46 -0
  64. package/platforms/github/files/.github/workflows/pr-labels.yml.tmpl +26 -0
  65. package/platforms/github/files/.github/workflows/pre-commit.yml.tmpl +25 -0
  66. package/platforms/github/files/.github/workflows/release.yml.tmpl +101 -0
  67. package/platforms/github/files/.github/workflows/stale.yml.tmpl +57 -0
  68. package/platforms/github/platform.json +44 -0
  69. package/platforms/gitlab/files/.gitlab/CODEOWNERS.tmpl +2 -0
  70. package/platforms/gitlab/files/.gitlab/SETUP.md.tmpl +62 -0
  71. package/platforms/gitlab/files/.gitlab/issue_templates/01_bug_report.md +18 -0
  72. package/platforms/gitlab/files/.gitlab/issue_templates/02_feature_request.md +11 -0
  73. package/platforms/gitlab/files/.gitlab/issue_templates/03_codebase_improvement.md +11 -0
  74. package/platforms/gitlab/files/.gitlab/issue_templates/04_support_question.md +12 -0
  75. package/platforms/gitlab/files/.gitlab/labels.json +122 -0
  76. package/platforms/gitlab/files/.gitlab/merge_request_templates/Default.md +14 -0
  77. package/platforms/gitlab/files/.gitlab/scripts/project.py +159 -0
  78. package/platforms/gitlab/files/.gitlab-ci.yml.tmpl +54 -0
  79. package/platforms/gitlab/platform.json +34 -0
  80. package/template/.editorconfig.tmpl +54 -0
  81. package/template/.gitattributes +107 -0
  82. package/template/.gitignore.tmpl +244 -0
  83. package/template/.pre-commit-config.yaml.tmpl +43 -0
  84. package/template/.repo/check-secrets.py +40 -0
  85. package/template/.repo/ci-checks.sh +18 -0
  86. package/template/AGENTS.md.tmpl +75 -0
  87. package/template/CHANGELOG.md.tmpl +24 -0
  88. package/template/CLAUDE.md +1 -0
  89. package/template/LICENSE +202 -0
  90. package/template/README.md.tmpl +101 -0
  91. package/template/SETUP.md.tmpl +47 -0
  92. package/template/docs/CODE_OF_CONDUCT.md +85 -0
  93. package/template/docs/CONTRIBUTING.md.tmpl +54 -0
  94. package/template/docs/SECURITY.md.tmpl +26 -0
  95. package/template/docs/SUPPORT.md.tmpl +19 -0
  96. package/template/docs/logo.svg +84 -0
  97. package/template/docs/screenshot.png +0 -0
  98. package/tiers.json +10 -0
@@ -0,0 +1,69 @@
1
+ ---
2
+ # Lints what every repository has from the start: the standalone shell scripts,
3
+ # and the .editorconfig rules every text file is expected to follow. The
4
+ # workflows themselves are checked by lint-workflows.yml. Add the project's own
5
+ # linters here, or in a workflow of their own.
6
+
7
+ name: Lint
8
+
9
+ on:
10
+ push:
11
+ branches:
12
+ - @@DEFAULT_BRANCH_YAML@@
13
+ pull_request:
14
+ workflow_dispatch:
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ # A newer push to a pull request supersedes its running lint. Runs on main are
20
+ # never cancelled, so every commit there keeps a result.
21
+ concurrency:
22
+ group: ${{ github.workflow }}-${{ github.ref }}
23
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
24
+
25
+ jobs:
26
+ shellcheck:
27
+ name: 🐚 shellcheck
28
+ runs-on: @@RUNNER_YAML@@
29
+ timeout-minutes: 10
30
+ steps:
31
+ - name: ⤵️ Check out code from GitHub
32
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
33
+ with:
34
+ persist-credentials: false
35
+ - name: 🚀 Run shellcheck
36
+ # shellcheck is preinstalled on ubuntu-latest. actionlint already covers
37
+ # the shell inside workflows, so this checks standalone scripts: any
38
+ # tracked *.sh or *.bash file. A script without either extension needs
39
+ # adding here. xargs -r skips the run when there are none.
40
+ run: |
41
+ set -euo pipefail
42
+ git ls-files -z -- '*.sh' '*.bash' | xargs -0 -r shellcheck
43
+
44
+ editorconfig:
45
+ name: 📐 editorconfig-checker
46
+ runs-on: @@RUNNER_YAML@@
47
+ timeout-minutes: 10
48
+ env:
49
+ # Bump both together. The checksum is the linux-amd64 line of
50
+ # https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${VERSION}/checksums.txt
51
+ EC_VERSION: "4.0.2"
52
+ EC_SHA256: "44efaef3ed14c6ab52eb87481d78e5e5c204796dccf26e2f4598a61ba17f8003"
53
+ steps:
54
+ - name: ⤵️ Check out code from GitHub
55
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
56
+ with:
57
+ persist-credentials: false
58
+ - name: 📦 Install editorconfig-checker
59
+ run: |
60
+ set -euo pipefail
61
+ archive="editorconfig-checker-linux-amd64.tar.gz"
62
+ curl -sSfL -o "${RUNNER_TEMP}/${archive}" \
63
+ "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${EC_VERSION}/${archive}"
64
+ echo "${EC_SHA256} ${RUNNER_TEMP}/${archive}" | sha256sum --check --strict
65
+ tar -xzf "${RUNNER_TEMP}/${archive}" -C "${RUNNER_TEMP}" editorconfig-checker
66
+ - name: 🚀 Run editorconfig-checker
67
+ # Checks the repository's text files against .editorconfig, skipping
68
+ # binaries and anything .gitignore excludes.
69
+ run: '"${RUNNER_TEMP}/editorconfig-checker"'
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: Lock
3
+
4
+ on:
5
+ schedule:
6
+ - cron: "23 9 * * *"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ lock:
14
+ name: 🔒 Lock closed issues and PRs
15
+ runs-on: @@RUNNER_YAML@@
16
+ permissions:
17
+ issues: write
18
+ pull-requests: write
19
+ discussions: write
20
+ steps:
21
+ - name: 🚀 Run Lock Threads
22
+ uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
23
+ with:
24
+ github-token: ${{ github.token }}
25
+ issue-inactive-days: "30"
26
+ issue-lock-reason: ""
27
+ issue-comment: >
28
+ Issue closed and locked due to lack of activity.
29
+
30
+ If you encounter this same issue, please open a new issue and refer
31
+ to this closed one.
32
+ # Long enough that a merged pull request can still be discussed, and
33
+ # short enough to keep drive-by comments off old work.
34
+ pr-inactive-days: "30"
35
+ pr-lock-reason: ""
36
+ pr-comment: >
37
+ Pull Request closed and locked due to lack of activity.
38
+
39
+ If you'd like to build on this closed PR, you can clone it using
40
+ this method: https://stackoverflow.com/a/14969986
41
+
42
+ Then open a new PR, referencing this closed PR in your message.
43
+ # Stated explicitly: this action processes discussions by default
44
+ # (at 365 days), which is why the job holds `discussions: write`.
45
+ # Set `process-only: issues, prs` to leave discussions alone.
46
+ discussion-inactive-days: "365"
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: PR Labels
3
+
4
+ on:
5
+ pull_request:
6
+ types: [opened, reopened, labeled, unlabeled, synchronize]
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ pr_labels:
13
+ name: 🏭 Verify
14
+ runs-on: @@RUNNER_YAML@@
15
+ permissions:
16
+ contents: read
17
+ pull-requests: read
18
+ steps:
19
+ - name: 🏷 Verify PR has a valid label
20
+ uses: mheap/github-action-required-labels@23e10fde7e062233401931a0eece796cd9bf3177 # v5.6.0
21
+ with:
22
+ mode: minimum
23
+ count: 1
24
+ labels: >-
25
+ breaking-change, bugfix, documentation, enhancement,
26
+ refactor, performance, new-feature, maintenance, ci, dependencies
@@ -0,0 +1,25 @@
1
+ name: Pre-commit
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - @@DEFAULT_BRANCH_YAML@@
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ checks:
15
+ runs-on: @@RUNNER_YAML@@
16
+ steps:
17
+ - name: Check out the repository
18
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
+ with:
20
+ persist-credentials: false
21
+ - name: Run pre-commit checks
22
+ env:
23
+ # Existing lint jobs own these checks in CI. Local hooks run all.
24
+ SKIP: shellcheck,editorconfig-checker,actionlint
25
+ run: bash .repo/ci-checks.sh
@@ -0,0 +1,101 @@
1
+ ---
2
+ # Publishes a GitHub release when a version tag is pushed, using that version's
3
+ # section of CHANGELOG.md as the release notes.
4
+ #
5
+ # git tag -a v1.2.0 -m "v1.2.0" && git push origin v1.2.0
6
+ #
7
+ # The tag v1.2.0 picks the `## [1.2.0] - YYYY-MM-DD` section. A tag with a
8
+ # pre-release suffix such as v1.2.0-rc.1 is published as a pre-release. Running
9
+ # it again for a tag that already has a release (re-run the job, or delete and
10
+ # re-push the tag) updates that release's notes.
11
+ #
12
+ # The run fails, publishing nothing, if CHANGELOG.md has no section for the
13
+ # version: a missing section usually means the tag went out before the
14
+ # changelog was prepared.
15
+ #
16
+ # This only writes the release notes. Build and attach artifacts in a job of
17
+ # your own, uploading to the release this job creates. The categories in
18
+ # .github/release.yml apply only to notes generated from the GitHub UI.
19
+
20
+ name: Release
21
+
22
+ on:
23
+ push:
24
+ tags:
25
+ - "v*"
26
+
27
+ permissions:
28
+ contents: read
29
+
30
+ # Two pushes of the same tag must not race to create the release.
31
+ concurrency:
32
+ group: ${{ github.workflow }}-${{ github.ref }}
33
+ cancel-in-progress: false
34
+
35
+ jobs:
36
+ release:
37
+ name: 📦 Publish the release
38
+ runs-on: @@RUNNER_YAML@@
39
+ timeout-minutes: 10
40
+ permissions:
41
+ contents: write
42
+ env:
43
+ TAG: ${{ github.ref_name }}
44
+ GH_TOKEN: ${{ github.token }}
45
+ GH_REPO: ${{ github.repository }}
46
+ steps:
47
+ - name: ⤵️ Check out code from GitHub
48
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
49
+ with:
50
+ persist-credentials: false
51
+
52
+ - name: 📝 Extract the release notes
53
+ run: |
54
+ set -euo pipefail
55
+ version="${TAG#v}"
56
+
57
+ # Everything under `## [<version>]` up to the next `## [` heading,
58
+ # without the link definitions Keep a Changelog puts at the end, or
59
+ # the blank lines around the section. A blank line is only printed
60
+ # once more text follows it, so trailing ones are dropped.
61
+ awk -v v="$version" '
62
+ /^## \[/ {
63
+ if (found) exit
64
+ if (index($0, "## [" v "]") == 1) { found = 1; next }
65
+ }
66
+ !found || /^\[[^]]+\]: / { next }
67
+ /^[[:space:]]*$/ { if (started) blank++; next }
68
+ { while (blank > 0) { print ""; blank-- }; started = 1; print }
69
+ ' CHANGELOG.md > "${RUNNER_TEMP}/notes.md"
70
+
71
+ if [ ! -s "${RUNNER_TEMP}/notes.md" ]; then
72
+ echo "::error::CHANGELOG.md has no section for ${version}, so nothing was published. Add a \`## [${version}]\` section, then delete and re-push ${TAG}."
73
+ exit 1
74
+ fi
75
+
76
+ {
77
+ echo "## Release notes for ${TAG}"
78
+ echo
79
+ cat "${RUNNER_TEMP}/notes.md"
80
+ } >> "$GITHUB_STEP_SUMMARY"
81
+
82
+ - name: 🚀 Create or update the release
83
+ run: |
84
+ set -euo pipefail
85
+
86
+ prerelease=false
87
+ case "${TAG#v}" in *-*) prerelease=true ;; esac
88
+
89
+ if gh release view "$TAG" --json tagName > /dev/null 2>&1; then
90
+ gh release edit "$TAG" \
91
+ --notes-file "${RUNNER_TEMP}/notes.md" \
92
+ --prerelease="$prerelease"
93
+ echo "Updated the existing release for ${TAG}."
94
+ else
95
+ gh release create "$TAG" \
96
+ --verify-tag \
97
+ --title "$TAG" \
98
+ --notes-file "${RUNNER_TEMP}/notes.md" \
99
+ --prerelease="$prerelease"
100
+ echo "Published the release for ${TAG}."
101
+ fi
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: Stale
3
+
4
+ on:
5
+ schedule:
6
+ - cron: "17 8 * * *"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ stale:
14
+ name: 🧹 Clean up stale issues and PRs
15
+ runs-on: @@RUNNER_YAML@@
16
+ permissions:
17
+ # actions/stale keeps its progress in the Actions cache and needs this
18
+ # to delete the previous run's entry.
19
+ actions: write
20
+ issues: write
21
+ pull-requests: write
22
+ steps:
23
+ - name: 🚀 Run stale
24
+ uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
25
+ with:
26
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
27
+ days-before-stale: 60
28
+ days-before-close: 14
29
+ remove-stale-when-updated: true
30
+ stale-issue-label: "stale"
31
+ # Bugs and anything with a priority are triaged work that stays open until
32
+ # someone deals with it, however long that takes. The sweep is for
33
+ # questions and ideas that lost momentum.
34
+ exempt-issue-labels: >-
35
+ no-stale,in-progress,help wanted,good first issue,security,bug,
36
+ priority-critical,priority-high,priority-medium,priority-low
37
+ stale-issue-message: >
38
+ There hasn't been any activity on this issue recently, and in order
39
+ to prioritize active issues, it will be marked as stale.
40
+
41
+ Please make sure to update to the latest version and
42
+ check if that solves the issue. Let us know if that works for you
43
+ by leaving a 👍
44
+
45
+ Because this issue is marked as stale, it will be closed in 14 days
46
+ if no further activity occurs.
47
+
48
+ Thank you for your contributions!
49
+ stale-pr-label: "stale"
50
+ exempt-pr-labels: "no-stale,in-progress"
51
+ stale-pr-message: >
52
+ There hasn't been any activity on this pull request recently, and in
53
+ order to prioritize active work, it has been marked as stale.
54
+
55
+ This PR will be closed in 14 days if no further activity occurs.
56
+
57
+ Thank you for your contributions!
@@ -0,0 +1,44 @@
1
+ {
2
+ "server_url": "https://github.com",
3
+ "nested_namespaces": false,
4
+ "runner": "ubuntu-latest",
5
+ "codeowners_pattern": "*",
6
+ "tiers": {
7
+ "regular": [
8
+ ".github/CODEOWNERS",
9
+ ".github/ISSUE_TEMPLATE/*",
10
+ ".github/PULL_REQUEST_TEMPLATE.md",
11
+ ".github/workflows/ci.yml",
12
+ ".github/workflows/lint.yml",
13
+ ".github/workflows/lint-workflows.yml",
14
+ ".github/workflows/pre-commit.yml"
15
+ ],
16
+ "full": [
17
+ ".github/dependabot.yml",
18
+ ".github/labels.yml",
19
+ ".github/release.yml",
20
+ ".github/workflows/codeql.yml",
21
+ ".github/workflows/labels.yml",
22
+ ".github/workflows/lock.yml",
23
+ ".github/workflows/pr-labels.yml",
24
+ ".github/workflows/release.yml",
25
+ ".github/workflows/stale.yml"
26
+ ]
27
+ },
28
+ "context": {
29
+ "PLATFORM_NAME": "GitHub",
30
+ "PLATFORM_DIR": ".github",
31
+ "CI_FILE": ".github/workflows/ci.yml",
32
+ "ISSUES_URL": "{REPO_URL}/issues",
33
+ "CHANGES_URL": "{REPO_URL}/pulls",
34
+ "CONTRIBUTORS_URL": "{REPO_URL}/contributors",
35
+ "HISTORY_URL": "{REPO_URL}/commits/{BRANCH_URL}",
36
+ "FILE_URL": "{REPO_URL}/blob/{BRANCH_URL}",
37
+ "CODEOWNERS_NOTE": "GitHub matches paths with gitignore-style patterns. Organizations must assign a visible team with write access, not the organization itself.",
38
+ "AUTOMATION_NOTE": "Pin third-party actions to full commit SHAs and grant only the permissions each workflow needs.",
39
+ "SECURITY_CHANNEL": "Enable private vulnerability reporting in repository settings, or set a private reporting address below. The reporting link is {REPO_URL}/security/advisories/new.",
40
+ "LABEL_NOTE": "Run Sync labels once from Actions after the first push. PR Labels requires these labels.",
41
+ "EXTRA_SETUP": "Review Discussions, Dependabot and CodeQL in `.github/SETUP.md` before enabling them.",
42
+ "PRE_COMMIT_WORKFLOW_HOOKS": "\n - repo: https://github.com/rhysd/actionlint\n rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12\n hooks:\n - id: actionlint\n files: ^\\.github/workflows/.*\\.ya?ml$"
43
+ }
44
+ }
@@ -0,0 +1,2 @@
1
+ # @@CODEOWNERS_NOTE@@
2
+ @@CODEOWNERS_RULE@@
@@ -0,0 +1,62 @@
1
+ # GitLab setup
2
+
3
+ I target GitLab 19.5 on PPPL's instance. The version was confirmed through the
4
+ desktop UI; runner, subscription, and project policy checks remain outstanding.
5
+
6
+ - [ ] Confirm the destination project is in the intended namespace. Subgroups are supported.
7
+ @@TIERS regular full@@
8
+ - [ ] Review `.gitlab/issue_templates/` and `.gitlab/merge_request_templates/Default.md`.
9
+ - [ ] Confirm an eligible runner has Git, Bash, and Python 3.10+ with pip and venv.
10
+ The required pre-commit job downloads tools from the configured Python package
11
+ index (normally `pypi.org` and `files.pythonhosted.org`), GitHub hook repositories,
12
+ and Go toolchain/module services such as `go.dev`, `dl.google.com`,
13
+ `proxy.golang.org`, and `sum.golang.org`. Confirm outbound access or approved
14
+ mirrors/proxies; these are not assumed available on PPPL's runners.
15
+ The default `tags: []`
16
+ requires a runner that accepts untagged jobs. Generate with `--runner TAG` to select
17
+ a tagged runner instead. For Docker/Kubernetes executors, set an approved default
18
+ image on the runner or add an institutional image to `.gitlab-ci.yml`.
19
+ @@END_TIERS@@
20
+ @@TIERS regular@@
21
+ - [ ] Add real build and test jobs to `.gitlab-ci.yml`. `project-tests` is a manual placeholder.
22
+ @@END_TIERS@@
23
+ @@TIERS full@@
24
+ - [ ] Add real build and test jobs to `.gitlab-ci.yml`. `validate-scaffold` only validates
25
+ starter files and labels; `project-tests` is a manual placeholder.
26
+ @@END_TIERS@@
27
+ @@TIERS regular full@@
28
+ - [ ] Review `.gitlab/CODEOWNERS`. Code Owner approval enforcement depends on GitLab
29
+ tier and protection settings. A group namespace does not imply a valid code owner.
30
+ @@END_TIERS@@
31
+ - [ ] Set protected branches, review requirements, visibility, and institutional policies.
32
+ @@TIERS slim@@
33
+ - [ ] Give a private security contact in `README.md` according to PPPL requirements.
34
+ @@END_TIERS@@
35
+ @@TIERS regular full@@
36
+ - [ ] Set a private security contact in `docs/SECURITY.md` according to PPPL requirements.
37
+ @@END_TIERS@@
38
+ @@TIERS full@@
39
+ - [ ] Configure labels using `.gitlab/labels.json` manually, or explicitly run the command
40
+ below with an API-scoped token for an account permitted to manage project labels.
41
+ `GITLAB_TOKEN` must be supplied through the environment; do not put it in the command
42
+ or commit it. The CI job token is not used for labels. Existing unrelated labels and
43
+ inherited group labels are preserved.
44
+
45
+ ```sh
46
+ python3 .gitlab/scripts/project.py labels \
47
+ --api-url '@@SERVER_URL@@/api/v4' --project '@@NAMESPACE@@/@@REPO@@'
48
+ ```
49
+
50
+ - [ ] Prepare a matching `## [X.Y.Z] - YYYY-MM-DD` changelog section before pushing
51
+ `vX.Y.Z`. The release job uses GitLab's built-in job token to publish or update
52
+ notes, including for prerelease tags. It does not build or attach artifacts.
53
+ @@END_TIERS@@
54
+ - [ ] Add dependency updates and issue triage automation if needed. This starter does
55
+ not assume that PPPL permits external bots, GitHub CodeQL, or scheduled API writes.
56
+
57
+ @@TIERS slim@@
58
+ Generate with `--tier regular` or `--tier full` for templates, CI, labels, and releases.
59
+
60
+ @@END_TIERS@@
61
+ GitLab project creation, label synchronization, release publishing, and runner
62
+ execution have not been tested against PPPL by this generator.
@@ -0,0 +1,18 @@
1
+ ## Problem
2
+
3
+ What happened, and what did I expect instead?
4
+
5
+ ## Reproduction
6
+
7
+ 1. Provide the smallest steps or example that reproduce the problem.
8
+
9
+ ## Environment
10
+
11
+ - Version or commit:
12
+ - Operating system:
13
+ - Relevant configuration:
14
+
15
+ ## Logs or screenshots
16
+
17
+ Remove credentials and other sensitive data before attaching anything.
18
+ Report vulnerabilities privately using `docs/SECURITY.md`.
@@ -0,0 +1,11 @@
1
+ ## Problem or use case
2
+
3
+ What am I trying to accomplish, and what is missing?
4
+
5
+ ## Proposed behavior
6
+
7
+ Describe the result I would like and any compatibility requirements.
8
+
9
+ ## Alternatives
10
+
11
+ Describe other approaches I have considered.
@@ -0,0 +1,11 @@
1
+ ## Area to improve
2
+
3
+ Identify the code, documentation, tooling, or development process.
4
+
5
+ ## Motivation
6
+
7
+ Explain the current problem and the benefit of changing it.
8
+
9
+ ## Proposed approach
10
+
11
+ Describe the change, tradeoffs, and how I would verify the result.
@@ -0,0 +1,12 @@
1
+ ## Question
2
+
3
+ What am I trying to do, and where am I stuck?
4
+
5
+ ## What I tried
6
+
7
+ Include documentation read, commands tried, and the results.
8
+
9
+ ## Environment
10
+
11
+ Include the project version, operating system, and relevant configuration.
12
+ Remove credentials and other sensitive data.
@@ -0,0 +1,122 @@
1
+ [
2
+ {
3
+ "name": "breaking-change",
4
+ "color": "#e11d21",
5
+ "description": "Changes the API or breaks backward compatibility for users."
6
+ },
7
+ {
8
+ "name": "bugfix",
9
+ "color": "#ee0701",
10
+ "description": "Resolves a defect for users or implementors."
11
+ },
12
+ {
13
+ "name": "new-feature",
14
+ "color": "#0e8a16",
15
+ "description": "Adds a new capability or option."
16
+ },
17
+ {
18
+ "name": "enhancement",
19
+ "color": "#a2eeef",
20
+ "description": "Improves something that already exists, or asks for an improvement or a new capability."
21
+ },
22
+ {
23
+ "name": "documentation",
24
+ "color": "#0052cc",
25
+ "description": "Solely about the documentation of the project."
26
+ },
27
+ {
28
+ "name": "refactor",
29
+ "color": "#1d76db",
30
+ "description": "Simpler, clearer or more efficient code with no change in behavior."
31
+ },
32
+ {
33
+ "name": "performance",
34
+ "color": "#1d76db",
35
+ "description": "Makes the project faster or lighter with no change in behavior."
36
+ },
37
+ {
38
+ "name": "maintenance",
39
+ "color": "#2af79e",
40
+ "description": "Upkeep with no change in behavior: tooling, tests, housekeeping."
41
+ },
42
+ {
43
+ "name": "ci",
44
+ "color": "#1d76db",
45
+ "description": "Continuous integration and the workflows under .forgejo/."
46
+ },
47
+ {
48
+ "name": "dependencies",
49
+ "color": "#1d76db",
50
+ "description": "Updates project dependencies."
51
+ },
52
+ {
53
+ "name": "bug",
54
+ "color": "#d73a4a",
55
+ "description": "A reported defect: something is not working as intended."
56
+ },
57
+ {
58
+ "name": "security",
59
+ "color": "#9e1c23",
60
+ "description": "Addresses a vulnerability or security risk in this project."
61
+ },
62
+ {
63
+ "name": "question",
64
+ "color": "#d876e3",
65
+ "description": "A request for support or further information about this project."
66
+ },
67
+ {
68
+ "name": "incomplete",
69
+ "color": "#fef2c0",
70
+ "description": "Missing the information needed to act on it."
71
+ },
72
+ {
73
+ "name": "invalid",
74
+ "color": "#e4e669",
75
+ "description": "Off-topic, spam, or otherwise does not apply to this project."
76
+ },
77
+ {
78
+ "name": "beginner-friendly",
79
+ "color": "#7057ff",
80
+ "description": "A good first issue for people new to this project."
81
+ },
82
+ {
83
+ "name": "help-wanted",
84
+ "color": "#008672",
85
+ "description": "Extra hands or expertise are needed to resolve this."
86
+ },
87
+ {
88
+ "name": "in-progress",
89
+ "color": "#5319e7",
90
+ "description": "Someone is actively working on this."
91
+ },
92
+ {
93
+ "name": "stale",
94
+ "color": "#ededed",
95
+ "description": "No activity for a while; closed soon unless that changes."
96
+ },
97
+ {
98
+ "name": "no-stale",
99
+ "color": "#ededed",
100
+ "description": "Exempt from the Stale workflow."
101
+ },
102
+ {
103
+ "name": "priority/critical",
104
+ "color": "#b60205",
105
+ "description": "Must be addressed as soon as possible."
106
+ },
107
+ {
108
+ "name": "priority/high",
109
+ "color": "#d93f0b",
110
+ "description": "Next in line once critical issues are resolved."
111
+ },
112
+ {
113
+ "name": "priority/medium",
114
+ "color": "#fbca04",
115
+ "description": "Worth doing; needs some attention."
116
+ },
117
+ {
118
+ "name": "priority/low",
119
+ "color": "#c2e0c6",
120
+ "description": "Nice to have, when time allows."
121
+ }
122
+ ]
@@ -0,0 +1,14 @@
1
+ ## What changed and why
2
+
3
+ Describe the problem and resulting behavior. Link the related issue if applicable.
4
+
5
+ ## Validation
6
+
7
+ List checks run, results, and any runtime or CI behavior that remains unverified.
8
+
9
+ ## Checklist
10
+
11
+ - [ ] My change is focused and follows the project conventions.
12
+ - [ ] I exercised the changed behavior in appropriate tests.
13
+ - [ ] I recorded user-visible changes in `CHANGELOG.md`.
14
+ - [ ] I reviewed the diff for secrets and unrelated changes.