Skip to content

Commit 48d3517

Browse files
authored
Merge pull request #2999 from GoogleCloudPlatform/header-checker-lint
ci: Add header checker
2 parents ceca4ae + 0c7858b commit 48d3517

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/header-checker-lint.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
allowedCopyrightHolders:
16+
- 'Google LLC'
17+
- 'Google, Inc'
18+
allowedLicenses:
19+
- 'Apache-2.0'
20+
- 'MIT'
21+
- 'BSD-3'
22+
sourceFileExtensions:
23+
- 'ts'
24+
- 'js'
25+
- 'html'
26+
- 'yaml'
27+
- 'yml'
28+
- 'sh'
29+
ignoreFiles:
30+
- "packages/*/webpack.config.js"
31+
- "packages/*/__snapshots__/**/*.js"
32+
- "packages/typeless-sample-bot/test/fixtures/**/*.ts"
33+
- "packages/typeless-sample-bot/test/fixtures/**/*.js"

.github/workflows/ci.yaml.njk

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: {{name}}
216
on:
317
push:

0 commit comments

Comments
 (0)