diff --git a/.github/workflows/toml-checks.yaml b/.github/workflows/toml-checks.yaml new file mode 100644 index 0000000000..baac8fa1d5 --- /dev/null +++ b/.github/workflows/toml-checks.yaml @@ -0,0 +1,21 @@ +name: PR TOML Validator + +on: + push: + paths: + - '**.toml' + pull_request: + paths: + - '**.toml' + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 + - uses: tombi-toml/setup-tombi@f7cb38e77d9a62bc27a8445bf50e660e9496b893 # v1.0.7 + with: + version: 'v0.7.22' + checksum: '2f96342066b02ac374b2b457c9927264fd086256c1c6ccc817eced8367f1d83c' + - name: Validate TOML files + run: tombi lint \ No newline at end of file diff --git a/pr_agent.toml b/pr_agent.toml new file mode 100644 index 0000000000..69ba454eed --- /dev/null +++ b/pr_agent.toml @@ -0,0 +1,38 @@ +[jira] +jira_api_token = "${{ secrets.JIRA_API_TOKEN }}" +jira_base_url = "https://issues.redhat.com" + +[github_app] +# what should be launched automatically +pr_commands = [ + "/review", + "/describe --pr_description.final_update_message=false", + "/improve", +] +feedback_on_draft_pr = true + +[pr_reviewer] # /review # +persistent_comment = true +require_tests_review = false +require_ticket_analysis_review = true +enable_review_labels_security = true +enable_review_labels_effort = true + +[pr_description] # /describe # +enable_pr_diagram = false +publish_labels = true +final_update_message = true +# without this, it can interfere with Sourcery AI +publish_description_as_comment = true +publish_description_as_comment_persistent = true +add_original_user_description = false + +[pr_code_suggestions] +commitable_code_suggestions = false + +[config] +ignore_pr_authors = ["renovate", "rhdh-bot", "dependabot"] + +[rag_arguments] +enable_rag=true +rag_repo_list=['redhat-developer/rhdh','redhat-developer/red-hat-developers-documentation-rhdh'] \ No newline at end of file