Skip to content

Conversation

@maddawik
Copy link

@maddawik maddawik commented Nov 21, 2025

what

Updates the GiteaClient.UpdateStatus method so that src (which should be atlantis/plan or atlantis/apply afaict) is passed as the Context for the gitea.CreateStatusOption struct. This should give status checks names which can be seen in the UI and pattern matched against. This seems like how the other clients are passing the status name along as well.

why

This should make it possible for status checks to be pattern matched in branch protection rules. i.e. atlantis/plan and atlantis/apply could be explicitly required before merge.

tests

I don't see any related tests for the client though this is my first PR, so if I'm missing something I'm happy to address it.

Edit: I tested this locally

Before patch

Status updates have no name, a branch protection rule that has atlantis/* means nothing in this context (see screenshot)

Screenshot 2025-11-23 at 1 03 16 AM

After patch

I built the patched version locally and re-ran a test, seeing context appear and able to assert branch protection rules. I think this was as simple as it seemed!

Screenshot 2025-11-23 at 12 53 07 AM Screenshot 2025-11-23 at 12 57 09 AM

references

Closes #5802

@dosubot dosubot bot added bug Something isn't working go Pull requests that update Go code labels Nov 21, 2025
@github-actions github-actions bot removed the bug Something isn't working label Nov 21, 2025
@maddawik maddawik force-pushed the patch-1 branch 3 times, most recently from 88ad904 to cbf9616 Compare November 27, 2025 23:14
This makes it possible for status checks to be pattern matched in branch
protection rules. i.e. `atlantis/plan` and `atlantis/apply` could be required.

Signed-off-by: maddawik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gitea commit status is missing status id

1 participant