Home Reference Source Test Repository
import GitHubWikiNotifier from 'github-wiki-notifier/src/index.js'
public class | source

GitHubWikiNotifier

Notify info of GitHub Wiki by specific notifier

Constructor Summary

Public Constructor
public

constructor(notifierName: string)

Constructor

Member Summary

Public Members
public

Method Summary

Public Methods
public

notify to service

public

notify from payload

public

notifyFromRepository(repository: string, opts: Object): Promise

notify from repository

Public Constructors

public constructor(notifierName: string) source

Constructor

Params:

NameTypeAttributeDescription
notifierName string

notifier name

Public Members

public notifier: * source

Public Methods

public notify(opts: Object): Promise source

notify to service

Params:

NameTypeAttributeDescription
opts Object

options

opts.payload Object
  • optional

GitHub Webhook payload

opts.repository string
  • optional

path to repository directory

opts.cloneDir string
  • optional

path to directory for cloning remote repository

opts.maxLength number
  • optional

max length

opts.dryRun boolean
  • optional

a flag for disable sending

Return:

Promise

public notifyFromPayload(payload: Object, opts: Object): Promise source

notify from payload

Params:

NameTypeAttributeDescription
payload Object

GitHub Webhook payload

opts Object

options

opts.cloneDir string
  • optional

path to directory for cloning remote repository

opts.maxLength number
  • optional

max length

opts.dryRun boolean
  • optional

a flag for disable sending

Return:

Promise

public notifyFromRepository(repository: string, opts: Object): Promise source

notify from repository

Params:

NameTypeAttributeDescription
repository string

path to repository directory

opts Object

options

opts.maxLength number
  • optional

max length

opts.dryRun boolean
  • optional

a flag for disable sending

Return:

Promise