Skip to content

Commit

Permalink
Fix get_cirun_installation_id
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Nov 9, 2023
1 parent 67c8ce2 commit 5162048
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_smithy/cirun_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ def get_cirun_installation_id(owner: str) -> int:
if owner == "conda-forge":
return 18453316
else:
gh = Github(gh_token)
gh = Github(gh_token())
user = gh.get_user()
if user.login == owner:
user_or_org = user
else:
user_or_org = gh.get_organization(owner)
for inst in user_or_org.get_installations:
for inst in user_or_org.get_installations():
if inst.raw_data["app_slug"] == "cirun-application":
return inst.app_id
raise ValueError(f"cirun not found for owner {owner}")
Expand Down
23 changes: 23 additions & 0 deletions news/cirun_id.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Fixed getting cirun installation id for non conda-forge orgs (#1795).

**Security:**

* <news item>

0 comments on commit 5162048

Please sign in to comment.