Add Latest Tag sensor to GitHub integration (#66932)

This commit is contained in:
Joakim Sørensen 2022-02-20 13:00:01 +01:00 committed by GitHub
parent 3cbbf90f23
commit 2d52aca9eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 0 deletions

View file

@ -68,6 +68,18 @@ query ($owner: String!, $repository: String!) {
url
tag: tagName
}
refs(
first: 1
refPrefix: "refs/tags/"
orderBy: {field: TAG_COMMIT_DATE, direction: DESC}
) {
tags: nodes {
name
target {
url: commitUrl
}
}
}
}
}
"""