-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(workflows): add skywalking-eyes
license header check
#2867
Draft
homksei
wants to merge
8
commits into
oneapi-src:main
Choose a base branch
from
homksei:chore-add-reuse-tool-check
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f8a9713
chore(workflows): add `skywalking-eyes` license header check
homksei 7f9709b
chore: replace `.md` exclusions with specific files
homksei 3bdff5a
chore(workflows): update pattern in `.licenserc.yaml`
homksei 05a833e
chore: move `.licenserc.yaml` to repo root
homksei 470cba7
chore: update license headers for some files
homksei ac3170a
chore: update license headers for some .md files
homksei 7004808
chore: update license headers for couple more .rst
homksei 8b66580
chore: update license headers for couple more .rst
homksei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Copyright contributors to the oneDAL project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
header: | ||
license: | ||
spdx-id: Apache-2.0 | ||
copyright-owner: contributors to the oneDAL project | ||
pattern: | | ||
(Copyright \d{4} Intel Corporation|Copyright contributors to the oneDAL project) | ||
|
||
Licensed under the Apache License, Version 2\.0 \(the "License"\); | ||
you may not use this file except in compliance with the License\. | ||
You may obtain a copy of the License at | ||
|
||
http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. | ||
See the License for the specific language governing permissions and | ||
limitations under the License\. | ||
|
||
paths: | ||
- '**' | ||
|
||
paths-ignore: | ||
- '.gitignore' | ||
- '.gitattributes' | ||
# Bazel related files | ||
- '.bazelrc' | ||
- '.bazelversion' | ||
- 'BUILD' | ||
- 'WORKSPACE' | ||
- 'MODULE.bazel' | ||
- '**/*.tpl.BUILD' | ||
# Clang-format config | ||
- '.clang-format' | ||
# Editorconfig configs | ||
- '.ecrc' | ||
- '.editorconfig' | ||
# Samples READMEs and licenses: | ||
- 'samples/daal/cpp/mpi/README.md' | ||
- 'samples/daal/cpp/mysql/README.md' | ||
- 'samples/daal/cpp/mpi/license.txt' | ||
- 'samples/daal/cpp/mysql/license.txt' | ||
# All .csv files | ||
- '**/*.csv' | ||
# All Doxygen files and something from docs/ | ||
- 'docs/doxygen/**' | ||
- 'docs/requirements.txt' | ||
- 'docs/source/_static/style.css' | ||
- 'docs/source/_templates/layout.html' | ||
- 'docs/source/substitutions_common.txt' | ||
- 'docs/source/substitutions_specific.txt' | ||
# Some files from .ci/.github | ||
- '.ci/pipeline/**/*.yml' | ||
- '.ci/env/environment.yml' | ||
- '.ci/scripts/conformance-scripts/algorithms.txt' | ||
- '.ci/scripts/conformance-scripts/run_tests_with_context.py' | ||
- '.github/workflows/*.yml' | ||
- '.github/.mergify.yml' | ||
- '.github/CODEOWNERS' | ||
- '.github/renovate.json' | ||
# Specific files | ||
- 'LICENSE' | ||
- 'third-party-programs-mkl.txt' | ||
- 'third-party-programs.txt' | ||
- 'deploy/local/config.txt' | ||
- 'deploy/nuget/inteldal.nuspec.tpl' | ||
|
||
comment: on-failure | ||
|
||
license-location-threshold: 111 # specifies the index threshold where the license header can be located. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Check License Header | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
check-license-header: | ||
name: Check License Header | ||
if: github.repository == 'oneapi-src/oneDAL' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: Check License Header | ||
uses: apache/skywalking-eyes/header@cd7b195c51fd3d6ad52afceb760719ddc6b3ee91 # always prefer to use a revision instead of `main`. | ||
with: | ||
config: ".github/.licenserc.yaml" | ||
mode: "check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl_dpc.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels_dpc.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it also check that older Intel copyright owner that still exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this field so it won't be confusing, as it's not used for check.