github

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2025 License: Zlib Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActionsArtifactLink() (string, string, error)

GetActionsArtifactLink returns the latest artifact link of the workflow run from GitHub Actions. It requires the owner and repo name of the repository, and the branch name. The artifact link is the download URL of the artifact file for the current os and arch.

But it requires authentication with `actions:read` scope to access the archived artifacts links.

func GetLatestAssetLink() (string, error)

GetLatestAssetLink returns the latest asset link of the release from GitHub. It requires the owner and repo name of the repository. The asset link is the download URL of the asset file for the current os and arch.

func GetNightlyLink() (string, error)

GetNightlyLink returns the nightly build artifact link from nightly.link.

func Render

func Render(text string) (string, error)

Render renders the markdown text to HTML by GitHub API. Default mode is "gfm" (GitHub Flavored Markdown), refer to GitHub Flavored Markdown Spec for more details.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL