Skip to content

Commit

Permalink
Merge branch 'main' into amyles
Browse files Browse the repository at this point in the history
  • Loading branch information
amyles committed Nov 19, 2024
2 parents 5ed9c98 + b924cd5 commit b76bd2a
Show file tree
Hide file tree
Showing 1,295 changed files with 11,983 additions and 35,904 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/banned_file_changes_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
# pull_request:
# branches: [ "**/*" ]
pull_request_target:

jobs:
check_for_banned_file_changes:
name: Look for unsupported (banned) file modifications on PRs
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
echo 'Changes to files in .github are not allowed.'
- name: Comment if .github changed
if: contains(steps.files.outputs.all_files_changed, '.github')
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **Banned Files Modified**
Expand All @@ -43,15 +43,15 @@ jobs:
echo 'Changes to license_policy.yml are not allowed.'
- name: Comment if license_policy.yml changed
if: contains(steps.files.outputs.all_files_changed, '"license_policy.yml"')
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **Banned Files Modified**
Changes to `license_policy.yml` are not permitted. Please revert your changes and re-submit a new PR. Simply changing the file back to its original state and re-committing won't work (you must revert the changes made to it).
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Look for changes to repolinter.json
if: contains(steps.files.outputs.all_files_changed, '"repolinter.json"')
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **Banned Files Modified**
Expand All @@ -63,7 +63,7 @@ jobs:
echo 'Changes to repolinter.json are not allowed.'
- name: Look for changes to sonar-project.properties
if: contains(steps.files.outputs.all_files_changed, '"sonar-project.properties"')
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **Banned Files Modified**
Expand All @@ -76,4 +76,4 @@ jobs:
- name: Fail on banned file changes
if: contains(steps.files.outputs.all_files_changed, '.github') || contains(steps.files.outputs.all_files_changed, '"license_policy.yml"') || contains(steps.files.outputs.all_files_changed, '"repolinter.json"') || contains(steps.files.outputs.all_files_changed, '"sonar-project.properties"')
run: |
exit 1
exit 1
2 changes: 1 addition & 1 deletion .github/workflows/license_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: echo "${{ steps.analysis.outputs.unapproved_licenses }}"
- name: Comment if analysis finds unapproved licenses
if: steps.analysis.outputs.unapproved_licenses == 'true'
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **License Inspection**
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
echo "Errored: ${{ steps.analysis.outputs.errored }}"
- name: Comment if analysis finds missing disclaimer
if: steps.analysis.outputs.disclaimer_found == 'false'
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **FAILURE: Missing Disclaimer**
Expand All @@ -47,34 +47,34 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment if analysis finds missing readme
if: steps.analysis.outputs.readme_file_found == 'false'
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **FAILURE: Missing README**
The README file seems to be missing. Please add it.
Details:
${{ steps.analysis.outputs.readme_file_details }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment if analysis finds missing license
if: steps.analysis.outputs.license_file_found == 'false'
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:no_entry: **FAILURE: Missing LICENSE**
The LICENSE file seems to be missing. Please add it.
Details:
${{ steps.analysis.outputs.license_file_details }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment if analysis finds copyright notice missing
if: steps.analysis.outputs.copyright_found == 'false'
uses: mshick/add-pr-comment@v1
uses: oracle-devrel/add-pr-comment
with:
message: |
:warning: **WARNING: Missing Copyright Notice(s)**
It's a good idea to have copyright notices at the top of each file. It looks like at least one file was missing this (though it might be further down in the file - this might be a false-positive).
Details:
${{ steps.analysis.outputs.copyright_details }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading

0 comments on commit b76bd2a

Please sign in to comment.