Merge pull request #2808 from Flow-Launcher/fix-gitstream-todo

Modify gitStream todo checks
This commit is contained in:
Jeremy Wu 2024-06-28 21:56:15 +10:00 committed by GitHub
commit 4111f59ee4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,12 +32,12 @@ automations:
args:
comment: |
This PR is {{ changes.ratio }}% new code.
# Post a comment that request changes for a PR that contains a TODO statement.
# Post a comment notifying that the PR contains a TODO statement.
review_todo_comments:
if:
- {{ source.diff.files | matchDiffLines(regex=r/^[+].*(TODO)|(todo)/) | some }}
- {{ source.diff.files | matchDiffLines(regex=r/^[+].*\b(TODO|todo)\b/) | some }}
run:
- action: request-changes@v1
- action: add-comment@v1
args:
comment: |
This PR contains a TODO statement. Please check to see if they should be removed.
@ -76,4 +76,4 @@ changes:
has:
screenshot_link: {{ pr.description | includes(regex=r/!\[.*\]\(.*(jpg|svg|png|gif|psd).*\)/) }}
image_uploaded: {{ pr.description | includes(regex=r/<img.*src.*(jpg|svg|png|gif|psd).*>/) }}
image_uploaded: {{ pr.description | includes(regex=r/<img.*src.*(jpg|svg|png|gif|psd).*>/) }}