@@ -13,35 +13,39 @@ It adds basic PR building, dependabot integration, testing, coverage etc.
1313 ``` bash
1414 git clone git@github.com:smlx/go-cli-github.git $PROJECT_DIR && rm -rf ./$PROJECT_DIR /.git
1515 ```
16- 2 . Update the ` release ` workflow branch from ` main ` to ` foo ` to disable it, commit all the files, and push to ` main ` on a new repo.
17- 2 . Update for your project, send a PR and merge it once green:
18- * rename ` deploy/go-cli-github ` to ` deploy/$YOUR_COMMAND `
19- * update ` deploy/$YOUR_COMMAND/Dockerfile `
20- * rename ` cmd/go-cli-github ` to ` cmd/$YOUR_COMMAND `
21- * update ` .goreleaser.yml ` to build ` cmd/$YOUR_COMMAND `
22- * update the links at the top of the README
23- * update the ` build ` , ` release ` , and ` tag-to-release ` workflows, replacing ` go-cli-github ` with ` $YOUR_COMMAND ` .
24- * update module in ` go.mod ` and in ` cmd/$YOUR_COMMAND/*.go ` , ` internal/server/serve_test.go `
25- 3 . Go to repository Settings > General:
26- * Disable wiki and projects
27- * Allow only merge commits for Pull Requests
28- * Allow auto-merge
29- * Automatically delete head branches
30- 4 . Go to repository Settings > Branches and add branch protection to ` main ` , and enable:
31- * Require a PR before merging
32- * Dismiss stale pull request approvals
33- * Require status checks to pass before merging
34- * Require branches to be up-to-date before merging.
35- * Required status checks:
36- * CodeQL
37- * build
38- * buildimage
39- * commitlint
40- * go-test
41- * lint
42- * Include administrators
43- 5 . Go to repository Settings > Code security and analysis, and enable:
44- * Dependabot alerts
45- * Dependabot security updates
46- 6 . When ready to release, rename the target branch in the release workflow from ` foo ` to ` main ` , and send a PR.
47- 7 . That's it.
16+ 1 . Update the ` release ` workflow branch from ` main ` to ` foo ` to disable it, commit all the files, and push to ` main ` on a new repo.
17+ 1 . Update for your project, send a PR and merge it once green:
18+ * rename ` deploy/go-cli-github ` to ` deploy/$YOUR_COMMAND `
19+ * update ` deploy/$YOUR_COMMAND/Dockerfile `
20+ * rename ` cmd/go-cli-github ` to ` cmd/$YOUR_COMMAND `
21+ * update ` .goreleaser.yml ` to build ` cmd/$YOUR_COMMAND `
22+ * update the links at the top of the README
23+ * update the ` build ` , ` release ` , and ` tag-to-release ` workflows, replacing ` go-cli-github ` with ` $YOUR_COMMAND `
24+ * update module in ` go.mod ` and in ` cmd/$YOUR_COMMAND/*.go ` , ` internal/server/serve_test.go `
25+ 1 . Go to repository Settings > General:
26+ * Disable wiki and projects
27+ * Allow only merge commits for Pull Requests
28+ * Allow auto-merge
29+ * Automatically delete head branches
30+ 1 . Go to repository Settings > Branches and add branch protection to ` main ` , and enable:
31+ * Require a PR before merging
32+ * Dismiss stale pull request approvals
33+ * Require status checks to pass before merging
34+ * Require branches to be up-to-date before merging.
35+ * Required status checks:
36+ * CodeQL
37+ * build
38+ * buildimage
39+ * commitlint
40+ * go-test
41+ * lint
42+ * Include administrators
43+ 1 . Go to repository Settings > Code security and analysis, and enable:
44+ * Dependabot alerts
45+ * Dependabot security updates
46+ * Secret scanning
47+ * Push protection
48+ 1 . Go to repository Settings > Actions > General:
49+ * Set Workflow permissions to "Read repository contents and package permissions"
50+ 1 . When ready to release, rename the target branch in the release workflow from ` foo ` to ` main ` , and send a PR.
51+ 1 . That's it.
0 commit comments