diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 000000000000..c561abf19b9f --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,17 @@ +This documentation repository consists mainly of content written in Markdown format. These files are converted into HTML for displaying on a website. Most Markdown files become a single article on the documentation site. Other files contain reusable content which is inserted into multiple articles. The repository also contains YAML files (e.g. for variable text), image files, JavaScript/TypeScript files, etc. + +### Using variables + +Within Markdown files, with the exception of the `title` field in the metadata at the start of a file, always use the Liquid syntax variables rather than text if a variable has been defined for that text. For example: + +| Use this variable | Don't use this text | File where variable is defined | +| --- | --- | --- | +| `{% data variables.product.prodname_dotcom %}` | GitHub | data/variables/product.yml | +| `{% data variables.product.prodname_ghe_server %}` | GitHub Enterprise Server | data/variables/product.yml | +| `{% data variables.product.prodname_copilot_short %}` | Copilot | data/variables/product.yml | +| `{% data variables.product.prodname_copilot %}` | GitHub Copilot | data/variables/product.yml | +| `{% data variables.copilot.copilot_code-review_short %}` | Copilot code review | data/variables/copilot.yml | +| `{% data variables.enterprise.prodname_managed_user %}` | managed user account | data/variables/enterprise.yml | +| `{% data variables.code-scanning.codeql_workflow %}` | CodeQL analysis workflow | data/variables/code-scanning.yml | + +There are many more variables. These are stored in various YAML files within the `data/variables` directory. diff --git a/content/copilot/about-github-copilot/github-copilot-features.md b/content/copilot/about-github-copilot/github-copilot-features.md index 7157d6de64ff..e03ae4e3005d 100644 --- a/content/copilot/about-github-copilot/github-copilot-features.md +++ b/content/copilot/about-github-copilot/github-copilot-features.md @@ -68,6 +68,10 @@ Enhance {% data variables.product.prodname_copilot_chat_short %} responses by pr Automatically generate commit messages and descriptions with {% data variables.product.prodname_copilot_desktop_short %} based on the changes you make to your project. +### {% data variables.product.prodname_copilot_spaces %} ({% data variables.release-phases.public_preview %}) + +Organize and centralize relevant content—like code, docs, specs, and more—into {% data variables.product.prodname_copilot_spaces_short %} that ground {% data variables.product.prodname_copilot_short %}’s responses in the right context for a specific task. See [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces). + ### {% data variables.product.prodname_copilot_short %} knowledge bases _({% data variables.product.prodname_copilot_enterprise_short %} only)_ Create and manage collections of documentation to use as context for chatting with {% data variables.product.prodname_copilot_short %}. When you ask a question in {% data variables.product.prodname_copilot_chat_dotcom_short %} or in {% data variables.product.prodname_vscode_shortname %}, you can specify a knowledge base as the context for your question. See [AUTOTITLE](/copilot/customizing-copilot/managing-copilot-knowledge-bases). diff --git a/content/copilot/about-github-copilot/what-is-github-copilot.md b/content/copilot/about-github-copilot/what-is-github-copilot.md index 35f9e45f2f26..00085534e419 100644 --- a/content/copilot/about-github-copilot/what-is-github-copilot.md +++ b/content/copilot/about-github-copilot/what-is-github-copilot.md @@ -36,6 +36,7 @@ redirect_from: * Get code suggestions as you type in your IDE * Chat with {% data variables.product.prodname_copilot_short %} to ask for help with your code * Ask {% data variables.product.prodname_copilot_short %} for help using the command line +* Organize and share task-specific context with {% data variables.product.prodname_copilot_spaces %} to get more relevant answers * Generate a description of the changes in a pull request _({% data variables.product.prodname_copilot_enterprise_short %} only)_ * Create and manage collections of documentation, called knowledge bases, to use as a context for chatting with {% data variables.product.prodname_copilot_short %} _({% data variables.product.prodname_copilot_enterprise_short %} only)_ * Work on code changes and create a pull request for you to review _({% data variables.product.prodname_copilot_pro_plus_short %} and {% data variables.product.prodname_copilot_enterprise_short %} only)_ diff --git a/content/copilot/customizing-copilot/managing-copilot-knowledge-bases.md b/content/copilot/customizing-copilot/managing-copilot-knowledge-bases.md index 81702d2ce915..87f1ed81e9d6 100644 --- a/content/copilot/customizing-copilot/managing-copilot-knowledge-bases.md +++ b/content/copilot/customizing-copilot/managing-copilot-knowledge-bases.md @@ -20,6 +20,10 @@ redirect_from: - /copilot/github-copilot-enterprise/copilot-docset-management/about-copilot-docset-management --- +> [!TIP] If you're looking for a more flexible way to organize context for {% data variables.product.prodname_copilot_short %}, you can also try {% data variables.product.prodname_copilot_spaces %}. +> +> {% data variables.product.prodname_copilot_spaces_short %} let you combine code and free-text content—like transcripts or specs—and can be created by any {% data variables.product.prodname_copilot_short %} user, not just organization owners. They’re a good option for more focused or task-specific use cases. See [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces). + ## About knowledge bases Organization owners can create knowledge bases, bringing together Markdown documentation across one or more repositories. Organization members can then specify that knowledge base as the context for {% data variables.product.prodname_copilot_chat_dotcom_short %}, {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}, and {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vs %}. diff --git a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md index ed7b684e147a..4635819e22cc 100644 --- a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md +++ b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md @@ -32,6 +32,7 @@ Organization owners can set policies to govern how {% data variables.product.pro * Image support in {% data variables.product.prodname_copilot_chat_short %} (available in {% data variables.product.prodname_vscode_shortname %} and {% data variables.product.prodname_vs %}) >[!NOTE] This setting only applies to preview features within {% data variables.product.prodname_copilot_short %} and does not control all preview-related settings in {% data variables.product.prodname_vscode_shortname %}. * {% data variables.copilot.copilot_coding_agent %} ({% data variables.release-phases.public_preview %}) +* {% data variables.product.prodname_copilot_spaces %} (public preview) * MCP servers on {% data variables.product.prodname_dotcom_the_website %} ({% data variables.release-phases.public_preview %}) * {% data variables.product.prodname_copilot_mobile_short %} * {% data variables.product.prodname_copilot_cli_short %} and {% data variables.product.prodname_windows_terminal %} diff --git a/content/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces.md b/content/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces.md new file mode 100644 index 000000000000..4e1182a9ad33 --- /dev/null +++ b/content/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces.md @@ -0,0 +1,58 @@ +--- +title: About organizing and sharing context with Copilot Spaces +shortTitle: Organize and share context +intro: 'Understand how gathering context with {% data variables.product.prodname_copilot_spaces %} can improve your results and help your teammates.' +permissions: 'Anyone with a {% data variables.product.prodname_copilot_short %} license can use {% data variables.product.prodname_copilot_spaces_short %}.' +versions: + feature: copilot +type: overview +topics: + - Copilot +--- + +{% data reusables.copilot.copilot-spaces.preview-note %} + +{% data variables.product.prodname_copilot_spaces %} let you organize the context that {% data variables.product.prodname_copilot_short %} uses to answer your questions. {% data variables.product.prodname_copilot_spaces_short %} can include code from repositories, free-text content like transcripts or notes, and more—grouped together in one place. You can ask {% data variables.product.prodname_copilot_short %} questions grounded in that context, or share the space with your team to support collaboration and knowledge sharing. + +## Why use {% data variables.product.prodname_copilot_spaces %}? + +Whether you’re working solo or collaborating across a team, {% data variables.product.prodname_copilot_spaces_short %} help you make {% data variables.product.prodname_copilot_short %} more useful. + +With {% data variables.product.prodname_copilot_spaces %} you can: + +* Get more relevant, specific answers from {% data variables.product.prodname_copilot_short %}. +* Stay in flow by collecting what you need for a task in one place. +* Reduce repeated questions by sharing knowledge with your team. +* Support onboarding and reuse with self-service context that lives beyond chat history. + +### How are {% data variables.product.prodname_copilot_spaces_short %} different from knowledge bases? + +{% data variables.product.prodname_copilot_spaces_short %} are optimized for specific tasks and grounded conversations. Because context in {% data variables.product.prodname_copilot_spaces_short %} is scoped, {% data variables.product.prodname_copilot_short %}'s responses are more accurate and relevant. + +{% rowheaders %} + +| | {% data variables.product.prodname_copilot_spaces %} | Knowledge bases | +| -------------------- | --------------------------- | -------------------------------------------------------------- | +| Who can create | Anyone with a {% data variables.product.prodname_copilot_short %} license | Organization owners | +| Owned by | Organizations or individual users | Organizations | +| Content type | Any code hosted in repositories and free-text content | Markdown files hosted in {% data variables.product.github %} +| Context handling | Limited in size, which guarantees higher response quality given the focused selection | Unlimited, but that comes with reduced response quality | + +{% endrowheaders %} + +## Who can use {% data variables.product.prodname_copilot_spaces_short %}? + +Anyone with a {% data variables.product.prodname_copilot_short %} license, including {% data variables.product.prodname_copilot_free_short %}, can create and use {% data variables.product.prodname_copilot_spaces_short %}. + +{% data reusables.copilot.editor-preview-settings %} + +{% data variables.product.prodname_copilot_spaces_short %} can belong to a personal account or to an organization. Spaces owned by an organization can be shared with other organization members (read-only) or kept private to the person who created the space. + +Questions you submit in a space count as {% data variables.product.prodname_copilot_chat_short %} requests. + +* If you're a {% data variables.product.prodname_copilot_free_short %} user, this usage counts toward your monthly chat limit. +* If you use {% data variables.product.prodname_copilot_spaces_short %} with a premium model, this usage counts toward your premium usage quota. + +## Next steps + +To start using {% data variables.product.prodname_copilot_spaces_short %}, see [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/creating-and-using-copilot-spaces). diff --git a/content/copilot/using-github-copilot/copilot-spaces/collaborating-with-your-team-using-copilot-spaces.md b/content/copilot/using-github-copilot/copilot-spaces/collaborating-with-your-team-using-copilot-spaces.md new file mode 100644 index 000000000000..2667eef83f3a --- /dev/null +++ b/content/copilot/using-github-copilot/copilot-spaces/collaborating-with-your-team-using-copilot-spaces.md @@ -0,0 +1,48 @@ +--- +title: Collaborating with your team using Copilot Spaces +shortTitle: Collaborate with your team +intro: 'Learn how to share {% data variables.product.prodname_copilot_spaces %} with your team to support collaboration and knowledge sharing.' +permissions: 'Anyone with a {% data variables.product.prodname_copilot_short %} license can use {% data variables.product.prodname_copilot_spaces_short %}.' +versions: + feature: copilot +type: how_to +topics: + - Copilot +--- + +{% data reusables.copilot.copilot-spaces.preview-note %} + +{% data variables.product.prodname_copilot_spaces %} let you organize the context that {% data variables.product.prodname_copilot_short %} uses to answer your questions. Sharing {% data variables.product.prodname_copilot_spaces %} helps your team: + +* Avoid repeated explanations and handoffs. +* Stay aligned on how a system works or what’s expected. +* Learn from past work, documentation, and examples. +* Get better help from {% data variables.product.prodname_copilot_short %} with grounded, team-curated context. + +## Use cases for team collaboration + +* **Onboarding**: Share a space with key code, docs, and checklists to help new developers get started faster. +* **System knowledge**: Create a space for a complex system or workflow (like authentication or CI pipelines) that other people can reference. +* **Style guides or review checklists**: Document standards and examples in a space that {% data variables.product.prodname_copilot_short %} can reference when suggesting changes. + +For example, a subject matter expert creates a space called “Accessibility Reviews” that includes your team’s internal accessibility checklist, product guidelines, and WCAG documentation. Developers can ask {% data variables.product.prodname_copilot_short %} questions directly in the space to ensure they're following the latest guidelines in their work. + +## Sharing {% data variables.product.prodname_copilot_spaces_short %} + +When you create a space, you can choose whether it’s owned by you or by one of your organizations. If you choose an organization: + +* You can share the space with others in the organization, giving read access to all organization members. +* Other people with access can view the context, use {% data variables.product.prodname_copilot_short %} within the space, and ask questions. + +If you choose to create a personal space, **you can't share it with others**. + +To share a space with your organization: + +1. In the top right corner of the space, click **{% octicon "kebab-horizontal" aria-hidden="true" aria-label="kebab-horizontal" %}**, then click **{% octicon "share" aria-hidden="true" aria-label="share" %} Share**. +1. Change the base role to "The entire organization can access". + +Other people in your organization can now view the space in the "Organizations" tab and use it to ask questions. Additionally, you can also click **{% octicon "link" aria-label="the link" %} Copy link** to copy the link to the space and share it with others. + +## Accessing shared {% data variables.product.prodname_copilot_spaces_short %} + +If you’re part of an organization that has shared spaces, you can access them in the **Organizations** tab on [https://github.com/copilot/spaces](https://github.com/copilot/spaces). diff --git a/content/copilot/using-github-copilot/copilot-spaces/creating-and-using-copilot-spaces.md b/content/copilot/using-github-copilot/copilot-spaces/creating-and-using-copilot-spaces.md new file mode 100644 index 000000000000..661ff727a575 --- /dev/null +++ b/content/copilot/using-github-copilot/copilot-spaces/creating-and-using-copilot-spaces.md @@ -0,0 +1,46 @@ +--- +title: Creating and using Copilot Spaces +shortTitle: Create and use Copilot Spaces +intro: 'Create spaces to organize and centralize relevant content that grounds {% data variables.product.prodname_copilot_short %}’s responses in the right context for a specific task.' +permissions: 'Anyone with a {% data variables.product.prodname_copilot_short %} license can use {% data variables.product.prodname_copilot_spaces_short %}.' +versions: + feature: copilot +type: how_to +topics: + - Copilot +--- + +{% data reusables.copilot.copilot-spaces.preview-note %} + +1. To create a space, go to [https://github.com/copilot/spaces](https://github.com/copilot/spaces), and click **Create space**. +1. Give your space a name. +1. Choose whether the space is owned by you or by an organization you belong to. Organization-owned {% data variables.product.prodname_copilot_spaces_short %} can be shared using {% data variables.product.github %}’s built-in permission model. +1. Optionally, add a description to help others understand the purpose of the space. +1. Click **Create**. + +## Adding context to {% data variables.product.prodname_copilot_spaces_short %} + +You can add two types of context to your space: + +* **Instructions**: Free text that describes what {% data variables.product.prodname_copilot_short %} should focus on within this space. Include its areas of expertise, what kinds of tasks it should help with, and what it should avoid. This helps {% data variables.product.prodname_copilot_short %} give more relevant responses based on your intent. + + For example: + + > You are a SQL generator. Your job is to take the sample queries and data schemas defined in the attached files and and generate SQL queries based on the user's goals. + +* **References**: You can add any code hosted in {% data variables.product.github %} repositories, including public and private repositories. You can also add free-text content, such as transcripts or notes. + + >[!TIP] You don’t need formal docs to get value from {% data variables.product.prodname_copilot_spaces_short %}. Try pasting in a Slack thread, a video call summary, or even bullet-point notes. + +This context will be used to provide more relevant answers to your questions. Additionally, {% data variables.product.prodname_copilot_spaces_short %} will always refer to the latest version of the code on the `main` branch of the repository. + +## Using {% data variables.product.prodname_copilot_spaces_short %} + +Once you've added context to your space, you can ask {% data variables.product.prodname_copilot_short %} questions in the chat interface. Your chat will be grounded in the context you've added. + +You can also change the large language model (LLM) used for your space by selecting the **CURRENT-MODEL** {% octicon "chevron-down" aria-hidden="true" aria-label="chevron-down" %} dropdown menu, then clicking the AI model of your choice. For more information about choosing the right AI model, see [AUTOTITLE](/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task). + +## Next steps + +* To learn more about how to use {% data variables.product.prodname_copilot_spaces_short %} to help you with development work, see [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/speeding-up-development-work-with-copilot-spaces). +* To learn how to share your space with your team, see [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/collaborating-with-your-team-using-copilot-spaces). diff --git a/content/copilot/using-github-copilot/copilot-spaces/index.md b/content/copilot/using-github-copilot/copilot-spaces/index.md new file mode 100644 index 000000000000..a70007fcd8fa --- /dev/null +++ b/content/copilot/using-github-copilot/copilot-spaces/index.md @@ -0,0 +1,13 @@ +--- +title: Copilot Spaces +intro: "Organize and centralize relevant content into {% data variables.product.prodname_copilot_spaces_short %} that ground {% data variables.product.prodname_copilot_short %}’s responses in the right context for a specific task." +versions: + feature: copilot +topics: + - Copilot +children: + - /about-organizing-and-sharing-context-with-copilot-spaces + - /creating-and-using-copilot-spaces + - /speeding-up-development-work-with-copilot-spaces + - /collaborating-with-your-team-using-copilot-spaces +--- diff --git a/content/copilot/using-github-copilot/copilot-spaces/speeding-up-development-work-with-copilot-spaces.md b/content/copilot/using-github-copilot/copilot-spaces/speeding-up-development-work-with-copilot-spaces.md new file mode 100644 index 000000000000..c4e31fb6d7a8 --- /dev/null +++ b/content/copilot/using-github-copilot/copilot-spaces/speeding-up-development-work-with-copilot-spaces.md @@ -0,0 +1,71 @@ +--- +title: Speeding up development work with Copilot Spaces +shortTitle: Speed up development work +intro: 'Learn how to use {% data variables.product.prodname_copilot_spaces %} to help you with development work.' +permissions: 'Anyone with a {% data variables.product.prodname_copilot_short %} license can use {% data variables.product.prodname_copilot_spaces_short %}.' +versions: + feature: copilot +type: how_to +topics: + - Copilot +--- + +{% data reusables.copilot.copilot-spaces.preview-note %} + +If you're starting a new feature, trying to understand a system, or picking up a task in a codebase you’re still learning, {% data variables.product.prodname_copilot_spaces %} can help you: + +* Stay focused by organizing the context you need in one place. +* Get better help from {% data variables.product.prodname_copilot_short %} by grounding it in relevant code and documentation. +* Move faster without switching between tools or asking others for background information. + +To create a space, go to [https://github.com/copilot/spaces](https://github.com/copilot/spaces), and click **Create space**. + +Below are some examples of how to use {% data variables.product.prodname_copilot_spaces_short %} to help you with development work. + +## Developing a new feature + +When working on a specific feature, you can save time and produce higher-quality results by using a space. Add the relevant code, a product spec, and any supporting materials—like notes from a design review or image descriptions of mockups. {% data variables.product.prodname_copilot_short %} can help you: + +* Summarize how the current implementation works. +* Suggest changes or additions based on the spec. +* Draft a first implementation or outline next steps. +* Flag missing elements or inconsistencies. + +**Instructions**: +> This space contains the new user registration form for a healthcare nonprofit providing low-cost testing. It is built using React and Tailwind. + +**Suggested prompt**: +> How should I add support for 2FA? + +## Defining the logic for a small, frequent task + +When working on repetitive tasks like tracking telemetry events or handling event emissions, it’s useful to document the logic once and share it with others through {% data variables.product.prodname_copilot_spaces_short %}. This allows everyone to stay consistent and saves time when performing the task. {% data variables.product.prodname_copilot_short %} can assist by: + +* Suggesting efficient patterns based on your previous work. +* Helping write reusable functions or templates. +* Reviewing the logic to ensure it aligns with project standards. +* Providing examples of how similar tasks have been handled in the codebase. + +**Instructions**: +> You help developers implement telemetry events. You should (1) validate what the user's goals are for the event, (2) propose a new event structure based on examples of existing events (and using the common telemetry schema), and (3) create a new version of the telemetry config file. + +**Suggested prompt**: +> Help me log when a user clicks on an in-app notification. + +## Sharing knowledge with teammates + +In situations where people tend to ask similar questions, such as how authentication or search works in your project, {% data variables.product.prodname_copilot_short %} can help: + +* Explain how the code works. +* Answer questions grounded in the latest documentation. +* Guide new team members on the best practices. + +**Instructions**: +> You contain the code and documentation associated with our authentication system. + +**Suggested prompt**: +> How does SSO work? + +## Next steps + +Once you’ve created a space to help with development tasks, consider sharing it with your team to reduce handoffs and repeated questions. See [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/collaborating-with-your-team-using-copilot-spaces). diff --git a/content/copilot/using-github-copilot/guides-on-using-github-copilot/writing-tests-with-github-copilot.md b/content/copilot/using-github-copilot/guides-on-using-github-copilot/writing-tests-with-github-copilot.md index 3dcf0fde4917..511210d135b4 100644 --- a/content/copilot/using-github-copilot/guides-on-using-github-copilot/writing-tests-with-github-copilot.md +++ b/content/copilot/using-github-copilot/guides-on-using-github-copilot/writing-tests-with-github-copilot.md @@ -1,6 +1,6 @@ --- title: Writing tests with GitHub Copilot -intro: 'Use {% data variables.product.prodname_copilot_short %} to generate unit and integration tests, and help improve code quality.' +intro: 'Use {% data variables.product.prodname_copilot_short %} to generate unit and integration tests, and help improve code quality.' topics: - Copilot versions: @@ -175,10 +175,10 @@ class BankAccount: if amount > self.balance: raise ValueError("Cannot withdraw more than the current balance.") self.balance -= amount - + if self.notification_system: self.notification_system.notify(f"Withdrew {amount}, new balance: {self.balance}") - + def get_balance(self): return self.balance ``` @@ -211,7 +211,7 @@ class TestBankAccountIntegration(unittest.TestCase): account.deposit(50) self.assertEqual(account.get_balance(), 150) self.notification_system.notify.assert_called_once_with("Deposited 50, new balance: 150") - + if __name__ == '__main__': unittest.main() ``` @@ -314,3 +314,23 @@ Once Copilot has generated the test suite to your satisfaction, run the tests wi ```bash python -m unittest test_bank_account_integration.py ``` + +## Using {% data variables.product.prodname_copilot_spaces %} to improve test suggestions + +{% data variables.product.prodname_copilot_spaces %} is a feature that allows you to organize and share task-specific context with {% data variables.product.prodname_copilot_short %}. This can help improve the relevance of the suggestions you receive. By providing {% data variables.product.prodname_copilot_short %} with more context about your project, you can get better test suggestions. + +For example, you could create a space that includes: + +* The module you’re testing (like `payments.js`) +* The current test suite (like `payments.test.js`) +* A test coverage report or notes about what's missing + +In the space, you can ask {% data variables.product.prodname_copilot_short %} questions like: + +> What test cases are missing in `payments.test.js` based on the logic in `payments.js`? + +Or: + +> Write a unit test for the refund logic in `refund.js`, following the structure in the existing test suite. + +For more information about using {% data variables.product.prodname_copilot_spaces %}, see [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces). diff --git a/content/copilot/using-github-copilot/index.md b/content/copilot/using-github-copilot/index.md index daf0d404f415..195f5a8e8827 100644 --- a/content/copilot/using-github-copilot/index.md +++ b/content/copilot/using-github-copilot/index.md @@ -10,6 +10,7 @@ children: - /best-practices-for-using-github-copilot - /getting-code-suggestions-in-your-ide-with-github-copilot - /copilot-chat + - /copilot-spaces - /coding-agent - /asking-github-copilot-questions-in-windows-terminal - /using-copilot-text-completion diff --git a/data/reusables/copilot/copilot-spaces/preview-note.md b/data/reusables/copilot/copilot-spaces/preview-note.md new file mode 100644 index 000000000000..6c580a7b651b --- /dev/null +++ b/data/reusables/copilot/copilot-spaces/preview-note.md @@ -0,0 +1 @@ +>[!NOTE] {% data variables.product.prodname_copilot_spaces %} is in {% data variables.release-phases.public_preview %} and subject to change. diff --git a/data/variables/product.yml b/data/variables/product.yml index e6d0f345cc07..d48e3b025d4d 100644 --- a/data/variables/product.yml +++ b/data/variables/product.yml @@ -350,6 +350,8 @@ prodname_copilot_workspace_pr: 'GitHub Copilot Workspace for pull requests' prodname_copilot_workspace_pr_short: 'Copilot Workspace for PRs' prodname_copilot_workspace: 'Copilot Workspace' prodname_copilot_workspace_short: 'Workspace' +prodname_copilot_spaces: 'Copilot Spaces' +prodname_copilot_spaces_short: 'Spaces' # GHAS licensed features branded as Copilot prodname_copilot_autofix: 'GitHub Copilot Autofix' diff --git a/src/workflows/projects.ts b/src/workflows/projects.ts index 1bfe79c35c68..10d9ba747a1d 100644 --- a/src/workflows/projects.ts +++ b/src/workflows/projects.ts @@ -94,8 +94,8 @@ export async function addItemToProject(item: string, project: string) { // Given a GitHub login, returns a bool indicating // whether the login is part of the docs team export async function isDocsTeamMember(login: string) { - // Returns true if login is docs-bot, to bypass the checks and make PRs opened by docs-bot be treated as though they were made by a docs team member - if (login === 'docs-bot') { + // Returns true if login is docs-bot or copilot, to bypass the checks and make PRs opened by docs-bot or copilot be treated as though they were made by a docs team member + if (login === 'docs-bot' || login === 'copilot') { return true } // Get all members of the docs team