Skip to content

Commit 24a099b

Browse files
committed
Prepare to release
Signed-off-by: Bruno Oliveira da Silva <bruno@abstractj.com> meh Signed-off-by: Bruno Oliveira da Silva <bruno@abstractj.com>
1 parent b7e9910 commit 24a099b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45
<groupId>org.abstractj</groupId>
56
<artifactId>loki</artifactId>
6-
<version>0.1.0</version>
7+
<version>0.1.1</version>
78

89
<properties>
910
<compiler-plugin.version>3.12.1</compiler-plugin.version>

src/main/java/org/abstractj/service/SyncService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,24 @@ public SyncService with(List<String> labels) {
5757

5858
public void execute(String jql) {
5959
JiraIssues jiraIssues = jiraRepository.getIssuesFromFilter(fromJira, jql);
60+
int newIssuesCount = 0;
61+
6062
if (jiraIssues != null) {
6163
for (JiraIssues.Issue i : jiraIssues.issues) {
6264
try {
6365
boolean issueExists = gitHubRepository.issueExists(toRepository, i.fields.getCveId());
6466
if (!issueExists) {
6567
String body = String.format("### Source: %s%s%n%s", fromJira, i.key, i.fields.description);
6668
gitHubRepository.createIssue(toRepository, i.fields.getCleanSummary(), body, labels);
69+
newIssuesCount++;
6770
}
6871
} catch (UnsupportedEncodingException e) {
6972
LOGGER.errorf("Error: Failed to encode query", e);
7073
} catch (Exception e) {
7174
LOGGER.errorf("Error:", e);
7275
}
7376
}
77+
LOGGER.infof("New issues created: %d", newIssuesCount);
7478
} else {
7579
LOGGER.infof("No issues found for query: %s", jql);
7680
}

0 commit comments

Comments
 (0)