Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ddca8248
Commit
ddca8248
authored
May 01, 2015
by
Eric Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check v1beta3 description on git commit
v1beta3 is no longer a special little snowflake
parent
204170e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
prepare-commit-msg
hooks/prepare-commit-msg
+1
-2
No files found.
hooks/prepare-commit-msg
View file @
ddca8248
...
...
@@ -29,8 +29,7 @@ for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.sh" | gr
done
# Check API schema definitions for field descriptions
# TODO: Check v1beta3, once it is documented
for
file
in
$(
git diff
--cached
--name-only
--diff-filter
ACM | egrep
"pkg/api/v.[^/]*/types
\.
go"
|
grep
-v
"third_party"
|
grep
-v
v1beta3
)
;
do
for
file
in
$(
git diff
--cached
--name-only
--diff-filter
ACM | egrep
"pkg/api/v.[^/]*/types
\.
go"
|
grep
-v
"third_party"
)
;
do
# Check for files with fields without description tags
descriptionless
=
$(
"
${
KUBE_HOOKS_DIR
}
/description.sh"
"
${
file
}
"
)
if
[[
"
$descriptionless
"
-eq
"0"
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment