tag

package
v1.2.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Simple tags
	Assigned      = Tag{ID: "assigned", Desc: "Someone is assigned"}
	Closed        = Tag{ID: "closed", Desc: "This item has been closed"}
	OpenMilestone = Tag{ID: "open-milestone", Desc: "The issue is associated to an open milestone"}
	Similar       = Tag{ID: "similar", Desc: "Title appears similar to another PR or issue"}
	Merged        = Tag{ID: "merged", Desc: "PR was merged"}
	Draft         = Tag{ID: "draft", Desc: "Draft PR"}

	// Comment-based tags
	Commented       = Tag{ID: "commented", Desc: "A project member has commented on this", NeedsComments: true}
	Send            = Tag{ID: "send", Desc: "A project member commented more recently than the author", NeedsComments: true}
	Recv            = Tag{ID: "recv", Desc: "The author commented more recently than a project member", NeedsComments: true}
	RecvQ           = Tag{ID: "recv-q", Desc: "The author has asked a question since the last project member commented", NeedsComments: true}
	AuthorLast      = Tag{ID: "author-last", Desc: "The last commenter was the original author", NeedsComments: true}
	AssigneeUpdated = Tag{ID: "assignee-updated", Desc: "Issue has been updated by its assignee", NeedsComments: true}

	// Timeline-based tags
	XrefApproved            = Tag{ID: "pr-approved", Desc: "Last review was an approval", NeedsTimeline: true}
	XrefReviewedWithComment = Tag{ID: "pr-reviewed-with-comment", Desc: "Last review was a comment", NeedsTimeline: true}
	XrefChangesRequested    = Tag{ID: "pr-changes-requested", Desc: "Last review was a request for changes", NeedsTimeline: true}
	XrefNewCommits          = Tag{ID: "pr-new-commits", Desc: "PR has commits since the last review", NeedsTimeline: true}
	XrefPushedAfterApproval = Tag{ID: "pr-pushed-after-approval", Desc: "PR was pushed to after approval", NeedsTimeline: true}
	XrefUnreviewed          = Tag{ID: "pr-unreviewed", Desc: "PR has never been reviewed", NeedsTimeline: true}

	// Review-based tags
	Approved            = Tag{ID: "approved", Desc: "Last review was an approval", NeedsReviews: true}
	ReviewedWithComment = Tag{ID: "reviewed-with-comment", Desc: "Last review was a comment", NeedsReviews: true}
	ChangesRequested    = Tag{ID: "changes-requested", Desc: "Last review was a request for changes", NeedsReviews: true}
	NewCommits          = Tag{ID: "new-commits", Desc: "PR has commits since the last review", NeedsReviews: true}
	PushedAfterApproval = Tag{ID: "pushed-after-approval", Desc: "PR was pushed to after approval", NeedsReviews: true}
	Unreviewed          = Tag{ID: "unreviewed", Desc: "PR has never been reviewed", NeedsReviews: true}

	// Special
	None = Tag{ID: "none", Desc: "No tag matched", NeedsComments: true, NeedsReviews: true, NeedsTimeline: true}
)

Functions

This section is empty.

Types

type Tag

type Tag struct {
	ID   string `json:"id"`
	Desc string `json:"description"`

	NeedsComments bool
	NeedsReviews  bool
	NeedsTimeline bool
}

Tag is used for automatically labelling issues

func Dedup

func Dedup(tags []Tag) []Tag

func RoleLast

func RoleLast(role string) Tag

Jump to

Keyboard shortcuts

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