1
0
Fork 0

Adding upstream version 3.10.8.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-18 09:37:23 +02:00
parent 37e9b6d587
commit 03bfe4079e
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
356 changed files with 28857 additions and 0 deletions

42
f3/schemas/ci.json Normal file
View file

@ -0,0 +1,42 @@
{
"title": "CI",
"description": "The Continuous Integration supported by the project. The configuration files are found in the repository itself, under a path that depends on the CI system.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "The type of continuous integration",
"enum": [
"Apache Gump",
"Azure DevOps Server",
"Bamboo",
"Buddy",
"Buildbot",
"BuildMaster",
"CircleCI",
"Drone",
"Forgejo Actions",
"Gitea Actions",
"GitHub Actions",
"GitLab",
"GoCD",
"Jenkins",
"OpenMake",
"Semaphore",
"TeamCity",
"tekton",
"Travis CI",
"Vexor",
"Woodpecker CI"
]
}
},
"required": [
"index"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/ci.json",
"$$target": "ci.json"
}

49
f3/schemas/comment.json Normal file
View file

@ -0,0 +1,49 @@
{
"title": "Comment",
"description": "Comment associated to a commentable object (i.e. issue, review, etc.). Forge users add a comment to an object to create a non-threaded conversation.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the comment.",
"type": "string"
},
"poster_id": {
"description": "Unique identifier of the comment author.",
"type": "string"
},
"created": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"content": {
"description": "Markdown content of the comment.",
"type": "string"
},
"reactions": {
"description": "List of reactions.",
"type": "array",
"items": {
"$ref": "reaction.json"
}
}
},
"required": [
"index",
"poster_id",
"created",
"updated",
"content"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/comment.json",
"$$target": "comment.json"
}

22
f3/schemas/index.rst Normal file
View file

@ -0,0 +1,22 @@
.. toctree::
:maxdepth: 2
.. jsonschema:: ci.json
.. jsonschema:: comment.json
.. jsonschema:: issue.json
.. jsonschema:: label.json
.. jsonschema:: milestone.json
.. jsonschema:: object.json
.. jsonschema:: organization.json
.. jsonschema:: project.json
.. jsonschema:: pullrequest.json
.. jsonschema:: pullrequestbranch.json
.. jsonschema:: reaction.json
.. jsonschema:: release.json
.. jsonschema:: releaseasset.json
.. jsonschema:: repository.json
.. jsonschema:: review.json
.. jsonschema:: reviewcomment.json
.. jsonschema:: topic.json
.. jsonschema:: user.json

96
f3/schemas/issue.json Normal file
View file

@ -0,0 +1,96 @@
{
"title": "Issue",
"description": "An issue within an issue tracking system, relative to a project.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the issue.",
"type": "string"
},
"poster_id": {
"description": "Unique identifier of the user who authored the issue.",
"type": "string"
},
"title": {
"description": "Short description displayed as the title.",
"type": "string"
},
"content": {
"description": "Description of the issue.",
"type": "string"
},
"milestone": {
"description": "Unique identifier of the milestone.",
"type": "string"
},
"state": {
"description": "An issue is 'closed' when it is resolved, 'open' otherwise. Issues that do not relate to a topic that needs to be resolved, such as an open conversation, may never be closed.",
"enum": [
"closed",
"open"
]
},
"is_locked": {
"description": "A locked issue can only be modified by privileged users. It is commonly used for moderation purposes when comments associated with the issue are too heated.",
"type": "boolean"
},
"created": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"closed": {
"description": "The last time 'state' changed to 'closed'.",
"type": "string",
"format": "date-time"
},
"due": {
"description": "Due date.",
"type": "string",
"format": "date"
},
"labels": {
"description": "List of label unique identifiers.",
"type": "array",
"items": {
"type": "string"
}
},
"reactions": {
"description": "List of reactions.",
"type": "array",
"items": {
"$ref": "reaction.json"
}
},
"assignees": {
"description": "List of assignees.",
"type": "array",
"items": {
"description": "Name of a user assigned to the issue.",
"type": "string"
}
}
},
"required": [
"index",
"poster_id",
"title",
"content",
"state",
"is_locked",
"created",
"updated"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/issue.json",
"$$target": "issue.json"
}

37
f3/schemas/label.json Normal file
View file

@ -0,0 +1,37 @@
{
"title": "Label",
"description": "Label associated to an issue.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier.",
"type": "string"
},
"name": {
"description": "Name of the label, unique within the repository.",
"type": "string"
},
"color": {
"description": "Color code of the label in RGB notation 'xxx' or 'xxxxxx'.",
"type": "string"
},
"description": {
"description": "Long description.",
"type": "string"
},
"exclusive": {
"description": "There can only be one label with the prefix found before the first slash (/).",
"type": "boolean"
}
},
"required": [
"index",
"name"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/label.json",
"$$target": "label.json"
}

