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

Server dummy patch 2 #30717

Closed
wants to merge 6 commits into from
Closed
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
57 changes: 57 additions & 0 deletions .github/workflows/PR-Review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: PR Review

on:
pull_request:
branches: [master]

jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Check for template
run: |
# Replace "## Pull Request Template" with the actual template string
if echo "${{ github.event.pull_request.body }}" | grep "## Pull Request Template" > /dev/null; then
echo "Template found!"
else
echo "Error: PR template is missing!"
exit 1
fi

- name: Set draft status
if: always()
uses: actions/github-script@v6
with:
script: |
github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
state: 'draft'
})

- name: Add bot-review label
if: always()
uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['bot-review']
})

- name: Remove bot-review label
if: always()
uses: actions/github-script@v6
with:
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'bot-review'
})
42 changes: 42 additions & 0 deletions pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## Pull Request Template

**Please fill out this template to help us review your pull request:**

**Title:**

**Description:**

* Briefly describe the changes made in this pull request.
* Explain the motivation for the changes.
* Describe any potential drawbacks or limitations of the changes.

**Steps to reproduce:**

* Describe the steps needed to reproduce the issue or behavior addressed by this pull request.

**Expected behavior:**

* Describe the expected behavior after applying the changes in this pull request.

**Actual behavior:**

* Describe the actual behavior before applying the changes in this pull request.

**Testing:**

* Describe how you tested the changes in this pull request.
* Include any relevant test results.

**Additional notes:**

* Include any additional information that you think is important for reviewers to know.

## Checklist:**

* [ ] I have added a descriptive title to my pull request.
* [ ] I have filled out all sections of this template.
* [ ] I have reviewed the Openpilot coding guidelines.
* [ ] I have included tests for my changes.
* [ ] I have documented my changes in the README file.

**Thank you for your contribution!**
1 change: 1 addition & 0 deletions testing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
the quick brown fox jumps over the lazy brown dog
Loading