# Github PR via API?

**URL:** <https://forum.asana.com/t/github-pr-via-api/164575>\
**Category:** API & Developers\
**Created:** [11 May 2022 18:33 UTC](https://forum.asana.com/t/github-pr-via-api/164575 "2022-05-11T18:33:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon44811906](https://luna1.co/8d76cd.png) [@anon44811906](https://forum.asana.com/u/anon44811906)\
**Post date:** [11 May 2022 18:33 UTC](https://forum.asana.com/t/github-pr-via-api/164575/1 "2022-05-11T18:33:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [12 May 2022 15:05 UTC](https://forum.asana.com/t/github-pr-via-api/164575/2 "2022-05-12T15:05:26Z")

</div>

Hi @anon44811906 and welcome to the forum,

If you mean to attach one such that it displays in the way that the Github integration does:  
 ![image](https://us1.discourse-cdn.com/asana/original/3X/2/0/20cb7cee2d1c162ec750eaf0732946ec6c9f90c7.png)

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](https://developers.asana.com/docs/overview-of-app-components), 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.

---

<div class="post-metadata">

**Author:** ![anon44811906](https://luna1.co/8d76cd.png) [@anon44811906](https://forum.asana.com/u/anon44811906)\
**Post date:** [12 May 2022 16:32 UTC](https://forum.asana.com/t/github-pr-via-api/164575/3 "2022-05-12T16:32:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [9 April 2025 13:51 UTC](https://forum.asana.com/t/github-pr-via-api/164575/5 "2025-04-09T13:51:35Z")

</div>

@anon46608188,

I’m confused; your answer doesn’t seem relevant to this topic. The OP was asking about adding data to a task; your post is about retrieving an existing attachment. Can you clarify? Thanks.

---

<div class="post-metadata">

**Author:** ![anon46608188](https://luna1.co/8d76cd.png) [@anon46608188](https://forum.asana.com/u/anon46608188)\
**Post date:** [10 April 2025 13:38 UTC](https://forum.asana.com/t/github-pr-via-api/164575/6 "2025-04-10T13:38:27Z")

</div>

Oh, your right. I misread, sorry about that. I’ll see if I can edit my previous post.
