Package 'gitear'

Title: Client to the 'gitea' API
Description: 'Gitea' is a community managed, lightweight code hosting solution were projects and their respective git repositories can be managed <https://gitea.io>. This package gives an interface to the 'Gitea' API to access and manage repositories, issues and organizations directly in R.
Authors: ixpantia, SRL [aut], Frans van Dunné [cre, aut], Francisco Sácida [aut], Ronny Hernández Mora [aut], Patrick Santamaría Guzmán [ctb]
Maintainer: Frans van Dunné <[email protected]>
License: GPL-3
Version: 1.0.1
Built: 2024-11-23 02:46:56 UTC
Source: https://github.com/ixpantia/gitear

Help Index


Add tracked time to an issue

Description

Add a tracked time to an issue

Usage

add_tracked_time_issue(base_url, api_key, owner, repo, id_issue, time)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

id_issue

Index of the issue to add tracked time to

time

The time in seconds to add to the issue

Examples

## Not run: 
add_tracked_time_issue(base_url = "https://example.gitea.service.com",
                       api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                       owner = "company",
                       repo = "test_repo",
                       id_issue = 2,
                       time = 15)

## End(Not run)

Add a comment to an issue

Description

Add a comment to an issue in a gitea server

Usage

create_comment_issue(base_url, api_key, owner, repo, id_issue, body)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

id_issue

Index of the issue to create a comment

body

The text that is added as a comment to the issue

Examples

## Not run: 
create_comment_issue(base_url = "https://example.gitea.service.com",
                     api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                     owner = "company",
                     repo = "test_repo",
                     id_issue = 2,
                     body = "my first comment on this issue")

## End(Not run)

Create a new issue

Description

Create an new issue in a specific repository

Usage

create_issue(base_url, api_key, owner, repo, title, body)

Arguments

base_url

URL prefix for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

title

The title of the issue

body

The body text of the issue

Value

list with results of the new issue

Examples

## Not run: 
create_issue(base_url = "https://example.gitea.service.com",
             api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
             owner = "company",
             repo = "test_repo",
             title = "Perform clean code task",
             body = "Perform in an orderly manner and document steps")

## End(Not run)

Edit a comment

Description

Edit a comment in a specific issue

Usage

edit_comment(base_url, api_key, owner, repo, id_comment, body)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

id_comment

Id of the comment to edit

body

The text to replace the old comment

Examples

## Not run: 
edit_comment(base_url = "https://example.gitea.service.com",
             api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
             owner = "company",
             repo = "test_repo",
             id_comment = 612,
             body = "This is the correction of my comment")

## End(Not run)

Edit an issue

Description

Edit an issue

Usage

edit_issue(base_url, api_key, owner, repo, id_issue, title, body, state)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repo

repo

The name of the repo

id_issue

Index of the issue to edit

title

The new issue title text

body

The new issue body text

state

The issue state

Examples

## Not run: 
edit_issue(base_url = "https://example.gitea.service.com",
           api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
           owner = "company",
           repo = "test_repo",
           id_issue = 3,
           title = "My new title for this issue",
           body = "My new comment starts on this issue",
           state = "open")

## End(Not run)

Returns organizations for an administrator user

Description

Returns the list of organizations for a user with an administrator role

Usage

get_admin_organizations(base_url, api_key)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

Details

This function works only in the case that the 'api_key' is associated with a user with administrator role

Examples

## Not run: 
get_admin_organizations(base_url = "https://example.gitea.service.com",
                        api_key = "b6026f861fd41a94c3389d54293de9d04bde6f7c")

## End(Not run)

Returns an organization

Description

Get information from an organization

Usage

get_an_organization(base_url, api_key, org)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

org

Name of the organization

Examples

## Not run: 
get_an_organization(base_url = "https://example.gitea.service.com",
                    api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                    org = "company")

## End(Not run)

Returns the branches of a repository

Description

Returns branches in a specific repository

Usage

