Closed
Description
I use the tool for different parts seperately in my project. My script looks like below and it checks 3 parts in my code:
name: "Duplicate code"
on:
issue_comment:
types:
- created
permissions:
contents: read
pull-requests: write
jobs:
duplicate-code-check:
name: Check for duplicate code
runs-on: ubuntu-latest
if: github.event.issue.pull_request && contains(github.event.comment.body, 'run_duplicate_code_detection')
steps:
- name: Check for duplicate code(core)
uses: platisd/duplicate-code-detection-tool@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directories: "core"
file_extensions: "java, py"
one_comment: true
- name: Check for duplicate code(datasource)
if: always()
uses: platisd/duplicate-code-detection-tool@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directories: "dataSources"
file_extensions: "java, py"
one_comment: true
- name: Check for duplicate code(session, shared)
if: always()
uses: platisd/duplicate-code-detection-tool@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directories: "session, shared"
file_extensions: "java, py"
one_comment: true
I would like having one comment in PR for each part (that is 3 comments in total). And when the script runs again, it chooses to update these 3 comments.
For now, it can only update the latest comment. So it would make one comment and edit it twice. But if I choose to create comment every time, there will be too many comments.
Metadata
Metadata
Assignees
Labels
No labels