Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To run the application once compiled, simply run the .jar file that should have
Once the process is complete, a .csv file should contain issue information in the .jar file directory.
Please Note: When the .jar file is run, it will overwrite any other issues.csv files in the jar file directory.

If downloading Issues doesn't work after multiple tries, you may need to copy the [IssuesDownload properties file](https://github.com/psgs/IssuesDownload/blob/master/src/main/resources/IssuesDownload.properties), and place it in the same directory as the .jar file, then edit the file to contain your [personal or an application access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use).
If downloading Issues doesn't work after multiple tries, you may need to copy the [IssuesDownload properties file](https://github.com/psgs/IssuesDownload/blob/master/src/main/resources/IssuesDownload.properties), and place it in the same directory as the .jar file, then edit the file to contain your [personal or an application access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use) with permission to use user info and public repos.

Releases
--------
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>IssuesDownload</groupId>
<artifactId>IssuesDownload</artifactId>
<version>1.0-RELEASE</version>
<version>1.1-RELEASE</version>

<dependencies>
<dependency>
Expand Down
18 changes: 8 additions & 10 deletions src/main/java/io/github/psgs/issuesdownload/IssuesDownload.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class IssuesDownload {
public static void main(String[] args) {
try {
Config.loadConfiguration();
} catch (IOException ex) {
System.out.println("An IOException occurred while loading the configuration!");
ex.printStackTrace();
} catch (Throwable t) {
System.out.println("An error " + t.getClass().getName() + " has occurred reaching '" + t.getMessage() + "' while loading the configuration!");
t.printStackTrace();
}
GUI.main(args);
}
Expand Down Expand Up @@ -54,13 +54,11 @@ public static String saveIssues(String repoDetails, GHIssueState issueState) {
writer.flush();
writer.close();
return "Download Complete!";
} catch (IOException ex) {
System.out.println("An IOException has occurred!");
ex.printStackTrace();
if (ex.getMessage().equalsIgnoreCase("api.github.com")) {
return "An error has occurred reaching " + ex.getMessage() + "! Please check your network connection.";
}
} catch (Throwable t) {
System.out.println("An error " + t.getClass().getName() + " has occurred reaching '" + t.getMessage() + "'!");
t.printStackTrace();
return "An error " + t.getClass().getName() + " has occurred reaching '" + t.getMessage() + "'!";
}
return "An error has occurred!";
//return "An error has occurred!";
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/github/psgs/issuesdownload/gui/GUI.form
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="15" style="1"/>
</Property>
<Property name="text" type="java.lang.String" value=" Issues Download v1.0-SNAPSHOT"/>
<Property name="text" type="java.lang.String" value=" Issues Download v1.1-SNAPSHOT"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="jTextField1">
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/github/psgs/issuesdownload/gui/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setFont(new java.awt.Font("Tahoma", Font.BOLD, 15)); // NOI18N
jLabel1.setText(" Issues Download v1.0-SNAPSHOT");
jLabel1.setText(" Issues Download v1.1-SNAPSHOT");

jTextField1.setText("Path to Repository (psgs/IssuesDownload)");
jTextField1.setText("UserName/RepoName");

jButton1.setText("Download");
jButton1.addActionListener(new java.awt.event.ActionListener() {
Expand Down