File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -572,9 +572,9 @@ def run(
572
572
None means: We don't update the PR data.
573
573
"""
574
574
if (
575
- isinstance (migrator , MigrationYaml )
576
- and not rerender_info .nontrivial_migration_yaml_changes
577
- and context .attrs ["name" ] != "conda-forge-pinning"
575
+ isinstance (migrator , MigrationYaml )
576
+ and not rerender_info .nontrivial_migration_yaml_changes
577
+ and context .attrs ["name" ] != "conda-forge-pinning"
578
578
):
579
579
# spoof this so it looks like the package is done
580
580
pr_data = get_spoofed_closed_pr_info ()
Original file line number Diff line number Diff line change @@ -117,3 +117,18 @@ class ClonedFeedstockContext(FeedstockContext):
117
117
# Implementation Note: Keep this class frozen or there will be consistency issues if someone modifies
118
118
# a ClonedFeedstockContext object in place - it will not be reflected in the original FeedstockContext object.
119
119
local_clone_dir : Path
120
+
121
+ @property
122
+ def git_repo_owner (self ) -> str :
123
+ return "conda-forge"
124
+
125
+ @property
126
+ def git_repo_name (self ) -> str :
127
+ return f"{ self .feedstock_name } -feedstock"
128
+
129
+ @property
130
+ def git_href (self ) -> str :
131
+ """
132
+ A link to the feedstocks GitHub repository.
133
+ """
134
+ return f"https://github.com/{ self .git_repo_owner } /{ self .git_repo_name } "
Original file line number Diff line number Diff line change 26
26
}
27
27
)
28
28
29
-
30
29
def test_feedstock_context_default_branch_not_set ():
31
30
context = FeedstockContext ("TEST-FEEDSTOCK-NAME" , demo_attrs )
32
31
assert context .default_branch == "main"
You can’t perform that action at this time.
0 commit comments