Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions install.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ gh pr create --title "Install Autoloop" --body "Set up Autoloop workflows and co

Report the pull request link to the user.

**Important:** Before the workflow can run, add a `COPILOT_GITHUB_TOKEN` secret to your repository:

1. [Create a fine-grained PAT](https://github.com/settings/personal-access-tokens/new?name=COPILOT_GITHUB_TOKEN&description=GitHub+Agentic+Workflows+-+Copilot+engine+authentication&user_copilot_requests=read) with **Account permissions > Copilot Requests > Read**.
2. Add it to your repo: `gh aw secrets set COPILOT_GITHUB_TOKEN --value "<your-token>"`

When you finish Step 5, print this reminder with the pull request link so the user can set the secret before the first workflow run.

## Step 6: Create Your First Program

Next, suggest to the user that we create their first program, which will be added to the existing PR. If they decline, we're done. Else, continue.
Expand Down
20 changes: 20 additions & 0 deletions tests/test_install_instructions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from pathlib import Path


INSTALL_MD = Path(__file__).resolve().parents[1] / "install.md"


def test_step5_reminds_user_to_set_copilot_github_token():
install_md = INSTALL_MD.read_text()

assert "`COPILOT_GITHUB_TOKEN`" in install_md
assert "user_copilot_requests=read" in install_md
assert "gh aw secrets set COPILOT_GITHUB_TOKEN" in install_md
assert "Account permissions > Copilot Requests > Read" in install_md


def test_step5_tells_installing_agent_to_print_reminder():
install_md = INSTALL_MD.read_text()

assert "When you finish Step 5, print this reminder" in install_md
assert "with the pull request link" in install_md
Loading