Skip to content

Commit

Permalink
[github] auto milestone, fix json query
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 10, 2020
1 parent 5a65397 commit 7d1702f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/pr-auto-milestone.yml
Expand Up @@ -24,13 +24,6 @@ jobs:
node {
number
title
labels(first: 100) {
edges {
node {
name
}
}
}
milestone {
number
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7d1702f

Please sign in to comment.