More debug-logging

This commit is contained in:
Jack Jackson 2025-03-05 18:31:57 -08:00
parent cc68804cfa
commit 2bc85cf6d6
8 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ jobs:
# #
# (And the token should be retrieved from Vault) # (And the token should be retrieved from Vault)
# Using `github.ref` just in case there's any race condition ambiguity. # Using `github.ref` just in case there's any race condition ambiguity.
- run: |
echo "DEBUG - github.ref is ${{ github.ref }}"
- uses: https://gitea.scubbo.org/scubbo/commit-report-sync@${{ github.ref}} - uses: https://gitea.scubbo.org/scubbo/commit-report-sync@${{ github.ref}}
with: with:
target_repo_domain: github.com target_repo_domain: github.com

1
dist/index.js vendored
View File

@ -25714,6 +25714,7 @@ function getCommitsSinceLatestBeforeGivenDate(dir, date) {
catch (e) { catch (e) {
// Just in case the error is not an `ExecSyncError` - print it out so we can see what it is. // Just in case the error is not an `ExecSyncError` - print it out so we can see what it is.
console.log(e); console.log(e);
console.log(`DEBUG - e is ${e}`);
const error = e; const error = e;
// No commits in the target repo - return an empty array, which will result in the first representative commit // No commits in the target repo - return an empty array, which will result in the first representative commit
// being made as the first commit. And then we can iterate as normal (recalling that the target history is // being made as the first commit. And then we can iterate as normal (recalling that the target history is

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -69,6 +69,7 @@ export function getCommitsSinceLatestBeforeGivenDate(dir: string, date: Date): C
} catch (e) { } catch (e) {
// Just in case the error is not an `ExecSyncError` - print it out so we can see what it is. // Just in case the error is not an `ExecSyncError` - print it out so we can see what it is.
console.log(e); console.log(e);
console.log(`DEBUG - e is ${e}`);
const error = e as ExecSyncError const error = e as ExecSyncError
// No commits in the target repo - return an empty array, which will result in the first representative commit // No commits in the target repo - return an empty array, which will result in the first representative commit
// being made as the first commit. And then we can iterate as normal (recalling that the target history is // being made as the first commit. And then we can iterate as normal (recalling that the target history is