Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
datacap-bot[bot] authored Apr 18, 2024
1 parent 243502b commit 135bb7e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/issue-modification-to-pr-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update PR from Issue Modification

on:
issues:
types:
- edited

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 "Updating PR from Issue: ${{ github.event.issue.number }} in $REPO_NAME"
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/update-from-issue"

0 comments on commit 135bb7e

Please sign in to comment.