Skip to content

Commit

Permalink
Merge pull request #2405 from opral/ninja-patch-remove-found-project-…
Browse files Browse the repository at this point in the history
…comment

Remove project not found comment
  • Loading branch information
NiklasBuchfink authored Mar 18, 2024
2 parents f03c082 + e169f29 commit d54526f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-crews-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inlang/github-lint-action": patch
---

Remove project not found comment
12 changes: 1 addition & 11 deletions inlang/source-code/github-lint-action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,7 @@ export async function run(): Promise<void> {
return result.projectPath
}
}
// Case: Project not found in head repo
if (
projectListHead.some(
(project) => project.projectPath.replace(process.cwd(), "") === result.projectPath
) === false
) {
result.commentContent = `#### ❗️ Project \`${shortenedProjectPath()}\` not found in head repo.
If you have not intentionally deleted the project, check whether the head repository is up to date with the base repository.`
continue
}
// Case: New errors in proejct setup
// Case: New errors in project setup
if (result.errorsBase.length === 0 && result.errorsHead.length > 0) {
result.commentContent = `#### ❗️ New errors in setup of project \`${shortenedProjectPath()}\` found
${result.errorsHead
Expand Down

0 comments on commit d54526f

Please sign in to comment.