Skip to content

Commit

Permalink
remove dryrun check
Browse files Browse the repository at this point in the history
  • Loading branch information
lenkan committed Nov 10, 2024
1 parent 3ef54d0 commit 3eb2fe7
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions scripts/create-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,15 @@ function create_discussion {
}
')

if [ "${DRY_RUN}" = "true" ]; then
echo "$body"
else
gh api graphql -q '.data.createDiscussion.discussion.id' -F repoId="$repo_id" -F categoryId="$category_id" -F body="$body" -F title="$title" -f query='
mutation CreateDiscussion($repoId:ID!, $categoryId:ID!, $body:String!, $title:String!) {
createDiscussion(input: {repositoryId: $repoId, categoryId: $categoryId, body: $body, title: $title}) {
discussion {
id
}
gh api graphql -q '.data.createDiscussion.discussion.id' -F repoId="$repo_id" -F categoryId="$category_id" -F body="$body" -F title="$title" -f query='
mutation CreateDiscussion($repoId:ID!, $categoryId:ID!, $body:String!, $title:String!) {
createDiscussion(input: {repositoryId: $repoId, categoryId: $categoryId, body: $body, title: $title}) {
discussion {
id
}
}
'
fi;
}
'
}

function create_discussion_comment {
Expand Down

0 comments on commit 3eb2fe7

Please sign in to comment.