Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asfyaml/feature/github/branch_protection.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _run_paged_graphql_query(
variables = {"endCursor": end_cursor}
variables.update(input_variables)

headers, data = self.ghrepo._requester.graphql_query(query, variables)
_headers, data = self.ghrepo._requester.graphql_query(query, variables)
result = data["data"]["repository"]["refs"]["nodes"]

for rule in result:
Expand Down
2 changes: 1 addition & 1 deletion asfyaml/feature/website_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run(self):

# Get optional target hostname:
hostname = self.yaml.hostname if "hostname" in self.yaml else None
if hostname and "apache.org" in hostname:
if hostname and hostname.endswith(".apache.org"):
if mappings.WS_HOSTNAME_OVERRIDES.get(self.repository.name, "") != hostname:
raise Exception(
f".asf.yaml: Invalid hostname '{hostname}' - you cannot specify *.apache.org hostnames, they must be inferred!"
Expand Down
Loading