62
f3/schemas/milestone.json Normal file
View file

@ -0,0 +1,62 @@
{
"title": "Milestone",
"description": "Milestone relative to a project, for the purpose of grouping objects due to a given date (issues, etc.).",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier.",
"type": "string"
},
"title": {
"description": "Short description.",
"type": "string"
},
"description": {
"description": "Long description.",
"type": "string"
},
"deadline": {
"description": "Deadline after which the milestone is overdue.",
"type": "string",
"format": "date-time"
},
"created": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"closed": {
"description": "The last time 'state' changed to 'closed'.",
"type": "string",
"format": "date-time"
},
"state": {
"description": "A 'closed' milestone will not see any activity in the future, otherwise it is 'open'.",
"enum": [
"closed",
"open"
]
}
},
"required": [
"index",
"title",
"description",
"deadline",
"created",
"updated",
"closed",
"state"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/milestone.json",
"$$target": "milestone.json"
}

35
f3/schemas/object.json Normal file
View file

@ -0,0 +1,35 @@
{
"title": "Object",
"description": "Meta information and reference to an opaque content such as an image. The unique identifier is the SHA-256 of the content of the object.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier.",
"type": "string"
},
"mime": {
"description": "Mime type of the object.",
"type": "string"
},
"name": {
"description": "Human readable file name.",
"type": "string"
},
"description": {
"description": "Description.",
"type": "string"
}
},
"required": [
"index",
"mime",
"name",
"description"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/object.json",
"$$target": "object.json"
}

View file

@ -0,0 +1,29 @@
{
"title": "Organization",
"description": "A forge organization.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the organization.",
"type": "string"
},
"name": {
"description": "Unique name of the organization.",
"type": "string"
},
"full_name": {
"description": "Readable name of the organization.",
"type": "string"
}
},
"required": [
"index",
"name"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/organization.json",
"$$target": "organization.json"
}

117
f3/schemas/project.json Normal file
View file

@ -0,0 +1,117 @@
{
"title": "Project",
"description": "A software project contains a code repository, an issue tracker, etc.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the project.",
"type": "string"
},
"name": {
"description": "Name of the project, relative to the owner.",
"type": "string"
},
"is_private": {
"description": "True if the visibility of the project is not public.",
"type": "boolean"
},
"is_mirror": {
"description": "True if it is a mirror of a project residing on another forge.",
"type": "boolean"
},
"description": {
"description": "Long description of the project.",
"type": "string"
},
"default_branch": {
"description": "Name of the default branch in the code repository.",
"type": "string"
},
"repositories": {
"type": "array",
"items": {
"$ref": "repository.json"
}
},
"forked": {
"description": "Unique identifier of the project from which this one was forked.",
"type": "string"
},
"ci": {
"type": "array",
"items": {
"$ref": "ci.json"
}
},
"archived": {
"description": "True if archived and read only.",
"type": "boolean"
},
"archived_at": {
"description": "Time of archival.",
"type": "string",
"format": "date-time"
},
"created": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"url": {
"description": "URL associated with the project, for instance the project home page.",
"type": "string"
},
"stars": {
"description": "Number of stars.",
"type": "number"
},
"has_ci": {
"description": "True if CI is enabled.",
"type": "boolean"
},
"has_issues": {
"description": "True if the issue tracker is enabled.",
"type": "boolean"
},
"has_packages": {
"description": "True if the software packages are enabled.",
"type": "boolean"
},
"has_kanban": {
"description": "True if the kanban is enabled.",
"type": "boolean"
},
"has_pull_requests": {
"description": "True if pull requests are enabled.",
"type": "boolean"
},
"has_releases": {
"description": "True if releases are enabled.",
"type": "boolean"
},
"has_wiki": {
"description": "True if the wiki is enabled.",
"type": "boolean"
}
},
"required": [
"index",
"name",
"is_private",
"is_mirror",
"description",
"default_branch",
"repositories"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/project.json",
"$$target": "project.json"
}

134
f3/schemas/pullrequest.json Normal file
View file

