-
Notifications
You must be signed in to change notification settings - Fork 4
PR desc check action #32
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
Changes from 4 commits
3365e34
b279046
de6dcb2
fbbf95b
9af22eb
c144f81
c6b51a9
98d02d2
8343ce8
27fb716
c3da522
c8d3d4c
f66e2c4
fa07a7a
0dbbb89
f7e1418
5b08aba
7edbe6c
220d8ba
bb95200
0b9152e
8ec768b
28c3030
18efef7
e5e8468
d9c475d
f818c56
9d0e3c4
3d1cbd4
b664fb1
610da5c
08d41fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Copyright (c) 2025, NVIDIA CORPORATION. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://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. | ||
|
|
||
| # A workflow to check if comment exists in PR description | ||
| name: pr description check | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, edited, reopened] | ||
|
|
||
| jobs: | ||
| pr-description-check: | ||
| runs-on: ubuntu-latest | ||
| if: "!contains(github.event.pull_request.title, '[bot]')" | ||
| steps: | ||
| - name: pr-desciption-check | ||
| uses: NVIDIA/spark-rapids-common/pr-description-check@main | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Copyright (c) 2025, NVIDIA CORPORATION. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://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. | ||
|
|
||
| name: 'PR Description Check' | ||
| description: 'check if comment exists in PR description' | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Get PR description | ||
| id: pr_description | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| return context.payload.pull_request?.body || ''; | ||
|
||
|
|
||
| - name: Check comment in PR description | ||
| shell: bash | ||
| if: contains(steps.pr_description.outputs.result, '<!--') | ||
| run: | | ||
| echo "Error: PR description contains comment in '<!--'. Please remove the comment manually." | ||
| exit 1 | ||





Uh oh!
There was an error while loading. Please reload this page.