Skip to content

Commit

Permalink
Less verbose code formatting comment
Browse files Browse the repository at this point in the history
Signed-off-by: 2byrds <[email protected]>
  • Loading branch information
2byrds committed Jul 19, 2024
1 parent b3be5f1 commit ea62311
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/python-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ jobs:
uses: actions/github-script@v3
with:
script: |
const { execSync } = require('child_process');
const result = execSync('black --check .', { encoding: 'utf-8' });
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Formatting check failed. Please run \`black .\` to format your code.\n\n\`\`\`\n${result}\n\`\`\``
body: `Formatting check failed. Please run \`black .\` to format your code. For more details, please check the 'Checks' tab of this PR.`
});

0 comments on commit ea62311

Please sign in to comment.