-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
release(1.7.0): merge release into main
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# ############################################################################# | ||
# Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# ############################################################################# | ||
|
||
name: "Lint PullRequest" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
Check warning on line 34 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 34 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 34 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 34 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 34 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 34 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
id: lint_pr_title | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 39 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
# When the previous steps fail, the workflow would stop. By adding this | ||
# condition you can continue the execution with the populated error message. | ||
if: always() && (steps.lint_pr_title.outputs.error_message != null) | ||
with: | ||
header: pr-title-lint-error | ||
message: | | ||
Hey there and thank you for opening this pull request! 👋🏼 | ||
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. | ||
Details: | ||
``` | ||
${{ steps.lint_pr_title.outputs.error_message }} | ||
``` | ||
# Delete a previous comment when the issue has been resolved | ||
- if: ${{ steps.lint_pr_title.outputs.error_message == null }} | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/pullRequest-lint.yaml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
with: | ||
header: pr-title-lint-error | ||
delete: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
**/.DS_Store | ||
node_modules | ||
public/documentation/js/lib | ||
public/documentation/js/lib | ||
|
||
# Add legal info files during build | ||
|
||
public/assets/notice/LICENSE | ||
public/assets/notice/DEPENDENCIES | ||
public/assets/notice/NOTICE.md | ||
public/assets/notice/SECURITY.md |
This file was deleted.