-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6547 from esphome/bump-2024.4.0
2024.4.0
- Loading branch information
Showing
853 changed files
with
22,265 additions
and
772 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: API Proto CI | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "esphome/components/api/api.proto" | ||
- "esphome/components/api/api_pb2.cpp" | ||
- "esphome/components/api/api_pb2.h" | ||
- "esphome/components/api/api_pb2_service.cpp" | ||
- "esphome/components/api/api_pb2_service.h" | ||
- "script/api_protobuf/api_protobuf.py" | ||
- ".github/workflows/ci-api-proto.yml" | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
check: | ||
name: Check generated files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt-cache show protobuf-compiler | ||
sudo apt install -y protobuf-compiler | ||
protoc --version | ||
- name: Install python dependencies | ||
run: pip install aioesphomeapi -c requirements.txt -r requirements_dev.txt | ||
- name: Generate files | ||
run: script/api_protobuf/api_protobuf.py | ||
- name: Check for changes | ||
run: | | ||
if ! git diff --quiet; then | ||
echo "## Job Failed" | tee -a $GITHUB_STEP_SUMMARY | ||
echo "You have altered the generated proto files but they do not match what is expected." | tee -a $GITHUB_STEP_SUMMARY | ||
echo "Please run 'script/api_protobuf/api_protobuf.py' and commit the changes." | tee -a $GITHUB_STEP_SUMMARY | ||
exit 1 | ||
fi | ||
- if: failure() | ||
name: Review PR | ||
uses: actions/github-script@v7.0.1 | ||
with: | ||
script: | | ||
await github.rest.pulls.createReview({ | ||
pull_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
event: 'REQUEST_CHANGES', | ||
body: 'You have altered the generated proto files but they do not match what is expected.\nPlease run "script/api_protobuf/api_protobuf.py" and commit the changes.' | ||
}) | ||
- if: success() | ||
name: Dismiss review | ||
uses: actions/github-script@v7.0.1 | ||
with: | ||
script: | | ||
let reviews = await github.rest.pulls.listReviews({ | ||
pull_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}); | ||
for (let review of reviews.data) { | ||
if (review.user.login === 'github-actions[bot]' && review.state === 'CHANGES_REQUESTED') { | ||
await github.rest.pulls.dismissReview({ | ||
pull_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
review_id: review.id, | ||
message: 'Files now match the expected proto files.' | ||
}); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
name: Lock | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
schedule: | ||
- cron: "30 0 * * *" | ||
|
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Needs Docs | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
types: [labeled, unlabeled] | ||
|
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
name: Stale | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
schedule: | ||
- cron: "30 0 * * *" | ||
|
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
name: YAML lint | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
branches: [dev, beta, release] | ||
|
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ rules: | |
indent-sequences: true | ||
check-multi-line-strings: false | ||
line-length: disable | ||
truthy: disable |
Validating CODEOWNERS rules …
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.