You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Always use a clean checkout for clones during release-notes
This avoids a large category of failure modes where an existing on-disk
repository is in an unexpected state. We also delete the repo afterwards
to avoid multiple runs filling up the disk.
This change therefore removes configuration flags for the fork
locations.
Also included:
* Set the upstream when pushing a new branch
* Use HTTP transport for git instead of SSH
As we are now using the GitHub token for authentication, we need the
HTTP URL and not the SSH one.
* Remove check for branch existing on remote
The existing code does not work for a number of reasons:
- It only checks the default remote, not the user's fork.
- Any error returned would be treated as a success, not just a "not
found".
Even without this check there is no risk, as GitHub will simply reject
the pushing of a new branch without `--force`, which we do not use.
* Use existing branch if it already exists
The `-B` flag to `git checkout` will create the branch if it does not
exist (existing beaviour) but will also use it if it does exist.
Copy file name to clipboardExpand all lines: docs/krel/release-notes.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,7 @@ Before running `krel release-notes` export your GitHub token to \$GITHUB_TOKEN:
40
40
--draft-repo string the name of the fork of k/sig-release, the Release Notes Draft PR will be created from this repository (default "sig-release")
41
41
--format string The format for notes output (options: markdown, json) (default "markdown")
42
42
-h, --help help for release-notes
43
-
--kubernetes-sigs-fork-path string fork kubernetes-sigs/release-notes and output a copy of the json release notes to this directory (default "/tmp/k8s-sigs")
44
43
-o, --output-dir string output a copy of the release notes to this directory (default ".")
45
-
--sigrelease-fork-path string fork k/sig-release and output a copy of the release notes draft to this directory (default "/tmp/k8s-sigrelease")
46
44
-t, --tag string version tag for the notes
47
45
--website-org string a Github organization owner of the fork of kuberntets-sigs/release-notes where the Website PR will be created
48
46
--website-repo string the name of the fork of kuberntets-sigs/release-notes, the Release Notes Draft PR will be created from this repository (default "release-notes")
0 commit comments