@next-friday/create-app 5.0.1 → 5.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-friday/create-app",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Create a Next Friday project from a template.",
5
5
  "keywords": [
6
6
  "create",
@@ -7,12 +7,11 @@ while read -r local_ref _ remote_ref remote_oid; do
7
7
  echo "pre-push: do not push to main. Push your branch and open a pull request." >&2
8
8
  exit 1
9
9
  fi
10
- # A branch this clone pushed before that the remote no longer has was deleted when its pull request merged or closed.
11
10
  branch="${remote_ref#refs/heads/}"
12
11
  if [ "$branch" != "$remote_ref" ] && [ -z "$(printf '%s' "$remote_oid" | tr -d 0)" ] \
13
12
  && { git rev-parse --verify --quiet "refs/remotes/$1/$branch" > /dev/null \
14
13
  || [ "$(git config "branch.${local_ref#refs/heads/}.merge" || true)" = "$remote_ref" ]; }; then
15
- echo "pre-push: $branch no longer exists on $1, so its pull request merged or closed. Branch from the latest $1/main, push the new branch, and open a new pull request." >&2
14
+ echo "pre-push: $branch no longer exists on $1. Push the work to a new branch from the latest $1/main and open a pull request. To reuse the name, run git fetch --prune and git branch --unset-upstream first." >&2
16
15
  exit 1
17
16
  fi
18
17
  done
@@ -55,6 +55,7 @@ Also replace the owner placeholder in `.github/zizmor.yml`.
55
55
 
56
56
  - **Actions → General → Workflow permissions:** select **Read repository contents and packages permissions**. Every workflow requests the extra permissions it needs.
57
57
  - **General → Pull Requests:** select **Automatically delete head branches**, so a branch is deleted when its pull request merges.
58
+ - **General → Pull Requests → Allow squash merging:** set the default commit message to the pull request title alone ([configure commit squashing](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests)). Each commit on `main` is then the pull request title and number, with only co-author trailers in the body; the pull request description holds the why.
58
59
  - **Advanced Security:** enable private vulnerability reporting, Dependabot alerts, Dependabot security updates, secret scanning, and push protection. `SECURITY.md` sends reporters to private vulnerability reporting.
59
60
  - **Rules → Rulesets:** protect `main` with:
60
61
  - squash merges only, a linear history, and no force pushes or deletion;