GitTools / GitReleaseNotes

Easily generate release notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error generating release notes from BitBucket private repo

DevlinSchoonraad opened this issue · comments

When using BitBucket, calling "GitReleaseNotes.exe /OutputFile ReleaseNotes.md /username /password " generates the following error. There is a closed issue under issues for the repository.

Unhandled Exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'RestSharp.JsonObject' does not contain a definition for 'issues'
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at GitReleaseNotes.IssueTrackers.BitBucket.BitBucketApi.GetClosedIssues(GitReleaseNotesArguments arguments, Nullable1 since, String accountName, String repoSlug, Boolean oauth) in c:\Users\Jake\_code\GitReleaseNotes\src\GitReleaseNotes\IssueTrackers\BitBucket\BitBucketApi.cs:line 35 at GitReleaseNotes.IssueTrackers.BitBucket.BitBucketIssueTracker.GetClosedIssues(Nullable1 since) in c:\Users\Jake_code\GitReleaseNotes\src\GitReleaseNotes\IssueTrackers\BitBucket\BitBucketIssueTracker.cs:line 88
at GitReleaseNotes.ReleaseNotesGenerator.GenerateReleaseNotes(IRepository gitRepo, IIssueTracker issueTracker, SemanticReleaseNotes previousReleaseNotes, String[] categories, TaggedCommit tagToStartFrom, ReleaseInfo currentReleaseInfo, String diffUrlFormat) in c:\Users\Jake_code\GitReleaseNotes\src\GitReleaseNotes\ReleaseNotesGenerator.cs:line 22
at GitReleaseNotes.Program.GenerateReleaseNotes(String[] args) in c:\Users\Jake_code\GitReleaseNotes\src\GitReleaseNotes\Program.cs:line 114
at GitReleaseNotes.Program.Main(String[] args) in c:\Users\Jake_code\GitReleaseNotes\src\GitReleaseNotes\Program.cs:line 30

I found the /ConsumerKey and /ConsumerSecretKey switches in the help, but these too failed with the same "Unhandled Exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'RestSharp.JsonObject' does not contain a definition for 'issues'" error. I made changes to the code to get this working.

I have switched to Atlassian SDK for jira. Maybe that supports bitbucket as well.

Hi Geert

I fixed this and the pull request #72 has been merged. Is there an issue with the change?

Nope, if it's merged, we can close this. Thanks for the update!

No problem

On Thu, Apr 9, 2015 at 8:06 PM, Geert van Horrik notifications@github.com
wrote:

Nope, if it's merged, we can close this. Thanks for the update!


Reply to this email directly or view it on GitHub
#71 (comment)
.