Support for "search/issues" API from GitHub #13058

Closed
opened 2025-11-02 10:28:57 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @kctang on GitHub (May 29, 2024).

Description

Is search/issues API from GitHub supported? If not, and plans/ETA to implement it?


Background/Details

Trying to use @semantic-release/github in my Gitea repo. It works if I disable successComment and failComment as these steps seems to perform a search that is not compatible with Gitea.

My test .releaserc looks something like this:

{  
  "branches": ["main"],  
  "repositoryUrl": "https://xxx/my-org/test.git",  
  "plugins": [  
    "@semantic-release/commit-analyzer",  
    "@semantic-release/release-notes-generator",  
    "@semantic-release/changelog",  
    [  
      "@semantic-release/git",  
      {  
        "assets": ["CHANGELOG.md", "package.json", "package-lock.json"],  
        "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"  
      }  
    ],  
    [  
      "@semantic-release/github",  
      {  
        "githubUrl": "https://xxx",  
        "githubApiPathPrefix": "/api/v1",  
        "successComment": false,  
        "failTitle": false,  
        "failComment": false  
      }  
    ]  
  ]  
}

If I do not set successComment and failComment to false, when Gitea action runs, I will get:

[semantic-release] › ✘ An error occurred while running semantic-release: RequestError [HttpError]: 404 page not found

# for the following URL (i decoded it for ease of reading)

https://xxx/api/v1/search/issues?q=repo:my-org/test+type:pr+is:merged+b2c210e22ae555c72b558ac1cad301a72b7da678+1b9064ab221042e2308b0914f2970853f4aa3c17+4dfea9afa9eaf49184166b689a7f2fd514e97ade+829bd9c0a62c9af1fb8140c244834d96d8fd762d+9753873f431dbc31ad121a9427803c6f3078cde8

# it looks like Gitea does not support the API search format above

I believe on of the @semantic-release/github step involves search for issues in the repository.

Other that this issue, it looks like we can directly use @semantic-release/github to perform semantic release. I am aware of saitho/semantic-release-gitea but looks like no longer maintain so I did not want to use that.

Gitea Version

1.21.11

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Self hosted, docker based installation.

Database

MySQL/MariaDB

Originally created by @kctang on GitHub (May 29, 2024). ### Description Is [`search/issues`](https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#search-issues-and-pull-requests) API from GitHub supported? If not, and plans/ETA to implement it? --- **Background/Details** Trying to use `@semantic-release/github` in my Gitea repo. It works if I disable `successComment` and `failComment` as these steps seems to perform a search that is not compatible with Gitea. My test `.releaserc` looks something like this: ``` { "branches": ["main"], "repositoryUrl": "https://xxx/my-org/test.git", "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/changelog", [ "@semantic-release/git", { "assets": ["CHANGELOG.md", "package.json", "package-lock.json"], "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ], [ "@semantic-release/github", { "githubUrl": "https://xxx", "githubApiPathPrefix": "/api/v1", "successComment": false, "failTitle": false, "failComment": false } ] ] } ``` If I do not set `successComment` and `failComment` to false, when Gitea action runs, I will get: ``` [semantic-release] › ✘ An error occurred while running semantic-release: RequestError [HttpError]: 404 page not found # for the following URL (i decoded it for ease of reading) https://xxx/api/v1/search/issues?q=repo:my-org/test+type:pr+is:merged+b2c210e22ae555c72b558ac1cad301a72b7da678+1b9064ab221042e2308b0914f2970853f4aa3c17+4dfea9afa9eaf49184166b689a7f2fd514e97ade+829bd9c0a62c9af1fb8140c244834d96d8fd762d+9753873f431dbc31ad121a9427803c6f3078cde8 # it looks like Gitea does not support the API search format above ``` I believe on of the `@semantic-release/github` step involves search for issues in the repository. Other that this issue, it looks like we can directly use `@semantic-release/github` to perform semantic release. I am aware of `saitho/semantic-release-gitea` but looks like no longer maintain so I did not want to use that. ### Gitea Version 1.21.11 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Self hosted, docker based installation. ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 10:28:57 -06:00
Author
Owner

@lunny commented on GitHub (May 29, 2024):

If you want a new API, please check whether that API has/has not implemented. And if not, it should be a proposal but not a bug.

@lunny commented on GitHub (May 29, 2024): If you want a new API, please check whether that API has/has not implemented. And if not, it should be a proposal but not a bug.
Author
Owner

@kctang commented on GitHub (May 29, 2024):

My apologies. I should not have mark it as a bug. Looking at the API docs, looks like this has not been implemented.

I will recreate it as a proposal instead. Thanks for quick response.

@kctang commented on GitHub (May 29, 2024): My apologies. I should not have mark it as a bug. Looking at the [API docs](https://docs.gitea.com/api/1.22/), looks like this has not been implemented. I will recreate it as a proposal instead. Thanks for quick response.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13058