Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wordpress
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab
CI
wordpress
Merge requests
!34
Fix linting
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix linting
fix/linting
into
main
Overview
0
Commits
11
Pipelines
0
Changes
2
Merged
Erick Hitter
requested to merge
fix/linting
into
main
1 month ago
Overview
0
Commits
11
Pipelines
0
Changes
2
Expand
Capture
result.json
in artifact
Schedule run
Explore MR decorations
Edited
1 month ago
by
Erick Hitter
0
0
Merge request reports
Compare
main
version 10
d412a711
1 month ago
version 9
5d4d11bc
1 month ago
version 8
a0ee7ad4
1 month ago
version 7
feffef94
1 month ago
version 6
39e60e55
1 month ago
version 5
dd27bf3f
1 month ago
version 4
ec4b1326
1 month ago
version 3
94dfde22
1 month ago
version 2
3c81400a
1 month ago
version 1
1abaf51d
1 month ago
main (base)
and
latest version
latest version
d7817f78
11 commits,
1 month ago
version 10
d412a711
10 commits,
1 month ago
version 9
5d4d11bc
9 commits,
1 month ago
version 8
a0ee7ad4
8 commits,
1 month ago
version 7
feffef94
7 commits,
1 month ago
version 6
39e60e55
6 commits,
1 month ago
version 5
dd27bf3f
5 commits,
1 month ago
version 4
ec4b1326
4 commits,
1 month ago
version 3
94dfde22
3 commits,
1 month ago
version 2
3c81400a
2 commits,
1 month ago
version 1
1abaf51d
1 commit,
1 month ago
2 files
+
9
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
.ci-scripts/lint.sh
+
3
−
1
Options
#!/bin/bash
jq
--null-input
--arg
yaml
"
$1
"
'.content=$yaml'
\
| curl
"https://git.ethitter.com/api/v4/ci/lint?include_merged_yaml=true"
\
| curl
"https://git.ethitter.com/api/v4/
projects/
${
CI_PROJECT_ID
}
/
ci/lint?include_merged_yaml=true"
\
--silent
\
--header
'Content-Type: application/json'
\
--header
"PRIVATE-TOKEN:
$GITLAB_API_PAT
"
\
--data
@-
\
-o
result.json
# TODO: save the `result.json` as an artifact.
echo
"**********************************************************"
echo
"MERGED YAML:"
jq
--raw-output
'.merged_yaml'
< result.json
Loading