github

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentOnCommit

func CommentOnCommit(ctx context.Context, repo string, sha string, text string, stickyKey string) error

func CommentOnIssue

func CommentOnIssue(ctx context.Context, repo string, number int, text string, stickyKey string) error

CommentOnIssue posts a comment on an issue or PR

github.repository => repo (alexgartner-bc/my-repo) github.event.issue.number => number

func SetPRTrailerDetails

func SetPRTrailerDetails(ctx context.Context, repo string, number int, summary string, details string, stickyKey string) error

SetPRTrailerDetails update the a PR and sets some text at the bottom. Might be better than a comment because it doesn't cause a notification. If summary is set, use <details>. Else use <span>

github.repository => repo (alexgartner-bc/my-repo) github.event.issue.number => number

Types

This section is empty.

Jump to

Keyboard shortcuts

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