@ -0,0 +1,134 @@
{
"title": "Pull request",
"description": "A pull requests to merge a commit from a 'head' that may be another branch in the same repository or a branch in a forked repository.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the pull request.",
"type": "string"
},
"poster_id": {
"description": "Unique identifier of the user who authored the pull request.",
"type": "string"
},
"title": {
"description": "Short description displayed as the title.",
"type": "string"
},
"content": {
"description": "Long description.",
"type": "string"
},
"milestone": {
"description": "Unique identifier of the milestone.",
"type": "string"
},
"state": {
"description": "A 'closed' pull request will not see any activity in the future, otherwise it is 'open'.",
"enum": [
"closed",
"open"
]
},
"is_locked": {
"description": "A locked pull request can only be modified by privileged users.",
"type": "boolean"
},
"created": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"closed": {
"description": "The last time 'state' changed to 'closed'.",
"type": "string",
"format": "date-time"
},
"labels": {
"description": "List of labels unique identifiers.",
"type": "array",
"items": {
"type": "string"
}
},
"reactions": {
"description": "List of reactions.",
"type": "array",
"items": {
"$ref": "reaction.json"
}
},
"assignees": {
"description": "List of assignees.",
"type": "array",
"items": {
"description": "Name of a user assigned to the issue.",
"type": "string"
}
},
"merged": {
"description": "True if the pull request was merged.",
"type": "boolean"
},
"merged_time": {
"description": "The time when the pull request was merged.",
"type": "string",
"format": "date-time"
},
"merged_commit_sha": {
"description": "The SHA of the merge commit.",
"type": "string"
},
"head": {
"description": "The changes proposed in the pull request.",
"type": "object",
"items": {
"$ref": "pullrequestbranch.json"
}
},
"base": {
"description": "The branch where the pull request changes in the head are to be merged.",
"type": "object",
"items": {
"$ref": "pullrequestbranch.json"
}
},
"merged_by": {
"description": "Unique identifier of the user who merged the pull request.",
"type": "string"
},
"due": {
"description": "Due date.",
"type": "string",
"format": "date"
},
"allow_edit": {
"description": "True when the author of the pull request allows pushing new commits to its branch.",
"type": "boolean"
}
},
"required": [
"index",
"poster_id",
"title",
"content",
"state",
"is_locked",
"created",
"updated",
"merged",
"head",
"base"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/pullrequest.json",
"$$target": "pullrequest.json"
}

View file

@ -0,0 +1,30 @@
{
"title": "Pull request reference to a commit",
"description": "The location of a commit and the repository where it can be found.",
"type": "object",
"additionalProperties": false,
"properties": {
"ref": {
"description": "Repository reference of the commit (branch, tag, etc.).",
"type": "string"
},
"sha": {
"description": "SHA of the commit.",
"type": "string"
},
"repository": {
"description": "Unique identifier of the repository.",
"type": "string"
}
},
"required": [
"ref",
"sha",
"repository"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/pullrequestbranch.json",
"$$target": "pullrequestbranch.json"
}

30
f3/schemas/reaction.json Normal file
View file

@ -0,0 +1,30 @@
{
"title": "Reaction",
"description": "Reaction associated to a comment that is displayed as a single emoji.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the reaction.",
"type": "string"
},
"user_id": {
"description": "Unique identifier of the user who authored the reaction.",
"type": "string"
},
"content": {
"description": "Representation of the reaction. The rendering of the reaction depends on the forge displaying it.",
"type": "string"
}
},
"required": [
"index",
"user_id",
"content"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/reaction.json",
"$$target": "reaction.json"
}

60
f3/schemas/release.json Normal file
View file

@ -0,0 +1,60 @@
{
"title": "Release",
"description": "A release is associated with a tag in a repository and contains of a set of files (release assets).",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the release.",
"type": "string"
},
"tag_name": {
"description": "Tag name of the release.",
"type": "string"
},
"target_commitish": {
"description": "Specifies the commitish value that determines where the tag is created from. Can be any branch or commit SHA. Unused if the tag already exists.",
"type": "string"
},
"name": {
"description": "The name of the release.",
"type": "string"
},
"body": {
"description": "Text describing the contents of the release, usually the release notes.",
"type": "string"
},
"draft": {
"description": "True if the release is a draft.",
"type": "boolean"
},
"prerelease": {
"description": "True if the release is a pre-release.",
"type": "boolean"
},
"publisher_id": {
"description": "Unique identifier of the user who authored the release.",
"type": "string"
},
"created": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
}
},
"required": [
"index",
"tag_name",
"name",
"body",
"draft",
"prerelease",
"publisher_id",
"created"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/release.json",
"$$target": "release.json"
}

View file

@ -0,0 +1,61 @@
{
"title": "Release asset",
"description": "A file associated with a release. The content of the file is opaque.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the release asset.",
"type": "string"
},
"name": {
"description": "The name of the release asset.",
"type": "string"
},
"content_type": {
"description": "The content type of the release asset (application/zip, etc.).",
"type": "string"
},
"size": {
"description": "Size in bytes of the release asset.",
"type": "number"
},
"download_count": {
"description": "The number of times the release asset was downloaded.",
"type": "number"
},
"download_url": {
"description": "The URL from which the release asset can be downloaded.",
"type": "string"
},
"created": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"sha256": {
"description": "SHA256 of the cnotent of the asset.",
"type": "string"
}
},
"required": [
"index",
"name",
"content_type",
"size",
"download_count",
"created",
"updated",
"sha256"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/releaseasset.json",
"$$target": "releaseasset.json"
}

