gitea/src/463ce0a3-65e0-4a08-8bd2-e3b...
Robot 71bd39cb1e
update 2023-10-10 10:16:07
2023-10-10 11:39:23 +02:00
..
README.md update 2023-10-10 10:16:07 2023-10-10 11:39:23 +02:00
code.php first commit 2023-04-15 17:08:07 +02:00
code.power first commit 2023-04-15 17:08:07 +02:00
settings.json first commit 2023-04-15 17:08:07 +02:00

README.md

██████╗  ██████╗ ██╗    ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗
██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║
╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝

class Hooks (Details)

namespace: VDM\Joomla\Gitea\Repository extends: Api

@startuml
class Hooks  #Gold {
  + list(string $owner, string $repo, ...) : ?array
  + create(string $owner, string $repo, ...) : ?object
  + get(string $owner, string $repo, ...) : ?object
  + edit(string $owner, string $repo, ...) : ?object
  + test(string $owner, string $repo, ...) : string
}

note right of Hooks::list
  List the hooks in a repository.

  since: 3.2.0
  return: ?array
  
  arguments:
    string $owner
    string $repo
    int $page = 1
    int $limit = 10
end note

note right of Hooks::create
  Create a hook in a repository.

  since: 3.2.0
  return: ?object
  
  arguments:
    string $owner
    string $repo
    string $type
    array $config
    bool $active = false
    ?array $events = null
    string $branchFilter = ''
end note

note right of Hooks::get
  Get a hook.

  since: 3.2.0
  return: ?object
  
  arguments:
    string $owner
    string $repo
    int $hookId
end note

note right of Hooks::edit
  Edit a hook in a repository.

  since: 3.2.0
  return: ?object
  
  arguments:
    string $owner
    string $repo
    int $id
    array $config
    array $events
    bool $active
end note

note right of Hooks::test
  Test a push webhook.

  since: 3.2.0
  return: string
  
  arguments:
    string $owner
    string $repo
    int $hookId
    string $ref = ''
end note
 
@enduml

     ██╗ ██████╗██████╗
     ██║██╔════╝██╔══██╗
     ██║██║     ██████╔╝
██   ██║██║     ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
 ╚════╝  ╚═════╝╚═════╝

Build with Joomla Component Builder