Skip to content

carnivore-rb/jackal-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jackal Github

Processes incoming payloads from github.

Usage

Configure incoming source using the :http_paths source:

...
"sources": {
  "input": {
    "type": "http_paths",
    "args": {
      "port": 9090,
      "path": "/github",
      "method": "post"
    }
  }
}
...

Configuration

The name provided for the payload defaults to "github". This can be overridden in the configuration using the names map, which allows names to be provided on a per-event basis:

...
"config": {
  "names": {
    "push": PUSH_NAME,
    "create": CREATE_NAME
  }
}
...

Payload

The payload generated will contain the contents fo the github payload, any query parameters provided, and the headers. It will also add in an event key to designate what type of event was received.

...
"data": {
  "github": {
    "event": "X_GITHUB_EVENT",
    "query": QUERY_PARAMS,
    "headers": HTTP_HEADERS,
    GITHUB_PAYLOAD
  }
}
...

Formatters

  • Jackal::Github::Formatter::CodeFetcher Formats payload for code fetcher

Info

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages