Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/review/issueManagingReviewListeners"

Index

Type aliases

BranchFilter

BranchFilter: function

Type declaration

    • (push: OnPushToAnyBranch.Push): boolean
    • Parameters

      • push: OnPushToAnyBranch.Push

      Returns boolean

CommentFilter

CommentFilter: function

Type declaration

    • (r: ReviewComment): boolean
    • Parameters

      • r: ReviewComment

      Returns boolean

CommentFormatter

CommentFormatter: function

Format the body of an issue based on this comment

Type declaration

    • (comment: ReviewComment, rr: RemoteRepoRef): string
    • Parameters

      • comment: ReviewComment
      • rr: RemoteRepoRef

      Returns string

CommentsFormatter

CommentsFormatter: function

Format the body of an issue based on these comments

Type declaration

    • (comments: ReviewComment[], rr: RemoteRepoRef): string
    • Parameters

      • comments: ReviewComment[]
      • rr: RemoteRepoRef

      Returns string

Functions

Const CategorySortingBodyFormatter

  • CategorySortingBodyFormatter(comments: ReviewComment[], rr: RemoteRepoRef): string

Const SubCategorySortingBodyFormatter

  • SubCategorySortingBodyFormatter(comments: ReviewComment[], rr: RemoteRepoRef): string

createTag

  • createTag(tag: string, branch: string): string

linkToSha

  • linkToSha(id: RemoteRepoRef): string

multiIssueManagingReviewListener

reviewCommentToMarkdown

  • reviewCommentToMarkdown(c: ReviewComment, grr?: GitHubRepoRef): string
  • Format review comment into a Markdown list item including trailing newline.

    Parameters

    • c: ReviewComment

      review comment to format

    • Optional grr: GitHubRepoRef

    Returns string

    Markdown as string with trailing newline

singleIssueManagingReviewListener

singleIssuePerCategoryManaging

  • singleIssuePerCategoryManaging(source: string, assign?: boolean, branchFilter?: BranchFilter): ReviewListenerRegistration

singleIssuePerCategoryManagingReviewListener

  • Take this subset of issues and maintain an issue for each category

    Parameters

    • source: string
    • Default value assignIssue: boolean = false
    • Default value branchFilter: BranchFilter = push => push.branch === push.repo.defaultBranch
    • Default value commentFilter: CommentFilter = () => true
    • Default value bodyFormatter: CommentsFormatter = SubCategorySortingBodyFormatter

    Returns ReviewListener

who

  • who(push: OnPushToAnyBranch.Push): string

Generated using TypeDoc