canonical / charm-relation-interfaces

https://canonical.github.io/charm-relation-interfaces/
Apache License 2.0
16 stars 49 forks source link

fix: assigning issues permission error #187

Closed IronCore864 closed 3 weeks ago

IronCore864 commented 3 weeks ago

Background: We cannot assign issues to anyone within the Canonical organisation who is not a writer in this repo.

After discussion with Ben, as a workaround, we will create issues, assign them to charm-techmembers, and then mention the members from the maintainer team in the issue body/comment.

I could not test this change within my personal organisation, so we will have to merge and see how it works. As some manual test, I copy-pasted some of the code in my local console to see the rendered body, which seems fine:

>>> maintainer="observability"
>>> mention_team_members = ", ".join(["@" + member for member in get_team_members_from_team_slug(maintainer)])
>>> mention_team_members
'@mmkay, @Abuelodelanada, @simskij, @dstathis, @PietroPasotti, @michaeldmitry, @lucabello, @ca-scribner, @IbraAoad, @sed-i, @MichaelThamm'