Skip to content

Commit

Permalink
gitrepo: document limitation of spec.ref.name with Azure Devops
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
  • Loading branch information
aryan9600 committed Jul 24, 2023
1 parent 7f40be7 commit 74e9650
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/spec/v1/gitrepositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 don't support fetching the HEAD of
a PR. While Azure Devops lets you 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`:
Expand Down

0 comments on commit 74e9650

Please # to comment.