Skip to content

Commit

Permalink
Extra comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Brenden Cambier committed Apr 5, 2024
1 parent 6d04cb2 commit 57d770e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ const core = __importStar(__nccwpck_require__(2186));
const github = __importStar(__nccwpck_require__(5438));
const crypto = __importStar(__nccwpck_require__(6113));
// This function is used to check duplicates on new scans & bypass certain edge cases.
// The app will compare a hash from an Aikido finding against a hash from a Github comment. As such, we can only use properties that live in both entities (e.g. Aikido hash_snippet can not be used).
// Commit_id was not added to the hash, because Github will only send over the comments from the current commit.
// Body was not added to the hash to avoid multiple comments on the same line.
const parseSnippetHashFromComment = (finding) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/postReviewComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as crypto from 'crypto';
type TFinding = { commit_id: string, path: string, line: number, start_line: number, body: string }

// This function is used to check duplicates on new scans & bypass certain edge cases.
// The app will compare a hash from an Aikido finding against a hash from a Github comment. As such, we can only use properties that live in both entities (e.g. Aikido hash_snippet can not be used).
// Commit_id was not added to the hash, because Github will only send over the comments from the current commit.
// Body was not added to the hash to avoid multiple comments on the same line.
const parseSnippetHashFromComment = (finding: any): string | undefined => {
Expand Down

0 comments on commit 57d770e

Please sign in to comment.