Skip to content

Commit

Permalink
chore: remove unecessary logs (#8)
Browse files Browse the repository at this point in the history
* chore: remove unnecessary logs

* chore: reconfigure submodule
  • Loading branch information
vitorhugods authored Apr 29, 2024
1 parent a8da590 commit c20c657
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Cherry-picks commits from a merged PR, creating a new PR to a target branch.
Allows setting a name of a submodule and will automatically fast-forward it to
also match the `target-branch`.

Check [action.yml](action.yml) for a description of inputs and outputs.
Check [action.yml](action.yml) for a description of inputs and outputs.

### Configuration sample:

Expand Down
7 changes: 3 additions & 4 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.

7 changes: 1 addition & 6 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ export async function gitExec(params: string[]): Promise<CommandResult> {
result.stdout = stdout.join('')
result.stderr = stderr.join('')
if (result.exitCode !== 0) {
console.error(
`Git command error. ExitCode: ${result.exitCode}. Error: ${result.stderr}`
)
console.error(`Git command error. ExitCode: ${result.exitCode}.`)
}
console.log(
`Git command exitCode: ${result.exitCode} output: ${result.stdout}`
)
result.stdout = result.stdout.trim()
result.stderr = result.stderr.trim()
return result
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import { getListOfChangedFilePaths } from './diff'
*/
export async function run(): Promise<void> {
try {
const payload = JSON.stringify(github.context.payload, undefined, 2)
console.debug(`Event Payload: ${payload}`)
// const payload = JSON.stringify(github.context.payload, undefined, 2)
// console.debug(`Event Payload: ${payload}`)

if (github.context.payload.pull_request == null) {
core.setFailed(
Expand Down

0 comments on commit c20c657

Please sign in to comment.