Types
GiteaCreateIssue = object assignees*: Option[seq[GiteaUser]] body*: Option[string] closed*: bool `due_date`*: Option[string] labels*: Option[seq[GiteaLabel]] milestone*: Option[int] `ref`*: Option[string] title*: string
GiteaExternalTracker = object external_tracker_format*: string external_tracker_style*: string external_tracker_url*: string
GiteaExternalWiki = object external_wiki_url*: string
GiteaInternalTracker = object allow_only_contributors_to_track_time*: bool enable_issue_dependencies*: bool enable_time_tracker*: bool
GiteaIssue = object id*: int url*: string `html_url`*: string number*: int user*: GiteaUser `original_author`*: string `original_author_id`*: int title*: string body*: string `ref`*: string labels*: seq[GiteaLabel] milestone*: string assignee*: Option[GiteaUser] assignees*: Option[seq[GiteaUser]] state*: string `is_locked`*: bool comments*: int `created_at`*: string `updated_at`*: string `closed_at`*: string `due_date`*: string `pull_request`*: string repository*: GiteaSimpleRepository
GiteaLabel = object id*: int name*: string color*: string description*: string url*: string
GiteaPermission = object admin*: bool pull*: bool push*: bool
GiteaRepository = object `allow_merge_commits *`: bool `allow_rebase *`: bool `allow_rebase_explicit *`: bool `allow_squash_merge *`: bool archived*: bool avatar_url*: string clone_url*: string created_at*: string default_branch*: string default_merge_style*: string description*: string empty*: bool external_tracker*: GiteaExternalTracker external_wiki*: GiteaExternalWiki fork*: bool forks_count*: int full_name*: string has_issues*: bool has_projects*: bool has_pull_requests*: bool has_wiki*: bool html_url*: string id*: int ignore_whitespace_conflicts*: bool internal*: bool internal_tracker*: GiteaInternalTracker mirror*: bool mirror_interval*: string name*: string open_issues_count*: int open_pr_counter*: int original_url*: string owner*: GiteaUser permissions*: GiteaPermission private*: bool release_counter*: int size*: int ssh_url*: string stars_count*: int `template`*: bool updated_at*: string watchers_count*: int website*: string
GiteaSimpleRepository = object id*: int name*: string owner*: string `full_name`*: string
GiteaUser = object id*: int login*: string `full_name`*: string email*: string `avatar_url`*: string language*: string `is_admin`*: bool `last_login`*: string created*: string restricted*: bool active*: bool `prohibit_login`*: bool location*: string website*: string description*: string visibility*: string `followers_count`*: int `following_count`*: int `starred_repos_count`*: int username*: string
Procs
proc camel2snake(s: string): string {....raises: [], tags: [], forbids: [].}
- CanBeFun => can_be_fun https://forum.nim-lang.org/t/1701
proc createIssue(gitea: Gitea; issue: GiteaCreateIssue; repo: string): Response {....raises: [ ValueError, HttpRequestError, LibraryError, Exception, OSError, SslError, IOError, TimeoutError, ProtocolError, KeyError], tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc dumpHook(s: var string; v: GiteaCreateIssue) {....raises: [], tags: [], forbids: [].}
proc getAllIssues(gitea: Gitea; state: string): seq[GiteaIssue] {....raises: [ ValueError, HttpRequestError, LibraryError, Exception, OSError, SslError, IOError, TimeoutError, ProtocolError, KeyError, JsonError], tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc getUserRepos(gitea: Gitea): seq[GiteaRepository] {....raises: [ValueError, HttpRequestError, LibraryError, Exception, OSError, SslError, IOError, TimeoutError, ProtocolError, KeyError, JsonError], tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc newGitea(token: string; owner: string): Gitea {. ...raises: [LibraryError, SslError, Exception, IOError], tags: [RootEffect, ReadDirEffect, ReadEnvEffect], forbids: [].}
proc newGitea(token: string; owner: string; host: string): Gitea {. ...raises: [LibraryError, SslError, Exception, IOError], tags: [RootEffect, ReadDirEffect, ReadEnvEffect], forbids: [].}