From c82a94716c0d7911c00bd9eceee8ff3d550ec267 Mon Sep 17 00:00:00 2001 From: umital-intel Date: Wed, 10 Jan 2024 14:20:32 +0530 Subject: [PATCH 1/5] Creating ./workflow_ymls/DEVELOPER_ASSISTANT.yaml [skip ci] --- .github/workflows/DEVELOPER_ASSISTANT.yaml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/DEVELOPER_ASSISTANT.yaml diff --git a/.github/workflows/DEVELOPER_ASSISTANT.yaml b/.github/workflows/DEVELOPER_ASSISTANT.yaml new file mode 100644 index 000000000..0ee1b7cf9 --- /dev/null +++ b/.github/workflows/DEVELOPER_ASSISTANT.yaml @@ -0,0 +1,28 @@ +name: DEVELOPER ASSISTANT +on: + pull_request: + types: + - opened + issue_comment: + +permissions: + issues: write + pull-requests: write + +jobs: + pr_agent_job: + if: ((contains(github.event.comment.body, '/review') || + contains(github.event.comment.body, '/describe')) && github.event.comment.user.login != 'nex-maximus') || + github.event_name == 'pull_request' && github.event.pull_request.user.login != 'nex-maximus' + runs-on: [self-hosted, genai_copilot-code-review] + steps: + - name: PR Agent action step + id: pragent + run: | + cd ../../../genai_pr_agent + chmod +x ./get_pr_agent_details.sh + ./get_pr_agent_details.sh + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + GITHUB_ACTION.AUTO_REVIEW: true + GITHUB_ACTION.AUTO_DESCRIBE: true From 4ee35692bb042d096c5c1641096b47e73aca9dc7 Mon Sep 17 00:00:00 2001 From: umital-intel Date: Wed, 10 Jan 2024 14:33:24 +0530 Subject: [PATCH 2/5] Updating ./workflow_ymls/DEVELOPER_ASSISTANT.yaml [skip ci] From 339547a47eaceb9544beccaf2a5dcbb95f82497c Mon Sep 17 00:00:00 2001 From: umital-intel Date: Wed, 10 Jan 2024 14:44:44 +0530 Subject: [PATCH 3/5] Create temp.py --- temp.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 temp.py diff --git a/temp.py b/temp.py new file mode 100644 index 000000000..6c80ac405 --- /dev/null +++ b/temp.py @@ -0,0 +1,8 @@ +def reset_files(filepath, file_type="txt"): + with open(filepath, "w") as output_file: + if file_type == "txt": + output_file.write("") + elif file_type == "json": + output_file.write(json.dumps({})) + else: + log.error("ERROR: Invalid file type") From 1e99e80abfaa3b468ea2dc164225520902cba18d Mon Sep 17 00:00:00 2001 From: umital-intel Date: Thu, 11 Jan 2024 08:34:04 +0530 Subject: [PATCH 4/5] Updating ./workflow_ymls/DEVELOPER_ASSISTANT.yaml [skip ci] From a22750085e39c3aa2dcb6a6fa717e5259d4c3bbf Mon Sep 17 00:00:00 2001 From: umital-intel Date: Thu, 11 Jan 2024 21:07:10 +0530 Subject: [PATCH 5/5] Updating ./workflow_ymls/DEVELOPER_ASSISTANT.yaml [skip ci] --- .github/workflows/DEVELOPER_ASSISTANT.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/DEVELOPER_ASSISTANT.yaml b/.github/workflows/DEVELOPER_ASSISTANT.yaml index 0ee1b7cf9..03d60405d 100644 --- a/.github/workflows/DEVELOPER_ASSISTANT.yaml +++ b/.github/workflows/DEVELOPER_ASSISTANT.yaml @@ -4,11 +4,7 @@ on: types: - opened issue_comment: - -permissions: - issues: write - pull-requests: write - + jobs: pr_agent_job: if: ((contains(github.event.comment.body, '/review') ||