At present, when you have a GitLab system hook setup for Repository update events, this fires for when a project in GitLab is archived (by design). Lagoon at present does not seem to be able to discern this archive action, from any other project action.
We are seeing issues now where Lagoon projects are deleted, then at a later point the GitLab project is archived, and then the Lagoon project is brought back to life. This is less than ideal.
An example payload from a system hook for project_update:
Describe the bug
At present, when you have a GitLab system hook setup for
Repository update events
, this fires for when a project in GitLab is archived (by design). Lagoon at present does not seem to be able to discern this archive action, from any other project action.We are seeing issues now where Lagoon projects are deleted, then at a later point the GitLab project is archived, and then the Lagoon project is brought back to life. This is less than ideal.
An example payload from a system hook for
project_update
:So it looks like you may need to query the GitLab API to find out the current project status.
There is an existing GitLab issue to add more information to the system hook.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When a GitLab project is archived, this should not create a new project in Lagoon.