Closed gregorFeigel closed 4 months ago
Hey, I doubt it's your fault. For posting the issue we set the dateDecodingStrategy correctly (https://github.com/nerdishbynature/octokit.swift/blob/main/OctoKit/Issue.swift#L308C9-L308C77) but for patching (both methods) we don't.
https://github.com/nerdishbynature/octokit.swift/blob/main/OctoKit/Issue.swift#L333-L334 https://github.com/nerdishbynature/octokit.swift/blob/main/OctoKit/Issue.swift#L364-L365
PRs are highly welcome, else I try to fix it tonight.
I just opened a PR.
Another little thing I noticed: If I run close
and fetch all issues with a certain label (thread), in many cases, the closedAt
property of the return is not changed, although the GitHub Site shows the issue as closed.
Any Idea why? Like is there an API delay?
try await thread.close(issue: n)
let thread = try await github.thread(for: node.nodeID)
func thread(for nodeID: String) async throws -> GitHubIssueThread {
guard let github = github else { throw state }
let issues = try await github.issues(owner: owner, repository: repo, state: .all).filter { issue in
guard let labels = issue.labels else { return false }
return labels.contains(where: { $0.name != nil && $0.name! == nodeID })
}
return .init(gitHub: self, issues: issues)
}
Closed with #185
Hey, I just came across the following problem (hope this is not an application fault).
I want to close an issue using the
async throws
patchIssue
function as shown in the README. However I keep on getting the following error:My code snippet:
Any help appreciated, thanks.