Skip to content
Merged
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
6 changes: 3 additions & 3 deletions src/taskgraph/util/cached_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def add_optimization(
# Pull requests use a different target cache index route. This way we can
# be confident they won't be used by anything other than the pull request
# that created the cache in the first place.
if config.params["tasks_for"].startswith(
"github-pull-request"
) and config.graph_config["taskgraph"].get("cache-pull-requests", True):
if config.params["tasks_for"] == "github-pull-request" and config.graph_config[
"taskgraph"
].get("cache-pull-requests", True):
subs["head_ref"] = config.params["head_ref"]
if subs["head_ref"].startswith("refs/heads/"):
subs["head_ref"] = subs["head_ref"][11:]
Expand Down