get_branches(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_branches(base_url = "https://example.gitea.service.com",
             api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
             owner = "company",
             repo = "test_repo")

## End(Not run)

Returns repository commits

Description

Returns the repository commits of a Gitea application

Usage

get_commits(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_commits(base_url = "https://example.gitea.service.com",
            api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
            owner = "company",
            repo = "test_repo")

## End(Not run)

Returns the forks of a repository

Description

Returns forks in a specific repository

Usage

get_forks(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_forks(base_url = "https://example.gitea.service.com",
          api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
          owner = "company",
          repo = "test_repo")

## End(Not run)

Returns open issues from an specific repository

Description

Returns open issues in an specific repository

Usage

get_issues(base_url, api_key, owner, repo, full_info = FALSE)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

full_info

TRUE or FALSE value. If FALSE this will select specific columns from the issues data

Examples

## Not run: 
get_issues(base_url = "https://example.gitea.service.com",
           api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
           owner = "company",
           repo = "test_repo",
           full_info = FALSE)

## End(Not run)

Returns the repository issues in closed state

Description

Returns the issues in closed state of a repository

Usage

get_issues_closed_state(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_issues_closed_state(base_url = "https://example.gitea.service.com",
                        api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                        owner = "company",
                        repo = "test_repo")

## End(Not run)

Returns the repository issues in open state

Description

Returns the issues in open state of a repository

Usage

get_issues_open_state(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_issues_open_state (base_url = "https://example.gitea.service.com",
                       api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                       owner = "company",
                       repo = "test_repo")

## End(Not run)

Returns an issue's labels

Description

Returns an issue's labels

Usage

get_label_issue(base_url, api_key, owner, repo, id_issue)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

id_issue

Index of the issue

Examples

## Not run: 
get_label_issue(base_url = "https://example.gitea.service.com",
                api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                owner = "company",
                repo = "test_repo",
                id_issue = 3)

## End(Not run)

Returns all comments on an issue

Description

Returns a list of all comments on an issue

Usage

get_list_comments_issue(base_url, api_key, owner, repo, id_issue)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

id_issue

Index of the issue to get comments

Examples

## Not run: 
get_list_comments_issue(base_url = "https://example.gitea.service.com",
                        api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                        owner = "company",
                        repo = "test_repo",
                        id_issue = 3)

## End(Not run)

Returns all comments in a repository

Description

Returns a list of all comments in a repository

Usage

get_list_comments_repository(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_list_comments_repository(base_url = "https://example.gitea.service.com",
                             api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                             owner = "company",
                             repo = "test_repo")

## End(Not run)

Returns organization's members

Description

List an organization's members

Usage

get_list_org_members(base_url, api_key, org)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

org

Name of the organization

Examples

## Not run: 
get_list_org_members(base_url = "https://example.gitea.service.com",
                     api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                     org = "company")

## End(Not run)

Returns organization's teams

Description

Get organization's teams

Usage

get_list_org_teams(base_url, api_key, org)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

org

Name of the organization

Examples

## Not run: 
get_list_org_teams(base_url = "https://example.gitea.service.com",
                   api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                   org = "company")

## End(Not run)

Returns organization's repositories

Description

Get a list of an organization's repositories

Usage

get_list_repos_org(base_url, api_key, org)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

org

Name of the organization

Examples

## Not run: 
get_list_repos_org(base_url = "https://example.gitea.service.com",
                    api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                    org = "company")

## End(Not run)

Returns users of a gitea server

Description

User list for a gitea server

Usage

get_list_users(base_url, api_key)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

Examples

## Not run: 
get_list_users(base_url = "https://example.gitea.service.com",
               api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288")

## End(Not run)

Returns open milestones of a repository

Description

Returns open milestones in a specific repository

Usage

get_milestones(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_milestones(base_url = "https://example.gitea.service.com",
          api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
          owner = "company",
          repo = "test_repo")

## End(Not run)

Returns a hook

Description

Get a hook information of a organizations

Usage

get_org_hook(base_url, api_key, org, id_hook)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

org

Name of the organization

id_hook

Id of the hook to get information

Examples

## Not run: 
get_org_hook(base_url = "https://example.gitea.service.com",
             api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
             org = "company",
             id_hook = 2)

## End(Not run)

Returns organization's webhooks

Description

Returns a list of organization's webhooks

Usage

get_org_list_hooks(base_url, api_key, org)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

org

Name of the organization

Examples

## Not run: 
get_org_list_hooks(base_url = "https://example.gitea.service.com",
             api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
             org = "company")

## End(Not run)

Returns organizations of the user

Description

Returns list the current user's organizations

Usage

get_organizations(base_url, api_key)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

Examples

## Not run: 
get_organizations(base_url = "https://example.gitea.service.com",
                  api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288")

## End(Not run)

Returns pull requests of a repository

Description

Returns open and closed pull requests in a specific repository

Usage

get_pull_requests(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_pull_requests(base_url = "https://example.gitea.service.com",
                  api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                  owner = "company",
                  repo = "test_repo")

## End(Not run)

Returns releases of a repository

Description

Returns releasess in a specific repository

Usage

get_releases(base_url, api_key, owner, repo)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

Examples

## Not run: 
get_releases(base_url = "https://example.gitea.service.com",
             api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
             owner = "company",
             repo = "test_repo")

## End(Not run)

Returns repositories of a gitea service

Description

Returns the repositories of the Gitea application

Usage

get_repositories(base_url, api_key)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

Examples

## Not run: 
get_repositories(base_url = "https://example.gitea.service.com",
                 api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288")

## End(Not run)

Returns issue's tracked times

Description

Returns a data frame of an issue's tracked times

Usage

get_times_issue(base_url, api_key, owner, repo, id_issue)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

owner

The owner of the repository

repo

The name of the repository

id_issue

Index of the issue

Examples

## Not run: 
get_times_issue(base_url = "https://example.gitea.service.com",
                api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288",
                owner = "company",
                repo = "test_repo",
                id_issue = 3)

## End(Not run)

Returns gitea service version

Description

Returns the version of the Gitea application

Usage

get_version(base_url, api_key)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

Examples

## Not run: 
get_version(base_url = "https://example.gitea.service.com",
            api_key = "ccaf5c9a22e854856d0c5b1b96c81e851bafb288")

## End(Not run)

gitear package

Description

'Gitea' is a community managed, lightweight code hosting solution were projects and their respective git repositories can be managed access and manage repositories, issues and organizations directly in R.