repokeeper 0.4.5 → 0.4.6

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.
@@ -32,6 +32,20 @@ if [ -z "$ids" ]; then echo "::notice::no held runs for $BRANCH"; fi
32
32
  for id in $ids; do gh api -X POST "repos/$GITHUB_REPOSITORY/actions/runs/$id/approve"; done
33
33
  `;
34
34
  const RELEASE_PLEASE_SCHEMA = "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json";
35
+ // release-please's own php sections (src/strategies/php.ts) with chore hidden, as every other strategy has it
36
+ const PHP_CHANGELOG_SECTIONS = [
37
+ { type: "feat", section: "Features" },
38
+ { type: "fix", section: "Bug Fixes" },
39
+ { type: "perf", section: "Performance Improvements" },
40
+ { type: "revert", section: "Reverts" },
41
+ { type: "chore", section: "Miscellaneous Chores", hidden: true },
42
+ { type: "docs", section: "Documentation", hidden: true },
43
+ { type: "style", section: "Styles", hidden: true },
44
+ { type: "refactor", section: "Code Refactoring", hidden: true },
45
+ { type: "test", section: "Tests", hidden: true },
46
+ { type: "build", section: "Build System", hidden: true },
47
+ { type: "ci", section: "Continuous Integration", hidden: true },
48
+ ];
35
49
  const json = (value) => `${JSON.stringify(value, null, 2)}\n`;
36
50
  export const githubPlatform = {
37
51
  id: "github",
@@ -173,6 +187,8 @@ export const githubPlatform = {
173
187
  ...(release.versionFile ? { "version-file": release.versionFile } : {}),
174
188
  // Without it a pom at a release version first gets a pull request that only bumps to -SNAPSHOT
175
189
  ...(release.type === "maven" ? { "skip-snapshot": true } : {}),
190
+ // release-please's php strategy shows chore commits, which makes each one releasable on its own
191
+ ...(release.type === "php" ? { "changelog-sections": PHP_CHANGELOG_SECTIONS } : {}),
176
192
  // release-please makes a repository's first release 1.0.0 unless told otherwise; a release tag means
177
193
  // there was one, even when a version file release-please never bumps still reads 0.0.0
178
194
  ...(seed === "0.0.0" && !ctx.repo.releasedVersion ? { "initial-version": "0.1.0" } : {}),
package/dist/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { readFileSync } from "node:fs";
2
2
  export const PACKAGE_VERSION = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
3
3
  /** The standard this build of repokeeper applies. Bump it whenever generated output changes. */
4
- export const STANDARD_VERSION = "1.4.1";
4
+ export const STANDARD_VERSION = "1.4.2";
5
5
  export const TOOL_VERSIONS = {
6
6
  lefthook: "2.1.14",
7
7
  commitlintCli: "21.2.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repokeeper",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Keep every repository on one maintained standard: commits, git hooks, CI, releases, dependency updates and repo settings.",
5
5
  "type": "module",
6
6
  "bin": {