Skip to content

Commit

Permalink
not instant conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
0PandaDEV committed Sep 18, 2024
1 parent c14f7ba commit 8ac25d9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/covert_to_pr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Convert Issue to Pull Request

on:
issues:
types: [opened, labeled]
issue_comment:
types: [created]
workflow_dispatch:
inputs:
issue_number:
Expand All @@ -12,7 +12,12 @@ on:

jobs:
convert_issue_to_pr:
if: (github.event_name == 'issues' && github.event.label.name == 'Add') || github.event_name == 'workflow_dispatch'
if: |
(github.event_name == 'issue_comment' &&
github.event.comment.body == '/convert' &&
github.event.comment.user.login == '0pandadev' &&
contains(github.event.issue.labels.*.name, 'Add')) ||
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit 8ac25d9

Please sign in to comment.