View file

@ -0,0 +1,31 @@
{
"title": "Repository",
"description": "VCS repository relative to a project. The actual content of the repository is found in the sibling 'repository' directory.",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "Unique name of the repository relative to the project (e.g. vcs or vcs.wiki).",
"type": "string"
},
"vcs": {
"description": "The type of the repository, defaults to 'git'",
"enum": [
"git",
"hg",
"bazaar",
"darcs",
"fossil",
"svn"
]
}
},
"required": [
"name"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/repository.json",
"$$target": "repository.json"
}

63
f3/schemas/review.json Normal file
View file

@ -0,0 +1,63 @@
{
"title": "Review",
"description": "A set of review comments on a pull/merge request.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the review.",
"type": "string"
},
"reviewer_id": {
"description": "Unique identifier of review author.",
"type": "string"
},
"official": {
"description": "True if a positive review counts to reach the required threshold.",
"type": "boolean"
},
"commit_id": {
"description": "SHA of the commit targeted by the review.",
"type": "string"
},
"content": {
"description": "Cover message of the review.",
"type": "string"
},
"created_at": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"state": {
"description": "State of the review.",
"enum": [
"PENDING",
"APPROVED",
"CHANGES_REQUESTED",
"COMMENTED"
]
},
"dissmissed": {
"description": "True if the review was dismissed.",
"type": "boolean"
},
"stale": {
"description": "True if the review is stale because the pull request content changed after it was published.",
"type": "boolean"
}
},
"required": [
"index",
"reviewer_id",
"commit_id",
"content",
"created_at",
"state"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/review.json",
"$$target": "review.json"
}

View file

@ -0,0 +1,77 @@
{
"title": "Review comment",
"description": "A comment in the context of a review.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the review comment.",
"type": "string"
},
"content": {
"description": "The text of the review comment.",
"type": "string"
},
"tree_path": {
"description": "The relative path to the file commented on.",
"type": "string"
},
"diff_hunk": {
"description": "The hunk commented on.",
"type": "string"
},
"line": {
"description": "The line number of the comment relative to the tree_path.",
"type": "number"
},
"lines_count": {
"description": "The range of lines that are commented on. If absent it defaults to one and is a single line comment. If specified it must be a positive number. If line is N and lines_count is C, the range of lines commented on is ]N-C,N]. In other words, the range starts lines_count before line, which is the last of the range",
"type": "number"
},
"commit_id": {
"description": "The SHA of the tree_path commented on.",
"type": "string"
},
"poster_id": {
"description": "Unique identifier of the user who authored the comment.",
"type": "string"
},
"reactions": {
"description": "List of reactions.",
"type": "array",
"items": {
"$ref": "reaction.json"
}
},
"created_at": {
"description": "Creation time.",
"type": "string",
"format": "date-time"
},
"updated_at": {
"description": "Last update time.",
"type": "string",
"format": "date-time"
},
"resolver": {
"description": "Unique identifier of the user who resolved the comment.",
"type": "string"
}
},
"required": [
"index",
"content",
"tree_path",
"diff_hunk",
"line",
"commit_id",
"poster_id",
"created_at",
"updated_at"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/reviewcomment.json",
"$$target": "reviewcomment.json"
}

25
f3/schemas/topic.json Normal file
View file

@ -0,0 +1,25 @@
{
"title": "Topic",
"description": "A category associated with a project. There can be multiple topics/categories for a given project.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier.",
"type": "string"
},
"name": {
"description": "The name of the category the project belongs to.",
"type": "string"
}
},
"required": [
"index",
"name"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/topic.json",
"$$target": "topic.json"
}

42
f3/schemas/user.json Normal file
View file

@ -0,0 +1,42 @@
{
"title": "User",
"description": "A forge user.",
"type": "object",
"additionalProperties": false,
"properties": {
"index": {
"description": "Unique identifier of the user.",
"type": "string"
},
"name": {
"description": "User readable name of the user.",
"type": "string"
},
"email": {
"description": "Mail of the user.",
"type": "string"
},
"username": {
"description": "Unique name of the user.",
"type": "string"
},
"password": {
"description": "Password of the user.",
"type": "string"
},
"admin": {
"description": "True if the user has administrative permissions on the forge.",
"type": "boolean"
}
},
"required": [
"index",
"name",
"username"
],
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://code.forgejo.org/f3/f3-schemas/src/branch/main/user.json",
"$$target": "user.json"
}