Skip to content

Commit 8361723

Browse files
author
Tom Lienard
authored
feat(changesets-renovate): add more logging (#1224)
1 parent 54f4b7d commit 8361723

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/lemon-rats-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scaleway/changesets-renovate': patch
3+
---
4+
5+
Add more logging

packages/changesets-renovate/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ async function getBumps(files: string[]): Promise<Map<string, string>> {
5656
export async function run() {
5757
const branch = await simpleGit().branch(['--show-current'])
5858

59+
console.log('Detected branch:', branch)
60+
5961
if (!branch.current.startsWith('renovate/')) {
6062
console.log('Not a renovate branch, skipping')
6163

@@ -65,6 +67,8 @@ export async function run() {
6567
const diffOutput = await simpleGit().diffSummary(['--name-only', 'HEAD~1'])
6668
const diffFiles = diffOutput.files.map(file => file.file)
6769

70+
console.log('Found changed files:', diffFiles)
71+
6872
if (diffFiles.find(f => f.startsWith('.changeset'))) {
6973
console.log('Changeset already exists, skipping')
7074

0 commit comments

Comments
 (0)