Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitIssueMan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vito Conforti
GitIssueMan
Commits
aa99ddf0
Commit
aa99ddf0
authored
1 year ago
by
Vito Conforti
Browse files
Options
Downloads
Patches
Plain Diff
added last update date
parent
55e6bf0f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
nb-configuration.xml
+18
-0
18 additions, 0 deletions
nb-configuration.xml
nbactions-release-profile.xml
+3
-3
3 additions, 3 deletions
nbactions-release-profile.xml
src/main/java/com/mycompany/gitissueman/GitIssueMan.java
+15
-8
15 additions, 8 deletions
src/main/java/com/mycompany/gitissueman/GitIssueMan.java
with
36 additions
and
11 deletions
nb-configuration.xml
0 → 100644
+
18
−
0
View file @
aa99ddf0
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties
xmlns=
"http://www.netbeans.org/ns/maven-properties-data/1"
>
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.compile.on.save>
all
</netbeans.compile.on.save>
</properties>
</project-shared-configuration>
This diff is collapsed.
Click to expand it.
nbactions-release-profile.xml
+
3
−
3
View file @
aa99ddf0
...
...
@@ -13,7 +13,7 @@
<exec.vmArgs></exec.vmArgs>
<exec.args>
${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}
</exec.args>
<exec.appArgs>
4
</exec.appArgs>
<exec.mainClass>
${packageClassName}
</exec.mainClass>
<exec.mainClass>
com.mycompany.gitissueman.GitIssueMan
</exec.mainClass>
<exec.executable>
java
</exec.executable>
</properties>
</action>
...
...
@@ -30,7 +30,7 @@
<exec.vmArgs>
-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}
</exec.vmArgs>
<exec.args>
${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}
</exec.args>
<exec.appArgs>
4
</exec.appArgs>
<exec.mainClass>
${packageClassName}
</exec.mainClass>
<exec.mainClass>
com.mycompany.gitissueman.GitIssueMan
</exec.mainClass>
<exec.executable>
java
</exec.executable>
<jpda.listen>
true
</jpda.listen>
</properties>
...
...
@@ -47,7 +47,7 @@
<properties>
<exec.vmArgs></exec.vmArgs>
<exec.args>
${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}
</exec.args>
<exec.mainClass>
${packageClassName}
</exec.mainClass>
<exec.mainClass>
com.mycompany.gitissueman.GitIssueMan
</exec.mainClass>
<exec.executable>
java
</exec.executable>
<exec.appArgs>
4
</exec.appArgs>
</properties>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/mycompany/gitissueman/GitIssueMan.java
+
15
−
8
View file @
aa99ddf0
...
...
@@ -21,6 +21,8 @@ import com.google.gson.JsonSyntaxException;
import
java.io.IOException
;
import
java.net.MalformedURLException
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.time.temporal.ChronoUnit
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -413,15 +415,11 @@ public class GitIssueMan {
}
else
{
//System.out.println(issueObject.get("id").getAsString() + " Not processed due to missing information (due date or last update) " );
}
total_issue
++;
}
}
}
}
// Check if there are more pages to read
String
linkHeader
=
connection
.
getHeaderField
(
"Link"
);
...
...
@@ -546,6 +544,14 @@ public class GitIssueMan {
private
static
void
publish_redmine_test
(
String
apiUrl
)
throws
IOException
{
LocalDateTime
currentDateTime
=
LocalDateTime
.
now
();
// Define a formatter to display the date and time in a specific format
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
// Format the current date and time using the formatter
String
formattedDateTime
=
currentDateTime
.
format
(
formatter
);
/*
String redmine = "h1. Dormient issues \\n \\n";
redmine = redmine + fetchIssuesRecursively_3(apiUrl);
...
...
@@ -561,6 +567,7 @@ public class GitIssueMan {
redmine
=
redmine
+
fetchIssuesRecursively_2
(
apiUrl
);
redmine
=
redmine
+
"<br> <h1> Incomplete issues </h1> <br>"
;
redmine
=
redmine
+
fetchIssuesRecursively_1
(
apiUrl
);
redmine
=
redmine
+
"<br> <p> Last update: "
+
formattedDateTime
+
" </p> <br>"
;
redmine
=
redmine
.
replace
(
"\""
,
"\\\""
);
try
{
// Set the API endpoint URL to update the Wiki page content
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment