Skip to content

Commit

Permalink
Merge pull request #1794 from isuruf/cirun_teams
Browse files Browse the repository at this point in the history
Fix team names for cirun
  • Loading branch information
isuruf authored Nov 9, 2023
2 parents 992fb6d + 1732f56 commit 67c8ce2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conda_smithy/cirun_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,14 @@ def add_repo_to_cirun_resource(
print(
f"Adding repo {owner}/{repo} to resource {resource} with policy_args: {policy_args}"
)
gh = Github(gh_token())
gh_owner = gh.get_user(owner)
gh_repo = gh_owner.get_repo(repo)
response = cirun.add_repo_to_resources(
owner,
repo,
resources=[resource],
teams=[repo],
teams=[team.name for team in gh_repo.get_teams()],
policy_args=policy_args,
)
print(f"response: {response} | {response.json().keys()}")
Expand Down
26 changes: 26 additions & 0 deletions news/cirun.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* The team name for cirun was fixed. Previously the team name passed had
-feedstock in it and also did not support teams as maintainers.
For teams like conda-forge/r, if they are added to a feedstock after
Cirun is configured, the feedstock needs to be reconfigured (#1794).

**Security:**

* <news item>

0 comments on commit 67c8ce2

Please sign in to comment.