Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unecessary logs #8

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading