Stage a GitHub releaseSource:
Open a GitHub pull request for a new release from
NEWS.md. Approve, merge, and create the
stage_release(pkg = ".", filename = "NEWS.md", host = getOption("rdev.host"))
path to package. Currently, only
pkg = "."is supported.
name of file containing release notes, defaults to
GitHub host to target, passed to the
gh::gh(). If unspecified, gh defaults to "https://api.github.com", although gh's default can be customised by setting the GITHUB_API_URL environment variable.
For a hypothetical GitHub Enterprise instance, either "https://github.acme.com/api/v3" or "https://github.acme.com" is acceptable.
Extracts release version and release notes from
Validates version conforms to rdev conventions (#.#.#) and release notes aren't empty
Verifies that version tag doesn't already exist using
Checks for uncommitted changes and stops if any exist using
Opens a pull request with the title
"<package> <version>"and the release notes in the body using