Skip to content

lineageos-infra/gerrit-stream-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run arbitrary python code from gerrit stream events

usage: ssh review gerrit stream-events | python main.py

config includes an event type, filter, and a list of callable python functions that will be called if the filter matches. Functions will always be called with the raw event dict as the first argument to the function.

- name: www-buildkite
  type: ref-updated
  filter:
    refUpdate.project: LineageOS/android_packages_apps_DeskClock
  callables:
    test.TestFunc:
      name: www-preview

Example test.py:

def TestFunc(event, name) -> None:
    print(event, name)

About

call python functions based on contents of gerrit events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published