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

ci: add Reviewpad action #500

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/labeler.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/reviewpad.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
api-version: reviewpad.com/v3.x

workflows:
- name: label-pull-request-with-size
always-run: true
if:
- rule: $size() <= 25
extra-actions:
- $addLabel("small")
- rule: $size() > 25 && $size() <= 100
extra-actions:
- $addLabel("medium")
- rule: $size() > 100
extra-actions:
- $addLabel("large")

- name: label-pull-requests-based-on-path
always-run: true
if:
- rule: $hasFilePattern("onpremise/**")
extra-actions:
- $addLabel("jira-onpremise")
- rule: $hasFilePattern("cloud/**")
extra-actions:
- $addLabel("jira-cloud")
- rule: $hasFilePattern("docs/**")
extra-actions:
- $addLabel("documentation")

- name: welcome-first-contributors
always-run: true
if:
- rule: $totalCreatedPullRequests($author()) == 1
extra-actions:
- '$commentOnce("Thank you so much for your first contribution!")'

- name: lint-commits
always-run: true
if:
- rule: '!$hasLinearHistory()'
extra-actions:
- '$warn("This pull request does not have linear history - please fix it!")'
19 changes: 0 additions & 19 deletions .github/workflows/label.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/reviewpad.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Reviewpad

on:
pull_request_target:

permissions:
pull-requests: write

jobs:
reviewpad_job:
runs-on: ubuntu-latest
name: Reviewpad
steps:
# Run Reviewpad on all new Pull Requests! 🦄
- name: Reviewpad
uses: reviewpad/[email protected]
with:
# Uses a default Reviewpad configuration file to get your started.
# For customization and documentation, see https://github.com/reviewpad/action
file: .github/reviewpad.yml