mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Updated the Dapplo.Jira dependency, as this finally was usable without getting a huge list of dependencies with it.
This commit is contained in:
parent
ea0174c9c3
commit
bc2e991a2d
4 changed files with 37 additions and 37 deletions
|
@ -33,7 +33,7 @@ namespace GreenshotFlickrPlugin {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Description of FlickrUtils.
|
/// Description of FlickrUtils.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FlickrUtils {
|
public static class FlickrUtils {
|
||||||
private static readonly ILog LOG = LogManager.GetLogger(typeof(FlickrUtils));
|
private static readonly ILog LOG = LogManager.GetLogger(typeof(FlickrUtils));
|
||||||
private static readonly FlickrConfiguration config = IniConfig.GetIniSection<FlickrConfiguration>();
|
private static readonly FlickrConfiguration config = IniConfig.GetIniSection<FlickrConfiguration>();
|
||||||
private const string FLICKR_API_BASE_URL = "https://api.flickr.com/services/";
|
private const string FLICKR_API_BASE_URL = "https://api.flickr.com/services/";
|
||||||
|
|
|
@ -12,6 +12,6 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\GreenshotPlugin\GreenshotPlugin.csproj" />
|
<ProjectReference Include="..\GreenshotPlugin\GreenshotPlugin.csproj" />
|
||||||
<PackageReference Include="Dapplo.Jira" version="0.6.50" />
|
<PackageReference Include="Dapplo.Jira" version="0.9.19" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -38,7 +38,7 @@ namespace GreenshotJiraPlugin {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This encapsulates the JiraClient to make it possible to change as less old Greenshot code as needed
|
/// This encapsulates the JiraClient to make it possible to change as less old Greenshot code as needed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class JiraConnector : IDisposable {
|
public sealed class JiraConnector : IDisposable {
|
||||||
private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(JiraConnector));
|
private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(JiraConnector));
|
||||||
private static readonly JiraConfiguration JiraConfig = IniConfig.GetIniSection<JiraConfiguration>();
|
private static readonly JiraConfiguration JiraConfig = IniConfig.GetIniSection<JiraConfiguration>();
|
||||||
private static readonly CoreConfiguration CoreConfig = IniConfig.GetIniSection<CoreConfiguration>();
|
private static readonly CoreConfiguration CoreConfig = IniConfig.GetIniSection<CoreConfiguration>();
|
||||||
|
@ -256,7 +256,7 @@ namespace GreenshotJiraPlugin {
|
||||||
public async Task<IList<Issue>> SearchAsync(Filter filter, CancellationToken cancellationToken = default)
|
public async Task<IList<Issue>> SearchAsync(Filter filter, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
await CheckCredentialsAsync(cancellationToken);
|
await CheckCredentialsAsync(cancellationToken);
|
||||||
var searchResult = await _jiraClient.Issue.SearchAsync(filter.Jql, 20, new[] { "summary", "reporter", "assignee", "created", "issuetype" }, cancellationToken).ConfigureAwait(false);
|
var searchResult = await _jiraClient.Issue.SearchAsync(filter.Jql, null, new[] { "summary", "reporter", "assignee", "created", "issuetype" }, null, cancellationToken).ConfigureAwait(false);
|
||||||
return searchResult.Issues;
|
return searchResult.Issues;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue