Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pull request review event type #62

Merged

Conversation

boardfish
Copy link
Contributor

Wasn't able to test this locally as I couldn't get the action working, but it seems like a minor change that I expect is covered by existing tests.

Schema for event

Closes #61

@boardfish boardfish force-pushed the add-pull-request-review-event-type branch from 5939962 to 632e0b1 Compare April 23, 2021 14:46
Copy link
Owner

@alex-page alex-page left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boardfish
Copy link
Contributor Author

It ought to work with a workflow like this:

name: Move Unready Pull Requests to Changes Requested

on:
  pull_request_review:
    types: [submitted]

jobs:
  automate-project-columns:
    # if: github.event.review.state == 'commented'
    runs-on: ubuntu-latest
    steps:
      - uses: raisedevs/github-project-automation-plus@add-pull-request-review-event-type
        with:
          project: "Code Review"
          column: "Changes Requested"
          repo-token: ${{ secrets.GITHUB_TOKEN }}

@boardfish
Copy link
Contributor Author

Done ✨

@alex-page
Copy link
Owner

Thanks @boardfish ⚡️, I'll bump the version then ship this.

@alex-page alex-page merged commit f1b71c6 into alex-page:main Apr 23, 2021
alex-page pushed a commit that referenced this pull request Apr 23, 2021
* Add pull_request_review as a supported event type

* Update compatible event types in README
@boardfish boardfish deleted the add-pull-request-review-event-type branch April 23, 2021 15:07
alex-page pushed a commit that referenced this pull request Apr 23, 2021
* Add pull_request_review as a supported event type

* Update compatible event types in README
@alex-page
Copy link
Owner

Should be available under v0.6.0 now

@boardfish
Copy link
Contributor Author

Appears to be working. Thanks for helping me get this in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Acting on pull request review events
2 participants