init
This commit is contained in:
19
custom_components/hacs/utils/github_graphql_query.py
Normal file
19
custom_components/hacs/utils/github_graphql_query.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""GitHub GraphQL Queries."""
|
||||
|
||||
GET_REPOSITORY_RELEASES = """
|
||||
query ($owner: String!, $name: String!, $first: Int!) {
|
||||
rateLimit {
|
||||
cost
|
||||
}
|
||||
repository(owner: $owner, name: $name) {
|
||||
releases(first: $first, orderBy: {field: CREATED_AT, direction: DESC}) {
|
||||
nodes {
|
||||
tagName
|
||||
name
|
||||
isPrerelease
|
||||
publishedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Reference in New Issue
Block a user