#6922·atlantis

Azure DevOps: --ignore-vcs-status-names is ignored in PullIsMergeable

Author: emanuelbesliuCreated Sep 24, 2026Updated Sep 24, 2026

Community Note

  • Please vote on this issue by adding a reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

On the Azure DevOps provider, the --ignore-vcs-status-names server flag is ignored when Atlantis computes whether a pull request is mergeable.

VCSClient.PullIsMergeable is defined as PullIsMergeable(logger, repo, pull, vcsStatusName string, ignoreVCSStatusNames []string) and both the GitHub and GitLab clients honor those two parameters. The Azure DevOps client, however, discards them (_ string, _ []string) and instead hardcodes a skip of the status genre Atlantis Bot/atlantis with name apply.

Two consequences:

  1. --ignore-vcs-status-names has no effect on Azure DevOps. Operators cannot exclude an additional blocking status-check branch policy (for example a human-only merge gate, or a second Atlantis service) from Atlantis' mergeability evaluation — a capability GitHub users already have via this documented flag.
  2. The self-apply skip does not track --vcs-status-name. Atlantis posts its own statuses under the configured VCS status name (genre Atlantis Bot/<vcs-status-name>), but the Azure DevOps skip is hardcoded to the literal Atlantis Bot/atlantis. With a non-default ATLANTIS_VCS_STATUS_NAME, the apply status genre no longer matches the hardcoded value, unlike the GitHub implementation which uses the configured name.

Reproduction Steps

  1. Run Atlantis against an Azure DevOps repo with apply_requirements: [mergeable].
  2. Add a blocking status-check branch policy that is not Atlantis' own status (for example a SonarQube/quality gate, or a proxy status used as a human merge gate).
  3. Start the server with --ignore-vcs-status-names set to that policy's status genre or name.
  4. Observe that Atlantis still treats the PR as not mergeable because the blocking policy is not approved — the flag is not honored on Azure DevOps.

Environment details

  • Atlantis version: main (reproducible in current code)
  • VCS: Azure DevOps
  • Relevant flags: --ignore-vcs-status-names, --vcs-status-name
  • Relevant code: server/events/vcs/azuredevops/client.go PullIsMergeable (params discarded; hardcoded Atlantis Bot/atlantis/apply skip), vs server/events/vcs/github/client.go IsMergeableMinusApply which honors both params.

Additional Context

  • The flag is documented in runatlantis.io/docs/server-configuration.md under --ignore-vcs-status-names, previously noted as "Currently only implemented for GitHub."
  • Proposed fix (provider parity, mirroring GitHub): honor vcsStatusName for the self-apply skip (Atlantis Bot/<vcs-status-name> + apply, keeping default atlantis backward compatible) and skip any branch policy whose status genre or name is listed in --ignore-vcs-status-names.
  • Pull request implementing this: #6921