Skip to content

[DataCap Application] <The Second Life> - <3D-printed> #4

[DataCap Application] <The Second Life> - <3D-printed>

[DataCap Application] <The Second Life> - <3D-printed> #4

Workflow file for this run

name: Convert Issue To Pull Request
on:
issues:
types:
- opened
jobs:
convert-issue-to-pr:
runs-on: ubuntu-latest
env:
BACKEND_URL: https://fp-core-prod.dp04sa0tdc6pk.us-east-1.cs.amazonlightsail.com
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Convert Issue To PR
run: |
REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)
echo "Converting Issue To PR with repo: $REPO_NAME"
echo "Issue number: ${{ github.event.issue.number }}"
curl --header "Content-Type: application/json" \
--request POST \
--data '{"issue_number": "'${{ github.event.issue.number }}'", "repo": "'$REPO_NAME'", "owner": "'${{ github.repository_owner }}'"}' \
"${BACKEND_URL}/application"