Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurvasconcelos committed Jul 10, 2023
1 parent ebcf36a commit 73c2dcb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
# - uses: kognity/pr-update-action@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: My new PR Title
title-prefix: PFX-999
# title: My new PR Title
# title-prefix: PFX-999
title-suffix: "[BOT]"
body: My new PR Body
body-prefix: Some prefix on the body
body-suffix: Some suffix on the body
# body: My new PR Body
# body-prefix: Some prefix on the body
# body-suffix: Some suffix on the body
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function run() {
if (newPrTitle) updateRequest.title = newPrTitle;
if (newPrBody) updateRequest.body = newPrBody;

core.info(`Request: \n${JSON.stringify(updateRequest)}.`);
core.info(`Request: \n${JSON.stringify(updateRequest, null, 4)}.`);

if (!newPrTitle && !newPrBody) {
core.warning('No changes made to PR title or body. Exiting.');
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function updateBody(
const newBody = [bodyPrefix, body || prBody, bodySuffix]
.filter(Boolean)
.join(concatStrategy);
core.info(`New body: ${newBody}.`);
core.info(`New body: \n${newBody}`);
core.setOutput('new-body', newBody);
return newBody;
}
Expand Down

0 comments on commit 73c2dcb

Please sign in to comment.