::nx::Object ::nx::Object __default_accessor __default_method_call_protection __object_configureparameter __resolve_method_path contains copy delete object method delete object property delete object variable destroy_on_cleanup info consts info info info lookup parameters info lookup slots info lookup syntax info lookup variables info object method args info object method body info object method callprotection info object method debug info object method definition info object method definitionhandle info object method deprecated info object method exists info object method handle info object method origin info object method parameters info object method registrationhandle info object method returns info object method submethods info object method syntax info object method type info object slots info object variables info variable definition info variable name info variable parameter move object alias object forward object method object property object variable private protected public qn require namespace require object method require private object method require protected object method require public object method serialize ::github::ActivityMonitor ::github::ActivityMonitor backfill_locked backfill_repo_history branch_enabled charge_request check_rate_limit discover discover_full discover_recent discovery_available fetch_new_events get get_state next_backfill_event_id observe_branches queue_backfill recent_since record_rate_limit set_state status summarize_push_event sync_from_github sync_locked sync_work ::github::ActivityMonitor->::nx::Object

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.