forked from retoor/devplacepy
fix: correct "bugs" to "issues" in routing table and README references across multiple documentation files
This commit is contained in:
@@ -885,10 +885,10 @@ ACTIONS: tuple[Action, ...] = (
|
||||
requires_auth=False,
|
||||
),
|
||||
Action(
|
||||
name="list_bugs",
|
||||
name="list_issues",
|
||||
method="GET",
|
||||
path="/bugs",
|
||||
summary="List bug tickets from the Gitea tracker",
|
||||
path="/issues",
|
||||
summary="List issue tickets from the Gitea tracker",
|
||||
requires_auth=False,
|
||||
params=(
|
||||
query("state", "Filter by state: open, closed, or all."),
|
||||
@@ -896,58 +896,58 @@ ACTIONS: tuple[Action, ...] = (
|
||||
),
|
||||
),
|
||||
Action(
|
||||
name="create_bug",
|
||||
name="create_issue",
|
||||
method="POST",
|
||||
path="/bugs/create",
|
||||
summary="Report a bug. It is rewritten by AI and filed on the tracker.",
|
||||
path="/issues/create",
|
||||
summary="Report an issue. It is rewritten by AI and filed on the tracker.",
|
||||
description=(
|
||||
"Queues a background bug creation job and returns {uid, status_url}. Poll the "
|
||||
"status_url with bug_job_status until status is 'done', then show the user the "
|
||||
"bug_url pointing at the filed ticket."
|
||||
"Queues a background issue creation job and returns {uid, status_url}. Poll the "
|
||||
"status_url with issue_job_status until status is 'done', then show the user the "
|
||||
"issue_url pointing at the filed ticket."
|
||||
),
|
||||
params=(
|
||||
body("title", "Bug title.", required=True),
|
||||
body("description", "Bug description.", required=True),
|
||||
body("title", "Issue title.", required=True),
|
||||
body("description", "Issue description.", required=True),
|
||||
),
|
||||
),
|
||||
Action(
|
||||
name="bug_job_status",
|
||||
name="issue_job_status",
|
||||
method="GET",
|
||||
path="/bugs/jobs/{uid}",
|
||||
summary="Poll a bug creation job and obtain the filed bug ticket URL once finished",
|
||||
path="/issues/jobs/{uid}",
|
||||
summary="Poll an issue creation job and obtain the filed issue ticket URL once finished",
|
||||
description=(
|
||||
"Returns the job status. When status is 'done', bug_url and number are populated; "
|
||||
"Returns the job status. When status is 'done', issue_url and number are populated; "
|
||||
"while 'pending' or 'running', poll again shortly."
|
||||
),
|
||||
params=(path("uid", "Bug job uid returned by create_bug."),),
|
||||
params=(path("uid", "Issue job uid returned by create_issue."),),
|
||||
requires_auth=False,
|
||||
),
|
||||
Action(
|
||||
name="view_bug",
|
||||
name="view_issue",
|
||||
method="GET",
|
||||
path="/bugs/{number}",
|
||||
summary="View a bug ticket and its developer updates",
|
||||
path="/issues/{number}",
|
||||
summary="View an issue ticket and its developer updates",
|
||||
requires_auth=False,
|
||||
params=(path("number", "The bug ticket number from a /bugs listing."),),
|
||||
params=(path("number", "The issue ticket number from a /issues listing."),),
|
||||
),
|
||||
Action(
|
||||
name="comment_bug",
|
||||
name="comment_issue",
|
||||
method="POST",
|
||||
path="/bugs/{number}/comment",
|
||||
summary="Post a comment on a bug ticket, attributed to the current user",
|
||||
path="/issues/{number}/comment",
|
||||
summary="Post a comment on an issue ticket, attributed to the current user",
|
||||
params=(
|
||||
path("number", "The bug ticket number."),
|
||||
path("number", "The issue ticket number."),
|
||||
body("body", "Comment text.", required=True),
|
||||
),
|
||||
),
|
||||
Action(
|
||||
name="set_bug_status",
|
||||
name="set_issue_status",
|
||||
method="POST",
|
||||
path="/bugs/{number}/status",
|
||||
summary="Change a bug ticket status (admin only)",
|
||||
path="/issues/{number}/status",
|
||||
summary="Change an issue ticket status (admin only)",
|
||||
requires_admin=True,
|
||||
params=(
|
||||
path("number", "The bug ticket number."),
|
||||
path("number", "The issue ticket number."),
|
||||
body("status", "New status: open or closed.", required=True),
|
||||
),
|
||||
),
|
||||
@@ -1056,7 +1056,7 @@ ACTIONS: tuple[Action, ...] = (
|
||||
"Fetches the file at the given URL on the server (size-capped, SSRF-guarded) and stores it "
|
||||
"as an attachment exactly like an upload, returning {uid, url, mime_type, ...}. Pass the "
|
||||
"returned uid in attachment_uids when you create_post, create_project, create_gist, "
|
||||
"create_comment, create_bug, or send_message to attach it. The file type is taken from the "
|
||||
"create_comment, create_issue, or send_message to attach it. The file type is taken from the "
|
||||
"URL or its Content-Type; supply 'filename' (with an allowed extension) when the URL has no "
|
||||
"usable name. Use this to attach an image or file straight from the internet."
|
||||
),
|
||||
|
||||
@@ -18,7 +18,7 @@ def arg(
|
||||
|
||||
|
||||
TYPES = (
|
||||
"One of: comment, reply, mention, vote, follow, message, badge, level, bug."
|
||||
"One of: comment, reply, mention, vote, follow, message, badge, level, issue."
|
||||
)
|
||||
|
||||
NOTIFICATION_ACTIONS: tuple[Action, ...] = (
|
||||
|
||||
Reference in New Issue
Block a user