Skip to content

Commit

Permalink
Merge pull request #28 from irgolic/iteratively-update-pr
Browse files Browse the repository at this point in the history
Iteratively update pull request
  • Loading branch information
irgolic committed Jun 7, 2023
2 parents 7447743 + 6eff879 commit 4b00833
Show file tree
Hide file tree
Showing 18 changed files with 871 additions and 450 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/create-pr-from-issue.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
on:
issues:
types: [labeled]
issue_comment:
types: [created]

permissions:
contents: write
Expand All @@ -9,7 +11,11 @@ permissions:

jobs:
autopr:
if: ${{ contains( github.event.label.name, 'AutoPR') }}
if: ${{ (github.event_name == 'issues' &&
contains( github.event.label.name, 'AutoPR')) ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains( github.event.comment.body, 'Hey AutoPR')) }}
runs-on: ubuntu-latest
steps:
- name: Install jq
Expand Down
Loading

0 comments on commit 4b00833

Please sign in to comment.