forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'commaai:master' into master
- Loading branch information
Showing
233 changed files
with
4,450 additions
and
3,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: jenkins scan | ||
|
||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
# TODO: gc old branches in a separate job in this workflow | ||
scan-comments: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.issue.pull_request }} | ||
steps: | ||
- name: Check for trigger phrase | ||
id: check_comment | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const triggerPhrase = "trigger-jenkins"; | ||
const comment = context.payload.comment.body; | ||
const commenter = context.payload.comment.user.login; | ||
const { data: permissions } = await github.rest.repos.getCollaboratorPermissionLevel({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
username: commenter | ||
}); | ||
const hasWriteAccess = permissions.permission === 'write' || permissions.permission === 'admin'; | ||
return (hasWriteAccess && comment.includes(triggerPhrase)); | ||
result-encoding: json | ||
|
||
- name: Checkout repository | ||
if: steps.check_comment.outputs.result == 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ github.event.issue.number }}/head | ||
|
||
- name: Push to tmp-jenkins branch | ||
if: steps.check_comment.outputs.result == 'true' | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git checkout -b tmp-jenkins-${{ github.event.issue.number }} | ||
GIT_LFS_SKIP_PUSH=1 git push -f origin tmp-jenkins-${{ github.event.issue.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,17 +46,13 @@ jobs: | |
python3 -m ensurepip --upgrade | ||
pip3 install uv | ||
uv lock --upgrade | ||
- name: pre-commit autoupdate | ||
run: | | ||
git config --global --add safe.directory '*' | ||
pre-commit autoupdate | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@9153d834b60caba6d51c9b9510b087acf9f33f83 | ||
with: | ||
author: Vehicle Researcher <[email protected]> | ||
token: ${{ secrets.ACTIONS_CREATE_PR_PAT }} | ||
commit-message: Update Python packages and pre-commit hooks | ||
title: '[bot] Update Python packages and pre-commit hooks' | ||
commit-message: Update Python packages | ||
title: '[bot] Update Python packages' | ||
branch: auto-package-updates | ||
base: master | ||
delete-branch: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.