Skip to content

gitea adapter ignores Milestone on issue Create/Update #76

@andrew

Description

@andrew

Noticed while reviewing #75.

giteaIssueService.Update reads opts.Title, opts.Body, opts.Assignees, and (after #75) opts.Labels, but never reads opts.Milestone. Same for Create. So forge issue edit <n> -m <milestone> and forge issue create -m <milestone> are silent no-ops against Gitea/Forgejo, the same class of bug #75 fixed for labels.

gitea.EditIssueOption and gitea.CreateIssueOption both have a Milestone *int64 field, so unlike labels this can go through the same call rather than a separate endpoint. It will need a title-to-ID resolver similar to resolveLabelIDs since UpdateIssueOpts.Milestone is a *string.

The github adapter handles this at github/issues.go:224.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions