diff --git a/.github/workflows/repo-automator.yml b/.github/workflows/repo-automator.yml new file mode 100644 index 00000000..715d67ef --- /dev/null +++ b/.github/workflows/repo-automator.yml @@ -0,0 +1,40 @@ +name: Repo Automator + +permissions: + contents: read + pull-requests: write + +on: + issues: + types: + - opened + push: + branches: + - develop + pull_request: + types: + - opened + - edited + - synchronize + - converted_to_draft + - ready_for_review + branches: + - develop + +jobs: + Validate: + runs-on: ubuntu-latest + + steps: + - uses: 10up/action-repo-automator@280f5dc0b4ed1b5c50c816e08623bdefce55cdce # v2.1.3 + with: + fail-label: "Needs Feedback" + pass-label: "Needs Code Review" + conflict-label: "Needs Refresh" + comment-template: "{author} thanks for the PR! Could you please fill out the PR template with description, AI tool usage, and changelog information so that we can properly review and merge this?" + conflict-comment: "{author} could you please rebase your PR on top of the latest changes from the `develop` branch?" + reviewers: | + team:ai-maintainers + validate-credits: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}