# Automatically Draft a release in github

**URL:** https://www.finalbuilder.com/forums/t/automatically-draft-a-release-in-github/5472
**Category:** Discussion
**Created:** [April 6, 2016, 10:56am UTC](https://www.finalbuilder.com/forums/t/automatically-draft-a-release-in-github/5472 "2016-04-06T10:56:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![haggy](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@haggy](https://www.finalbuilder.com/forums/u/haggy)
#### Post date: [April 6, 2016, 10:56am UTC](https://www.finalbuilder.com/forums/t/automatically-draft-a-release-in-github/5472/1 "2016-04-06T10:56:31Z")

</div>

Is there a way to draft a release in github from within a continua build skript?  
  
When running our production build I want to see this version as a release in github

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 7, 2016, 5:35am UTC](https://www.finalbuilder.com/forums/t/automatically-draft-a-release-in-github/5472/2 "2016-04-07T05:35:49Z")

</div>

Hi Haggy,  
  
Not currently, but this is something we could implement as a build event handler. We’ll add this to our to-do list.&nbsp;

---

<div class="post-metadata">

### Author: ![haggy](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@haggy](https://www.finalbuilder.com/forums/u/haggy)
#### Post date: [April 7, 2016, 8:08am UTC](https://www.finalbuilder.com/forums/t/automatically-draft-a-release-in-github/5472/3 "2016-04-07T08:08:23Z")

</div>

thx for your reply. there is simple post to do this wiht a generated access tokken 🙂 I’ll attach the example below.  
  
btw you should also test that it works with repositories owned by companies not users. As currently there seem to be some differences.  
  
  
  
curl -X POST -H “Content-Type: application/json” -H “Cache-Control: no-cache” -H “Postman-Token: d80927b0-7113-a6ce-25d7-ea3e4e10c5ad” -d ‘{“tag\_name”: “v1.0.4”,“target\_commitish”: “dev”,“name”: “v1.0.3”,“body”: “Release of version 1.0.4”,“draft”: false,“prerelease”: true}  
  
  
’ “[https://api.github.com/repos/Owner/Repository/releases?access\_token=gdfas6sdfsddfdsfdsfdsfacb4fssdf1](https://api.github.com/repos/Owner/Repository/releases?access_token=gdfas6sdfsddfdsfdsfdsfacb4fssdf1)”
