Comments (6)
Sorry for the delay in replying. On which call in the library are you seeing this?
from bitbucket.net.
Sorry for the feedback delay. This is the call.
. Even though the invocation supports providing only the comment itself, with the other parameters optional, those nulls will still be made part of the JSON that gets posted instead of non-existent properties.from bitbucket.net.
This is the exact code I'm using in a replacement:
public async Task CreatePullRequestCommentAsync(string projectKey, string repositorySlug, long pullRequestId, string text)
{
try
{
var requestUri = $"rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments";
var body = new
{
text
};
var content = new StringContent(JsonConvert.SerializeObject(body), Encoding.Default, "application/json");
var response = await _httpClient.PostAsync(requestUri, content);
response.EnsureSuccessStatusCode();
}
catch (HttpRequestException ex)
{
_logger.LogError(ex, "Error creating pull request comment ({Message})", ex.Message);
throw;
}
}
from bitbucket.net.
I'm on it.
from bitbucket.net.
I will push out a fix hopefully this weekend.
from bitbucket.net.
Fixed in release 2.1.6
from bitbucket.net.
Related Issues (20)
- please provide a signed nuget package on top of current unsigned HOT 5
- Determine conflict-status of a PR HOT 1
- Deletion of Branches fails with 415 HOT 3
- DeclinePullRequest is throwing 405 error HOT 1
- Merging leads to 415 error HOT 3
- Documentation HOT 4
- Mocking HOT 1
- Any plans to add alternative Bearer authentication using personal access tokens? HOT 1
- Multi-authentication clients HOT 1
- Getting comments and tasks under a comment in a pull request? HOT 3
- Provide a wrapper for Code Insights HOT 1
- Incorrect JSON Format When Adding Comments to PRs HOT 1
- Add support for tasks (blocker comments) on pull requests HOT 2
- Add support for Bitbucket Access Keys
- support CancellationToken in requests
- Maintaining Bitbucket.Net HOT 5
- Overload UpdateProjectRepositoryPathAsync to accept file content as a string instead of a physical file location.
- Add "Truncated" boolean property into Core.Projects.Line model
- Bitbucket.Net changes default JSON serialization settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitbucket.net.