Class ::github::ActivityMonitor

::github::ActivityMonitor[i] create ... \
           [ -allowed_branches (default "main oacs-5-10") ] \
           [ -api_base (default "https://api.github.com") ] \
           [ -api_token api_token ] \
           [ -backfill_pages_per_run (default "2") ] \
           [ -background_requests_per_run (default "2") ] \
           [ -discovery_requests_per_run (default "20") ] \
           [ -fast_repository_checks_per_run (default "8") ] \
           [ -full_reconcile_interval (default "86400") ] \
           [ -hot_repository_days (default "2") ] \
           [ -max_requests_per_run (default "200") ] \
           [ -max_seconds_per_run (default "120") ] \
           [ -organization (default "OpenACS") ] \
           [ -recent_days (default "180") ] \
           [ -reconcile_interval (default "3600") ] \
           [ -repository_inventory_interval (default "86400") ] \
           [ -repository_metadata_pages (default "4") ]

Defined in packages/xowiki/tcl/github-activity-monitor-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]

Methods (to be applied on instances)

  • backfill_repo_history (scripted, public)

     <instance of github::ActivityMonitor[i]> backfill_repo_history args \
        [ args... ]
    Parameters:
    args (required)

    Testcases:
    No testcase defined.
  • get (scripted, public)

     <instance of github::ActivityMonitor[i]> get path [ query_args ]

    Issue an API call on GitHub for the configured organization.

    Parameters:
    path (required)
    query_args (optional)

    Testcases:
    No testcase defined.
  • status (scripted, public)

     <instance of github::ActivityMonitor[i]> status

    Testcases:
    No testcase defined.
  • summarize_push_event (scripted, public)

     <instance of github::ActivityMonitor[i]> summarize_push_event ev

    Fetch commit details and build a summary for PushEvents.

    Parameters:
    ev (required)
    Returns:
    dict with fields of push event

    Testcases:
    No testcase defined.
  • sync_from_github (scripted, public)

     <instance of github::ActivityMonitor[i]> sync_from_github

    An xact-scoped lock stays on the transaction's checked-out DB connection, is shared across threads/processes, and is released automatically on commit, rollback or connection loss.

    Testcases:
    No testcase defined.