Skip to content

Commit 2a94f3e

Browse files
scripts.set_copyright_year: Add a CI check to ensure the copyright is updated (eclipse-basyx#344)
Previously, there was no check if the copyright statement on top of each file (due to the MIT license) was up to date. This adapts our `update_copyright_year.sh` script with a checking mode to determine if any file needs adapting and then adds this check to the CI. At the same time, this also updates all necessary files to the year 2025. Fixes eclipse-basyx#260 Fixes eclipse-basyx#331 --------- Co-authored-by: s-heppner <[email protected]>
1 parent b178a8c commit 2a94f3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+102
-57
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,22 @@ jobs:
185185
run: |
186186
python -m build
187187
188+
repository-check-copyright:
189+
# This job checks that the copyright year in the header of all files is up to date
190+
runs-on: ubuntu-latest
191+
steps:
192+
- uses: actions/checkout@v4
193+
with:
194+
fetch-depth: 0 # Ensure full history is available
195+
- name: Install required dependencies
196+
run: |
197+
sudo apt-get update
198+
sudo apt-get install -y bash git
199+
- name: Run copyright check
200+
run: |
201+
chmod +x ./etc/scripts/set_copyright_year.sh
202+
./etc/scripts/set_copyright_year.sh --check
203+
188204
189205
compliance-tool-test:
190206
# This job runs the unittests on the python versions specified down at the matrix

compliance_tool/aas_compliance_tool/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

compliance_tool/aas_compliance_tool/compliance_check_aasx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

compliance_tool/aas_compliance_tool/compliance_check_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

compliance_tool/aas_compliance_tool/compliance_check_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

compliance_tool/aas_compliance_tool/state_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

compliance_tool/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2024-2021 the Eclipse BaSyx Authors
2+
# Copyright (c) 2025 the Eclipse BaSyx Authors
33
#
44
# This program and the accompanying materials are made available under the terms of the MIT License, available in
55
# the LICENSE file of this project.

compliance_tool/test/test_aas_compliance_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

compliance_tool/test/test_compliance_check_aasx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

compliance_tool/test/test_compliance_check_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 the Eclipse BaSyx Authors
1+
# Copyright (c) 2025 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

0 commit comments

Comments
 (0)