Skip to content

Commit

Permalink
Merge pull request #1559 from elementary-data/create_pylon_issue
Browse files Browse the repository at this point in the history
Created create_pylon_issue.yml workflow
  • Loading branch information
oravi committed Jun 21, 2024
2 parents 6857d2f + 893e5d5 commit 47c18e3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/create_pylon_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Create Pylon Issue

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
create_pylon_issue:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Create Pylon Issue for GitHub Issue
if: github.event_name == 'issues'
run: |
curl -X POST "https://api.usepylon.com/v1/issues" \
-H "Authorization: Bearer ${{ secrets.PYLON_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{
"title": "${{ github.event.issue.title }}",
"description": "${{ github.event.issue.body }}",
"repository": "${{ github.repository }}",
"type": "GitHub Issue",
"url": "${{ github.event.issue.html_url }}"
}'
- name: Create Pylon Issue for Pull Request
if: github.event_name == 'pull_request'
run: |
curl -X POST "https://api.usepylon.com/v1/issues" \
-H "Authorization: Bearer ${{ secrets.PYLON_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{
"title": "${{ github.event.pull_request.title }}",
"description": "${{ github.event.pull_request.body }}",
"repository": "${{ github.repository }}",
"type": "Pull Request",
"url": "${{ github.event.pull_request.html_url }}"
}'

0 comments on commit 47c18e3

Please sign in to comment.