Skip to content

Commit

Permalink
Create parse_issue.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyalj authored Nov 27, 2019
1 parent 6a99792 commit e67f425
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions parse_issue.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh -l
curl -H "Authorization: token $GITHUB_TOKEN" -X GET https://api.github.com/repos/$INPUT_ORG_NAME/$INPUT_REPO_NAME/issues --header "Content-Type:application/vnd.github.symmetra-preview+json" | jq '.[0] | .body' > issues
env
sed 's/\"//g' issues > latest_issue
cat latest_issue
ls
git clone https://github.com/$INPUT_ORG_NAME/$INPUT_REPO_NAME
ls
cat latest_issue
mv latest_issue $INPUT_REPO_NAME/issues
git config --global user.email "$INPUT_GLOBAL_EMAIL"
git config --global user.name "$GITHUB_ACTOR"
cd $INPUT_REPO_NAME
git add .
git commit -m "Add latest_issue"
git push https://$INPUT_ORG_NAME:$GITHUB_TOKEN@github.com/$INPUT_ORG_NAME/$INPUT_REPO_NAME.git

0 comments on commit e67f425

Please sign in to comment.