Skip to content

github/gitlab_issue_assigned: Cancel workflow on unassignment #164

Description

@mintybasil

Mistakes happen... It would be nice if a workflow could be cancelled when accidentally triggered. In the case of issue assignment this can easily be mapped to unassigning the issue. We should introduce a boolean config option (cancel_on_unassign) to the github_issue_assigned and gitlab_issue_assigned triggers to enable cancellation when unassignment occurs.

When a workflow is cancelled we should essentially revert to a state as though it was never started. It should not be marked completed or failed, and re-assigning it should result in the same outcome as when it was first assigned.

For the data directory we should move the workspace into a directory called cancelled to preserve what has been done in a way that won't interfere with future runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions