Skip to content
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

Fix add trigger and added test #561

Merged
merged 2 commits into from
May 11, 2021
Merged

Conversation

sudhirverma
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2021

Codecov Report

Merging #561 (8307d72) into master (148e2a1) will increase coverage by 0.41%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #561      +/-   ##
==========================================
+ Coverage   67.28%   67.70%   +0.41%     
==========================================
  Files          96       97       +1     
  Lines        6053     6096      +43     
  Branches     1052     1061       +9     
==========================================
+ Hits         4073     4127      +54     
+ Misses       1980     1969      -11     
Impacted Files Coverage Δ
src/tekton/addtrigger.ts 92.46% <100.00%> (+14.84%) ⬆️
src/util/watchResources.ts 80.00% <100.00%> (+2.00%) ⬆️
src/pipeline/pipeline-graph.ts 65.94% <0.00%> (-3.89%) ⬇️
src/pipeline/preview.ts 19.67% <0.00%> (-0.33%) ⬇️
src/humanizer.ts 33.33% <0.00%> (ø)
src/tkn.ts 75.20% <0.00%> (+0.06%) ⬆️
src/yaml-support/tkn-yaml.ts 93.08% <0.00%> (+0.11%) ⬆️
src/tree-view/pipelinerun-node.ts 69.44% <0.00%> (+0.87%) ⬆️
src/cli-command.ts 67.55% <0.00%> (+0.88%) ⬆️
src/tree-view/task-run-node.ts 42.85% <0.00%> (+0.92%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 148e2a1...8307d72. Read the comment docs.

@@ -45,3 +45,20 @@ export function getVersion(tektonVersion: string): TknVersion {
return tknVersion;
}
}

export function compareVersion(a: string, b: string): boolean {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could use semver package to compare versions

@sudhirverma sudhirverma merged commit 4a667a6 into redhat-developer:master May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants