add commenting on issues

This commit is contained in:
2025-12-17 12:23:29 +01:00
parent a86ad23774
commit db063e61b1
3 changed files with 59 additions and 16 deletions

View File

@@ -390,21 +390,12 @@ namespace Blueberry.Redmine
{
issue = new
{
notes = comment
}
};
var privatePayload = new
{
issue = new
{
private_notes = comment
notes = comment,
private_notes = isPrivate
}
};
if(isPrivate)
await SendRequestAsync<object>(HttpMethod.Put, path, privatePayload, token: token);
else
await SendRequestAsync<object>(HttpMethod.Put, path, payload, token: token);
await SendRequestAsync<object>(HttpMethod.Put, path, payload, token: token);
}
public async Task<List<TimeOnIssue.TimeEntry>> GetTimeOnIssueAsync(int issueId, int limit = 25, IProgress<(int, int)>? progress = null, CancellationToken? token = null)