FR: Create pull request comment via API #2395

Closed
opened 2025-11-02 04:34:43 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @marvincaspar on GitHub (Oct 10, 2018).

Description

In our CI/CD pipeline we use a static code analysis and I want to create a job, which creates comments on a pull request file if there is a code smell.

I didn't find any API call for this action.

Originally created by @marvincaspar on GitHub (Oct 10, 2018). ## Description In our CI/CD pipeline we use a static code analysis and I want to create a job, which creates comments on a pull request file if there is a code smell. I didn't find any API call for this action.
GiteaMirror added the issue/confirmedtype/featuremodifies/api labels 2025-11-02 04:34:43 -06:00
Author
Owner

@jmls commented on GitHub (Oct 15, 2018):

On a more general note - surely it would be better practice to "eat your own dog food" and make the gitea UI only use publicly available api calls ? That way any shortcomings in the api would be exposed very quickly.

There are several instances where the api does not have the same functionality as the UI - yet the UI has to be calling some rest endpoint

@jmls commented on GitHub (Oct 15, 2018): On a more general note - surely it would be better practice to "eat your own dog food" and make the gitea UI only use publicly available api calls ? That way any shortcomings in the api would be exposed very quickly. There are several instances where the api does not have the same functionality as the UI - yet the UI *has* to be calling some rest endpoint
Author
Owner

@stale[bot] commented on GitHub (Jan 6, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 6, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@andrzejressel commented on GitHub (Jan 12, 2019):

@mc388 You can use issue comment api for that: https://try.gitea.io/api/swagger#/issue/issueCreateComment

I've just checked that and it works fine.

@andrzejressel commented on GitHub (Jan 12, 2019): @mc388 You can use issue comment api for that: https://try.gitea.io/api/swagger#/issue/issueCreateComment I've just checked that and it works fine.
Author
Owner

@lunny commented on GitHub (Jan 16, 2019):

@jereksel I think he means comment on code lines on pull request review.

@lunny commented on GitHub (Jan 16, 2019): @jereksel I think he means comment on code lines on pull request review.
Author
Owner

@marvincaspar commented on GitHub (Jan 16, 2019):

Thats right @lunny

@marvincaspar commented on GitHub (Jan 16, 2019): Thats right @lunny
Author
Owner

@stale[bot] commented on GitHub (Mar 17, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Mar 17, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@6543 commented on GitHub (Nov 5, 2019):

@marvincaspar can we close this in faifour of https://github.com/go-gitea/gitea/issues/5733

@6543 commented on GitHub (Nov 5, 2019): @marvincaspar can we close this in faifour of https://github.com/go-gitea/gitea/issues/5733
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2395