Skip to content

digger should refresh existing statuses when a project is removed in a pr push #2318

@motatoes

Description

@motatoes

Scenario:

  1. somebody creates PR with three different resources inside
  2. digger starts and detects three resources, runs plans and in the Github status checks we can see three entries
    a. project_some_resource_A/plan [green]
    b. project_some_resource_B/plan [green]
    c. project_some_resource_C/plan [green]
  3. author of PR noticed that resource B is not needed and the code has been added by mistake
  4. the new commit is pushed to the branch, resource B is removed from the code
  5. diggers starts again and detects two resources, runs plans but in the Github status checks we can see still three entries
    a. project_some_resource_A/plan [green]
    b. project_some_resource_B/plan [yellow: pending]
    c. project_some_resource_C/plan [green]
  6. even after running apply GitHub status check is still waiting for project_some_resource_B/plan which doesn't exist in the code, so it's not gonna be planned

After removal of the resource B digger should remove that status check or mark it as completed (as a part of the PR push)

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