Skip to content

feat(chat): Auto-rename files on clash the folder or uploaded other files during upload multiple files from device (Issue #7134) #13290

feat(chat): Auto-rename files on clash the folder or uploaded other files during upload multiple files from device (Issue #7134)

feat(chat): Auto-rename files on clash the folder or uploaded other files during upload multiple files from device (Issue #7134) #13290

name: Slash Command Dispatch
on:
issue_comment:
types: [created]
jobs:
slashCommandDispatch:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request }}
steps:
- name: Find PR Base Branch
id: pr
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
retries: 3
script: |
const { data: pull } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.issue.number
})
core.setOutput('base-ref', pull.base.ref)
- name: Slash Command Dispatch
id: scd
uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
reaction-token: ${{ secrets.ACTIONS_BOT_TOKEN }}
config: >
[
{
"command": "deploy-review",
"permission": "write",
"issue_type": "pull-request",
"repository": "epam/ai-dial-ci",
"static_args": [
"application=${{ steps.pr.outputs.base-ref == 'development-1.0' && 'ai-dial-chat-ng' || github.event.repository.name }}",
"test-applications=chat,overlay",
"${{ steps.pr.outputs.base-ref == 'development-1.0' && 'skip-e2e' || '' }}"
]
}
]