Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHRelease issue #138

Closed
fred8 opened this issue Nov 7, 2014 · 1 comment
Closed

GHRelease issue #138

fred8 opened this issue Nov 7, 2014 · 1 comment

Comments

@fred8
Copy link

fred8 commented Nov 7, 2014

Hey @kohsuke

I'm using the api to create a tag from a commit, then I create a release from this tag, fill up the info, body and assets. When I use the release builder, I set the prerelease and draft parameter to true. I get everything set on my github account successfully.
That's said, when I press the button (on the github release page) to publish; all my info (title, body and files) disappear and I can just see the created tag. I'm wondering if I'm doing something wrong or if it is a bug from the library.

Here is what I m basically doing : (I extracted the code in the exact same order all the library api call)

GHRepository repository = api.getRepository(REPO_NAME);
Map<String, GHBranch> branches = repository.getBranches();
GHBranch master = branches.get(RELEASE_BRANCH_NAME);
String lastCommit = master.getSHA1();
String refName = "refs/tags/" + tagName;
GHRef ref = repository.createRef(refName, lastCommit);

final GHReleaseBuilder releaseBuilder = repository.createRelease(refName); releaseBuilder.name(releaseName).body(body).prerelease(true).draft(true)
final GHRelease release = releaseBuilder.create()
and a bunch of release.uploadAsset(file, mimeType)

Thank you for your help!

@kohsuke
Copy link
Collaborator

kohsuke commented Feb 15, 2015

The issue tracker isn't for user support. Please see other issues for how to report an issue.

Specifically, I need you to be more specific about the problem, what the expected result is, what actually happens, any stack trace, etc.

@kohsuke kohsuke closed this as completed Feb 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants