Skip to content

Commit d5c2d60

Browse files
fix: update copyright template to use custom format with dynamic year
Co-Authored-By: [email protected] <[email protected]>
1 parent 837913f commit d5c2d60

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/scripts/LICENSE_TEMPLATE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (c) {{.Year}} Airbyte, Inc., all rights reserved.

.github/scripts/add_copyright.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
YEAR=$(date +%Y)
3+
addlicense -c "Airbyte, Inc." -l copyright -v -y "$YEAR" -f .github/scripts/LICENSE_TEMPLATE "$@"

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ repos:
5757
hooks:
5858
- id: addlicense
5959
name: Add license headers
60-
entry: addlicense -c "Airbyte, Inc." -l apache -v -f LICENSE_SHORT
61-
language: golang
60+
entry: .github/scripts/add_copyright.sh
61+
language: script
6262
additional_dependencies: [github.com/google/[email protected]]
6363
files: \.py$

LICENSE_SHORT

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)