Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/scripts/LICENSE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (c) {{.Year}} Airbyte, Inc., all rights reserved.
12 changes: 12 additions & 0 deletions .github/scripts/add_copyright.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e

YEAR=$(date +%Y)

if ! command -v addlicense &> /dev/null; then
echo "Installing addlicense..."
go install github.com/google/addlicense@latest
export PATH=$PATH:$(go env GOPATH)/bin
fi

addlicense -c "Airbyte, Inc." -l copyright -v -y "$YEAR" -f .github/scripts/LICENSE_TEMPLATE "$@"
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ repos:
hooks:
- id: addlicense
name: Add license headers
entry: addlicense -c "Airbyte, Inc." -l apache -v -f LICENSE_SHORT
language: golang
additional_dependencies: [github.com/google/addlicense@v1.1.1]
entry: .github/scripts/add_copyright.sh
language: system
files: \.py$
1 change: 0 additions & 1 deletion LICENSE_SHORT

This file was deleted.