pub async fn post_release_notes(
provider: &dyn TokenProvider,
owner: &str,
repo: &str,
tag: &str,
body: &str,
) -> Result<String, AptuError>Expand description
Post release notes to GitHub.
Creates or updates a release on GitHub with the provided release notes body. If the release already exists, it will be updated. Otherwise, a new release is created.
§Arguments
provider- Token provider for GitHub credentialsowner- Repository ownerrepo- Repository nametag- The tag name for the releasebody- The release notes body
§Returns
The URL of the created or updated release.
§Errors
Returns an error if:
- GitHub token is not available
- GitHub API call fails