Skip to content

Commit 5d2d2ef

Browse files
typo (#72)
* typo * enable service.yaml check Co-authored-by: Saffi <saffi.hartal@codefresh.io>
1 parent 559622d commit 5d2d2ef

File tree

4 files changed

+31
-30
lines changed

4 files changed

+31
-30
lines changed
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
##!/bin/sh
2-
#
3-
#echo ${GITHUB_TOKEN} | gh auth login --with-token
4-
#export TARGET_BRANCH=$(gh api graphql -f repositoryOwner="${CF_REPO_OWNER}" -f repositoryName="${CF_REPO_NAME}" -f branchName="${CF_BRANCH}" -f query='
5-
# query getTargetBranch($repositoryOwner: String!, $repositoryName: String!, $branchName: String!) {
6-
# organization(login: $repositoryOwner) {
7-
# repository(name: $repositoryName) {
8-
# defaultBranchRef {
9-
# name
10-
# }
11-
# pullRequests(first: 1, headRefName: $branchName) {
12-
# edges {
13-
# node {
14-
# baseRefName
15-
# }
16-
# }
17-
# }
18-
# }
19-
# }
20-
# }
21-
#' | jq -r '.data.organization.repository | .pullRequests.edges[0].node.baseRefName // .defaultBranchRef.name')
22-
#echo "Target Branch: ${TARGET_BRANCH}"
23-
#export TARGET_VERSION=$(git show origin/${TARGET_BRANCH}:service.yaml | yq -r ".version" -)
24-
#echo "Target Version: ${TARGET_VERSION}"
25-
#export PACKAGE_VERSION=$(if [ -f VERSION ]; then cat VERSION; else yq -r ".version" service.yaml; fi;)
26-
#echo "Package Version: ${PACKAGE_VERSION}"
27-
#semver-cli greater ${PACKAGE_VERSION} ${TARGET_VERSION}
28-
#
1+
#!/bin/sh
2+
3+
echo ${GITHUB_TOKEN} | gh auth login --with-token
4+
export TARGET_BRANCH=$(gh api graphql -f repositoryOwner="${CF_REPO_OWNER}" -f repositoryName="${CF_REPO_NAME}" -f branchName="${CF_BRANCH}" -f query='
5+
query getTargetBranch($repositoryOwner: String!, $repositoryName: String!, $branchName: String!) {
6+
organization(login: $repositoryOwner) {
7+
repository(name: $repositoryName) {
8+
defaultBranchRef {
9+
name
10+
}
11+
pullRequests(first: 1, headRefName: $branchName) {
12+
edges {
13+
node {
14+
baseRefName
15+
}
16+
}
17+
}
18+
}
19+
}
20+
}
21+
' | jq -r '.data.organization.repository | .pullRequests.edges[0].node.baseRefName // .defaultBranchRef.name')
22+
echo "Target Branch: ${TARGET_BRANCH}"
23+
export TARGET_VERSION=$(git show origin/${TARGET_BRANCH}:service.yaml | yq -r ".version" -)
24+
echo "Target Version: ${TARGET_VERSION}"
25+
export PACKAGE_VERSION=$(if [ -f VERSION ]; then cat VERSION; else yq -r ".version" service.yaml; fi;)
26+
echo "Package Version: ${PACKAGE_VERSION}"
27+
semver-cli greater ${PACKAGE_VERSION} ${TARGET_VERSION}
28+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ For each specific connection (such as jira) parameters can be provided explicitl
130130
- **description**: the message
131131
- required
132132
- ["examples",["fix CR-11312 "]]
133+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "csdp-report-image",
33
"version": "0.0.87",
4-
"description": "CI tools client reporting a buit image by calling image-report and receiving progress events",
4+
"description": "CI tools client reporting a built image by calling image-report and receiving progress events",
55
"main": "index.js",
66
"repository": "git@github.com:codefresh-io/csdp-report-image.git",
77
"author": "saffi <saffi.hartal@codefresh.io>",

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name: csdp-report-image
2-
version: 0.0.87
2+
version: 0.0.88

0 commit comments

Comments
 (0)