Merge pull request #1175 from fluxcd/devops-refname

gitrepo: document limitation of `spec.ref.name` with Azure Devops
This commit is contained in:
Sanskar Jaiswal 2023-07-24 16:20:43 +05:30 committed by GitHub
commit 6901379b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -319,6 +319,12 @@ Valid examples are: `refs/heads/main`, `refs/tags/v0.1.0`, `refs/pull/420/head`,
This field takes precedence over [`.branch`](#branch-example),
[`.tag`](#tag-example), and [`.semver`](#semver-example).
**Note:** Azure DevOps and AWS CodeCommit do not support fetching the HEAD of
a pull request. While Azure DevOps allows you to fetch the merge commit that
will be created after merging a PR (using `refs/pull/<id>/merge`), this field
can only be used to fetch references that exist in the current state of the Git
repository and not references that will be created in the future.
#### Commit example
To Git checkout a specified commit, use `.spec.ref.commit`: