Skip to content
Merged
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
24 changes: 24 additions & 0 deletions .github/workflows/copywrite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check Copywrite Headers

on:
pull_request:
push:
branches:
- "main"

jobs:
copywrite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3
name: Setup Copywrite
with:
version: v0.25.3
archive-checksum: e43f4b72fff3f219c5a5f883438d63edd5b68f5bea90a5d18abb3001c8c3aedc
- name: Check Header Compliance
run: make copywriteheaders
permissions:
contents: read
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2019, 2025
# Copyright IBM Corp. 2019, 2026
# SPDX-License-Identifier: MPL-2.0

version: "2"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright IBM Corp. 2019, 2025
Copyright IBM Corp. 2019, 2026

Mozilla Public License Version 2.0
==================================
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ filter:
@go build ./examples/filter

deps:
@go install github.com/hashicorp/copywrite@b3e6599f43beff698f471c6f46888045453fa030 # v0.25.3
@go get github.com/mna/pigeon@master
@go get golang.org/x/tools/cmd/goimports
@go get golang.org/x/tools/cmd/cover
@go mod tidy

.PHONY: generate test coverage fmt deps bench examples expr-parse expr-eval filter
copywriteheaders:
@echo "==> Running copywrite headers plan..."
@copywrite headers --plan
@echo "==> Done"

.PHONY: generate test coverage fmt deps bench examples expr-parse expr-eval filter
2 changes: 1 addition & 1 deletion bexpr_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package bexpr
Expand Down
2 changes: 1 addition & 1 deletion common_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package bexpr
Expand Down
2 changes: 1 addition & 1 deletion evaluate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package bexpr
Expand Down
2 changes: 1 addition & 1 deletion evaluate_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package bexpr
Expand Down
2 changes: 1 addition & 1 deletion examples/expr-eval/expr-eval.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package main
Expand Down
2 changes: 1 addition & 1 deletion filter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package bexpr
Expand Down
2 changes: 1 addition & 1 deletion grammar/ast.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package grammar
Expand Down
2 changes: 1 addition & 1 deletion grammar/ast_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2019, 2025
// Copyright IBM Corp. 2019, 2026
// SPDX-License-Identifier: MPL-2.0

package grammar
Expand Down
Loading