Skip to content

Conversation

gnanakeethan
Copy link
Contributor

Time Estimate field is not included in the issue modification webhooks or issue API endpoints.

This PR fixes the field for the API.

Signed-off-by: Gnanakeethan Balasubramaniam <[email protected]>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 12, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Sep 12, 2025
Signed-off-by: Gnanakeethan Balasubramaniam <[email protected]>
Signed-off-by: Gnanakeethan Balasubramaniam <[email protected]>
@github-actions github-actions bot added the modifies/api This PR adds API routes or modifies them label Sep 12, 2025
@gnanakeethan gnanakeethan marked this pull request as ready for review September 12, 2025 22:17
@Copilot Copilot AI review requested due to automatic review settings September 12, 2025 22:17
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR exposes the TimeEstimate field in the API by adding it to issue API endpoints and webhooks to address missing time estimate data in API responses.

Key changes:

  • Add TimeEstimate field to the Issue struct in API response format
  • Include TimeEstimate in issue conversion logic for API serialization
  • Update OpenAPI/Swagger documentation to reflect the new field

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
modules/structs/issue.go Add TimeEstimate field to Issue struct for API responses
services/convert/issue.go Include TimeEstimate field in issue-to-API conversion
templates/swagger/v1_json.tmpl Add TimeEstimate field to OpenAPI schema definition

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 13, 2025
@lunny lunny added this to the 1.25.0 milestone Sep 13, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 16, 2025
@silverwind silverwind added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 16, 2025
@silverwind silverwind enabled auto-merge (squash) September 16, 2025 04:04
@silverwind silverwind merged commit fe5afcb into go-gitea:main Sep 16, 2025
26 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 16, 2025
zjjhot added a commit to zjjhot/gitea that referenced this pull request Sep 18, 2025
* giteaofficial/main:
  Clean up npm dependencies (go-gitea#35508)
  Correctly override user unitmodes (go-gitea#35501)
  [skip ci] Updated translations via Crowdin
  Enable more markdown paste features in textarea editor (go-gitea#35494)
  Move git command to git/gitcmd (go-gitea#35483)
  Exposing TimeEstimate field  in the API (go-gitea#35475)
  Clean up npm dependencies (go-gitea#35484)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants