Skip to content

Commit

Permalink
Fix: Verify Changelog not adding comment describing problem (Maybe) (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs authored Oct 11, 2024
1 parent 19158f2 commit a895319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const test = fs.readFileSync('build/changelog_errors.txt', 'utf8');
const test = fs.readFileSync('versions/1.8.9/build/changelog_errors.txt', 'utf8');
const commentBody = `${test}`
github.rest.issues.createComment({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ abstract class ChangelogVerification : DefaultTask() {

// Export errors so that they can be listed in the PR comment
val errorFile = File(outputDirectory.get().asFile, "changelog_errors.txt")
println("saved error file to: ${errorFile.path}")

errorFile.appendText("I have detected some issues with your pull request:\n\n")

Expand Down

0 comments on commit a895319

Please sign in to comment.