Skip to content

Commit

Permalink
Add CI step to create a issue from a PR
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed Jul 1, 2024
1 parent 811de8b commit 2f08c58
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/create-issue-from-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create issue from PR

on:
pull_request:
types: [opened]

jobs:
create-issue:
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- name: Create issue from PR and verify membership
uses: vitorsavian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: |
${{ github.event.pull_request.title }}
body: |
${{ github.event.pull_request.body }}
repo: k3s
org: k3s-io
user: ${{ github.event.pull_request.user.login }}

0 comments on commit 2f08c58

Please sign in to comment.