Skip to main content
Version: v0.21

Gitee(WIP)

Summary

This plugin collects Gitee data through Gitee Openapi.

Supported Versions

Will be available for Gitee Cloud. Check this doc for more details.

Configuration

In order to fully use this plugin, you need to get the token on the Gitee website.

A connection should be created before you can collect any data. Currently, this plugin supports creating connection by requesting the connections API:

curl 'http://localhost:8080/plugins/gitee/connections' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee",
"endpoint": "https://gitee.com/api/v5/",
"proxy": "http://localhost:1080",
"rateLimitPerHour": 20000,
"token": "<YOUR_TOKEN>"
}
'

Collect data from Gitee

In order to collect data, you have to compose a JSON looks like following one, and send it by selecting Advanced Mode on Create Pipeline Run page:

  1. Configure-UI Mode
[
[
{
"plugin": "gitee",
"options": {
"connectionId": 1,
"repo": "lake",
"owner": "merico-dev"
}
}
]
]

and if you want to perform certain subtasks.

[
[
{
"plugin": "gitee",
"subtasks": ["collectXXX", "extractXXX", "convertXXX"],
"options": {
"connectionId": 1,
"repo": "lake",
"owner": "merico-dev"
}
}
]
]
  1. Curl Mode: You can also trigger data collection by making a POST request to /pipelines.
curl 'http://localhost:8080/pipelines' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee 20211126",
"plan": [[{
"plugin": "gitee",
"options": {
"connectionId": 1,
"repo": "lake",
"owner": "merico-dev"
}
}]]
}
'

and if you want to perform certain subtasks.

curl 'http://localhost:8080/pipelines' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "gitee 20211126",
"plan": [[{
"plugin": "gitee",
"subtasks": ["collectXXX", "extractXXX", "convertXXX"],
"options": {
"connectionId": 1,
"repo": "lake",
"owner": "merico-dev"
}
}]]
}
'