Browse Source
[ci] tmp: debug license-header
Signed-off-by: crueter <swurl@swurl.xyz>
pull/21/head
crueter
6 months ago
No known key found for this signature in database
GPG Key ID: A5A7629F109C8FD1
1 changed files with
7 additions and
0 deletions
-
.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' |
|
|
|
|
|
|
|
|