Github PR via API?

Hey there, is there a way to attach a Github PR via the Asana API? It looks like it’s created similar to a Task Attachment?

Hi @Andrew_Lytle and welcome to the forum,

If you mean to attach one such that it displays in the way that the Github integration does:
image

no, there’s no way to do that via the API; only the Github integration can do that.

That being said, it uses the App Component architecture, and you could write your own App Component which mimics the behavior of the Gtihub one. It’s a good deal of work to do that, but it’s possible.

That’s unfortunate. We wanted to write some automation which would auto attach the PR to the Task, instead of just adding it as a comment.

Thanks for your reply