Skip to content

Commit

Permalink
fix .editorconfig and apply code-style (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy2003 authored Aug 29, 2024
1 parent bf48078 commit 4f01a5e
Show file tree
Hide file tree
Showing 58 changed files with 2,090 additions and 1,162 deletions.
589 changes: 460 additions & 129 deletions .editorconfig

Large diffs are not rendered by default.

69 changes: 41 additions & 28 deletions .github/workflows/changelog-configuration.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,59 @@
{
"max_tags_to_fetch": 200,
"max_pull_requests": 200,
"max_back_track_time_days": 365,
"exclude_merge_branches": [],
"sort": "ASC",
"template": "${{CHANGELOG}}",
"pr_template": "* ${{TITLE}} by @${{AUTHOR}} (#${{NUMBER}})",
"empty_template": "- no changes",
"categories": [
"max_tags_to_fetch" : 200,
"max_pull_requests" : 200,
"max_back_track_time_days" : 365,
"exclude_merge_branches" : [],
"sort" : "ASC",
"template" : "${{CHANGELOG}}",
"pr_template" : "* ${{TITLE}} by @${{AUTHOR}} (#${{NUMBER}})",
"empty_template" : "- no changes",
"categories" : [
{
"title": "## Features",
"labels": ["feature", "enhancement"]
"title" : "## Features",
"labels" : [
"feature",
"enhancement"
]
},
{
"title": "## API-Alignment\n\nAdjust API to match as much as possible to the one of [@neo4j/graphql](https://github.com/neo4j/graphql)",
"labels": ["API-Alignment"]
"title" : "## API-Alignment\n\nAdjust API to match as much as possible to the one of [@neo4j/graphql](https://github.com/neo4j/graphql)",
"labels" : [
"API-Alignment"
]
},
{
"title": "## Fixes",
"labels": ["fix"]
"title" : "## Fixes",
"labels" : [
"fix"
]
},
{
"title": "## Documentation",
"labels": ["doc"]
"title" : "## Documentation",
"labels" : [
"doc"
]
},
{
"title": "## Tests",
"labels": ["test"]
"title" : "## Tests",
"labels" : [
"test"
]
},
{
"title": "## Updated dependencies",
"labels": ["dependencies"]
"title" : "## Updated dependencies",
"labels" : [
"dependencies"
]
}
],
"ignore_labels": [
"ignore_labels" : [
"ignore"
],
"label_extractor": [ ],
"duplicate_filter": null,
"transformers": [],
"tag_resolver": {
"method": "semver"
"label_extractor" : [],
"duplicate_filter" : null,
"transformers" : [],
"tag_resolver" : {
"method" : "semver"
},
"base_branches": []
"base_branches" : []
}
2 changes: 1 addition & 1 deletion .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
java-version: 17
distribution: adopt
- name: Run Maven build
run: ./mvnw --no-transfer-progress -Dneo4j-graphql-java.integration-tests=true -Dneo4j-graphql-java.generate-test-file-diff=false -Dneo4j-graphql-java.flatten-tests=true clean compile test
run: ./mvnw --no-transfer-progress -Dneo4j-graphql-java.integration-tests=true -Dneo4j-graphql-java.generate-test-file-diff=false -Dneo4j-graphql-java.flatten-tests=true clean compile test
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v2
with :
fetch-depth : 0
- name : Build Changelog
id : build_changelog
uses : mikepenz/release-changelog-builder-action@v1
with :
configuration : ".github/workflows/changelog-configuration.json"
env :
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
with:
fetch-depth: 0
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v1
with:
configuration: ".github/workflows/changelog-configuration.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: update release
id: update_release
uses: tubone24/[email protected]
Expand Down
11 changes: 6 additions & 5 deletions .mvn/wrapper/MavenWrapperDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.net.*;
import java.io.*;
import java.nio.channels.*;
Expand All @@ -25,7 +26,7 @@ public class MavenWrapperDownloader {
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";

/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
Expand Down Expand Up @@ -54,7 +55,7 @@ public static void main(String args[]) {
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Expand All @@ -65,7 +66,7 @@ public static void main(String args[]) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if(mavenWrapperPropertyFileInputStream != null) {
if (mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
Expand All @@ -76,8 +77,8 @@ public static void main(String args[]) {
System.out.println("- Downloading from: " + url);

File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
if (!outputFile.getParentFile().exists()) {
if (!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
Expand Down
Loading

0 comments on commit 4f01a5e

Please sign in to comment.