Skip to content
Permalink
Browse files

[github] auto milestone, fix json query

  • Loading branch information
3nids committed Jan 10, 2020
1 parent 5a65397 commit 7d1702f5dacf6d81a4e1eb9f1e89c636b62dc24f
Showing with 1 addition and 8 deletions.
  1. +1 −8 .github/workflows/pr-auto-milestone.yml
@@ -24,13 +24,6 @@ jobs:
node {
number
title
labels(first: 100) {
edges {
node {
name
}
}
}
milestone {
number
}
@@ -83,7 +76,7 @@ jobs:
echo "RE_RUN_JOB: ${RE_RUN_JOB}"
# Get the base branch
BASE_BRANCH=$(echo "${JSON_DATA}" | jq ".repository.pullRequests.edges[] | select( .node.number == ${PR_NUMBER} ) | .baseRef.name")
BASE_BRANCH=$(echo "${JSON_DATA}" | jq ".repository.pullRequests.edges[] | select( .node.number == ${PR_NUMBER} ) | .node.baseRef.name")
echo "BASE_BRANCH: ${BASE_BRANCH}"
# master => NOTHING, release_3-10 => _10

0 comments on commit 7d1702f

Please sign in to comment.
You can’t perform that action at this time.