Add .github/aw/.gitignore to exclude imports folder#23300
Add .github/aw/.gitignore to exclude imports folder#23300
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/70a5afc2-e75a-43a8-8423-18542e9b9004 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
… with imports/ entry Agent-Logs-Url: https://github.com/github/gh-aw/sessions/25ad36e8-2a03-47e9-ad53-c7f4f06cf236 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot you must also gitignore the logs folder. Find code that already configure gitignore |
…eAwGitignore to handle existing files Agent-Logs-Url: https://github.com/github/gh-aw/sessions/c345bb70-3331-45ec-b4b1-65cba155911a Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added |
|
@copilot review gitignore support and avoid duplication |
…re already handles it Agent-Logs-Url: https://github.com/github/gh-aw/sessions/02e89237-8e68-459a-80fa-17ad165a0851 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
The existing |
The
.github/aw/folder lacked a.gitignore, meaning contents of subdirectories likeimports/could accidentally be committed.Changes
.github/aw/.gitignore(new): Created with animports/entry to prevent the imports folder from being tracked by git. Thelogs/directory is excluded separately via.github/aw/logs/.gitignore(managed by the existingensureLogsGitignore()mechanism).pkg/cli/git.go: AddedensureAwGitignore()function that ensures.github/aw/.gitignorecontains all required entries. If the file already exists, any missing entries are appended, making the function idempotent. Logs directory exclusion is intentionally left to the pre-existingensureLogsGitignore(), which places a.gitignoreinside.github/aw/logs/so the directory itself remains tracked by git.pkg/cli/init.go: UpdatedInitRepository()to callensureAwGitignore()so that runninggh aw initautomatically creates or updates the.github/aw/.gitignorefile in new and existing repositories.📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.