Skip to content

Deploy copilot-client.js to /opt/gh-aw/copilot/#15629

Merged
pelikhan merged 4 commits intomainfrom
copilot/update-setup-script-and-logging
Feb 14, 2026
Merged

Deploy copilot-client.js to /opt/gh-aw/copilot/#15629
pelikhan merged 4 commits intomainfrom
copilot/update-setup-script-and-logging

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Enables runtime access to copilot-client.js by deploying it to a dedicated directory during action setup.

Changes

  • setup.sh: Copies copilot-client.js (190KB bundled) to /opt/gh-aw/copilot/ during action setup
    • Creates the /opt/gh-aw/copilot/ directory if it doesn't exist
    • Copies the bundled copilot-client.js file from actions/setup/js/
    • Fails with error if file not found to prevent silent deployment failures

Usage

The copilot-client.js file is now available at /opt/gh-aw/copilot/copilot-client.js after running:

- uses: ./actions/setup
  # Deploys copilot-client.js to /opt/gh-aw/copilot/

This makes the copilot-client available for direct execution or integration with other workflow steps.

Error Handling

The setup will fail with exit code 1 if copilot-client.js is not found, ensuring packaging or build issues are caught early rather than causing silent failures in downstream workflows.

Original prompt

Update actions/setup setup.sh to copy the copilot-client.js file to /opt/gh-aw/copilot/ folder. Ensure dir exists.

Update copilot-client.yml action with a lot of logging


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…osite action

- Update actions/setup/setup.sh to copy copilot-client.js to /opt/gh-aw/copilot/
- Create .github/actions/copilot-client/action.yml with comprehensive logging
- Add extensive logging throughout copilot-client action including:
  - Prerequisites verification (file existence, Node.js availability)
  - Configuration display and validation
  - Execution timing and duration tracking
  - Event log validation (JSONL format checking)
  - Artifact upload of all logs
  - Detailed execution summary
- Add README.md documenting the copilot-client action usage

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update setup.sh to copy copilot-client.js and enhance logging Deploy copilot-client.js and add instrumented composite action Feb 14, 2026
Copilot AI requested a review from pelikhan February 14, 2026 06:22
@@ -0,0 +1,211 @@
name: 'Copilot Client'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot delete this file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 7233a93. The action.yml file has been removed while keeping the setup.sh changes for copilot-client.js deployment.

Per review feedback, removing the composite action file while retaining the setup.sh changes for copilot-client.js deployment.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Deploy copilot-client.js and add instrumented composite action Deploy copilot-client.js to /opt/gh-aw/copilot/ Feb 14, 2026
Copilot AI requested a review from pelikhan February 14, 2026 06:28
@pelikhan pelikhan marked this pull request as ready for review February 14, 2026 06:28
Copilot AI review requested due to automatic review settings February 14, 2026 06:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Deploys the bundled copilot-client.js into a stable on-runner location (/opt/gh-aw/copilot/) during actions/setup, enabling runtime access outside the normal /tmp/gh-aw/actions copy path.

Changes:

  • Update actions/setup/setup.sh to create /opt/gh-aw/copilot/ and copy actions/setup/js/copilot-client.js into it.
  • Add documentation for a copilot-client composite action under .github/actions/copilot-client/.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
actions/setup/setup.sh Copies copilot-client.js into /opt/gh-aw/copilot/ during setup.
.github/actions/copilot-client/README.md Documents a composite action interface/behavior for running copilot-client with logging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,175 @@
# Copilot Client Action
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot delete file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 4d23f75. The README.md file has been deleted.

…t.js

- Remove .github/actions/copilot-client/README.md as requested
- Change warning to error when copilot-client.js is missing
- Exit with error code 1 if file not found to prevent silent failures

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan February 14, 2026 06:39
@pelikhan pelikhan merged commit 354d436 into main Feb 14, 2026
@pelikhan pelikhan deleted the copilot/update-setup-script-and-logging branch February 14, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants