Skip to content

Commit 2698873

Browse files
committed
Fix mapping
1 parent 6df08b5 commit 2698873

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/Infrastructure/Issueneter.Infrastructure.Github/Services

src/Infrastructure/Issueneter.Infrastructure.Github/Services/GithubClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private GithubIssueEventEntity ToDomain(ExtendedActivity activity)
8787
Url = issueEvent.Issue.HtmlUrl,
8888
CreatedAt = issueEvent.Issue.CreatedAt,
8989
UpdatedAt = activity.CreatedAt,
90-
Labels = issueEvent.Action == "created" ? issueEvent.Issue.Labels.Select(l => l.Name).ToArray() : [issueEvent.Label.Name]
90+
Labels = issueEvent.Action == "opened" ? issueEvent.Issue.Labels.Select(l => l.Name).ToArray() : [issueEvent.Label.Name]
9191
};
9292
}
9393

0 commit comments

Comments
 (0)