From ef2d0a9076b5ed83ab8680a83af7a12835ed304c Mon Sep 17 00:00:00 2001 From: crueter Date: Sun, 15 Jun 2025 04:58:00 -0400 Subject: [PATCH] [ci] tmp: debug license-header Signed-off-by: crueter --- .ci/license-header.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.ci/license-header.rb b/.ci/license-header.rb index dda5522026..8e76366064 100644 --- a/.ci/license-header.rb +++ b/.ci/license-header.rb @@ -7,9 +7,16 @@ license_header = <<~EOF EOF print 'Getting branch changes...' +puts "\n" branch_name = `git rev-parse --abbrev-ref HEAD`.chomp +print branch_name +puts "\n" branch_commits = `git log #{branch_name} --not master --pretty=format:"%h"`.split("\n") +print branch_commits +puts "\n" branch_commit_range = "#{branch_commits[-1]}^..#{branch_commits[0]}" +print branch_commit_range +puts "\n" branch_changed_files = `git diff-tree --no-commit-id --name-only #{branch_commit_range} -r`.split("\n") puts 'done'