You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Download Maven Artifacts to analyze](#download-maven-artifacts-to-analyze)
26
26
-[Reset the database and scan the java artifacts](#reset-the-database-and-scan-the-java-artifacts)
27
+
-[Import git log](#import-git-log)
27
28
-[Database Queries](#database-queries)
28
29
-[Cypher Shell](#cypher-shell)
29
30
-[HTTP API](#http-api)
@@ -70,7 +71,7 @@ a profile, the newest versions will be used. Profiles are scripts that can be fo
70
71
### Notes
71
72
72
73
- Be sure to use Java 17 for Neo4j v5 and Java 11 for Neo4j v4
73
-
- Use your own initial Neo4j password
74
+
- Use your own initial Neo4j password with `export NEO4J_INITIAL_PASSWORD=my_own_password`
74
75
- For more details have a look at the script [analyze.sh](./scripts/analysis/analyze.sh)
75
76
76
77
### Examples
@@ -214,6 +215,18 @@ enhance the data further with relationships between artifacts and packages.
214
215
215
216
Be aware that this script deletes all previous relationships and nodes in the local Neo4j Graph database.
216
217
218
+
### Import git log
219
+
220
+
Use [importGitLog.sh](./scripts/importGitLog.sh) to import git log data into the Graph.
221
+
It uses `git log` to extract commits, their authors and the changed filenames into an intermediate CSV file that is then imported into Neo4j with the following schema:
The optional parameter `--repository directory-path-to-a-git-repository` can be used to select a different directory for the repository. By default, the `source` directory within the analysis workspace directory is used. This command only needs the git history to be present so a `git clone --bare` is sufficient. If the `source` directory is also used for the analysis then a full git clone is of course needed (like for Typescript).
227
+
228
+
👉**Note:** Commit messages containing `[bot]` are filtered out to ignore changes made by bots.
echo"prepareAnalysis: Error: Data verification failed. At least one DEPENDS_ON relationship required. Check if the artifacts directory is empty or if the scan failed."
45
46
exit 1
46
47
fi
47
48
49
+
# Preparation - Import git log if source or history is available
0 commit comments