Skip to content

Gitea commit status is missing status id #5802

@felinira

Description

@felinira

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

When using forgejo / gitea the commit status is missing a way to identify itself (for example for branch protection rules).

Reproduction Steps

  • Get atlantis to submit a status check to gitea/forgejo
  • visit the /settings/branches/edit?rule_name=main sub URL
  • Find an empty line under "Status checks found in the last week for this repository" with no ID

Environment details

  • Atlantis version: v0.35.1
  • Deployment method: docker

Atlantis server-side config file:

ATLANTIS_GITEA_BASE_URL: "https://git.example.net"
ATLANTIS_GITEA_USER: "atlantis"
ATLANTIS_GITEA_TOKEN: "<token>"
ATLANTIS_GITEA_WEBHOOK_SECRET: "<secret>"
ATLANTIS_REPO_ALLOWLIST: "test/atlantis"

Repo atlantis.yaml file:

---
version: 3
projects:
  - name: tofu
    branch: /main/
    dir: tofu
    terraform_distribution: opentofu

Additional Context

CreateStatus seems to have a "context" field. I have not investigated this further, but it could potentially be what is missing? https://anbraten.github.io/gitea-js/interfaces/CreateStatusOption.html#context

newStatusOption := gitea.CreateStatusOption{
State: giteaState,
TargetURL: url,
Description: description,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions