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 784ce5a commit 00e41ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 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: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ async function run() {
try {
core.info('Starting...');
const inputs = getInputs();
core.info(JSON.stringify(inputs));
core.info(JSON.stringify(github.context.payload.pull_request));
const prTitle: string = github.context.payload.pull_request?.title ?? '';
const prBody: string = github.context.payload.pull_request?.body ?? '';
core.info(`Current PR title: ${prTitle}.`);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {RequestError} from '@octokit/types';

export function getInputs() {
return {
token: core.getInput('repo-token', {required: true}),
token: core.getInput('token', {required: true}),
title: core.getInput('title'),
titlePrefix: core.getInput('title-prefix'),
titleSuffix: core.getInput('title-suffix'),
Expand Down

0 comments on commit 00e41ab

Please sign in to comment.