Skip to content
Merged
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
4 changes: 4 additions & 0 deletions content/billing/concepts/budgets-and-alerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Each budget has a type and a scope that define which paid use contributes to spe
* **Type**: Defines which metered product or SKU is measured.
* **Scope**: Defines whether the budget applies to the whole account, or to a subset of repositories, organizations, or cost centers (enterprise only).

## Budget alerts

You can enable alerts for budgets to receive emails when usage reaches 75%, 90%, and 100% of the budget amount. Emails are sent to account owners and billing managers by default. Additional recipients can be added as needed.

## Your first billing cycle after creating a budget

When you first create a budget, be aware that the budget applies only to metered usage from the date of its creation onwards. Any use made before you created the budget is not included in the calculations. This means that you may exceed your budget in the first billing cycle after you create your budget, even if you select the option stop usage when the limit is reached.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ The agent can use tools provided by local and remote MCP servers. Some MCP serve

For more information on MCP, see [the official MCP documentation](https://modelcontextprotocol.io/introduction). For information on some of the currently available MCP servers, see [the MCP servers repository](https://github.com/modelcontextprotocol/servers/tree/main).

> [!NOTE]
> * {% data variables.copilot.copilot_coding_agent %} only supports tools provided by MCP servers. It does not support resources or prompts.
> * {% data variables.copilot.copilot_coding_agent %} does not currently support remote MCP servers that leverage OAuth for authentication and authorization.
{% data reusables.copilot.mcp.coding-agent-limitations %}

## Default MCP servers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ As a repository administrator, you can configure MCP servers for use within your
> [!WARNING]
> Once you've configured an MCP server, {% data variables.product.prodname_copilot_short %} will be able to use the tools provided by the server autonomously, and will not ask for your approval before using them.

{% data reusables.copilot.mcp.coding-agent-limitations %}

## Adding an MCP configuration to your repository

Repository administrators can configure MCP servers by following these steps:
Expand Down
3 changes: 3 additions & 0 deletions data/reusables/copilot/mcp/coding-agent-limitations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> [!NOTE]
> * {% data variables.copilot.copilot_coding_agent %} only supports tools provided by MCP servers. It does not support resources or prompts.
> * {% data variables.copilot.copilot_coding_agent %} does not currently support remote MCP servers that leverage OAuth for authentication and authorization.
2 changes: 1 addition & 1 deletion data/reusables/repositories/multiple-lines-comment.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1. Optionally, you can add a comment on multiple lines. You can click the line number of the first line you want to comment on and drag down to select a range of lines, then click the blue comment icon on the last line you want to comment on. Alternatively, you can click the blue comment icon next to the first line you want to comment on, then drag down to the last line you want to comment on.
1. Optionally, you can add a comment on multiple lines. To select a range of lines, click the line number of the first line you want to comment on, then either drag down to the final line, or hold down <kbd>Shift</kbd> and click on the last line number. You can then click the blue comment icon on the last line you want to comment on. Alternatively, you can click the blue comment icon next to the first line you want to comment on, then drag down to the last line you want to comment on.

This file was deleted.

5 changes: 0 additions & 5 deletions data/reusables/webhooks/pull_request_thread_properties.md

This file was deleted.

3 changes: 0 additions & 3 deletions data/reusables/webhooks/sponsorship_event_api_properties.md

This file was deleted.

3 changes: 0 additions & 3 deletions data/reusables/webhooks/sponsorship_properties.md

This file was deleted.

1 change: 0 additions & 1 deletion data/reusables/webhooks/sponsorship_short_desc.md

This file was deleted.

14 changes: 13 additions & 1 deletion src/ai-tools/scripts/ai-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import fs from 'fs'
import yaml from 'js-yaml'
import path from 'path'
import ora from 'ora'
import { execSync } from 'child_process'
import { callModelsApi } from '@/ai-tools/lib/call-models-api'
import dotenv from 'dotenv'
dotenv.config({ quiet: true })
Expand All @@ -13,7 +14,18 @@ const promptDir = path.join(__dirname, '../prompts')
const promptTemplatePath = path.join(promptDir, 'prompt-template.yml')

if (!process.env.GITHUB_TOKEN) {
throw new Error('Error! You must have a GITHUB_TOKEN set in an .env file to run this script.')
// Try to find a token via the CLI before throwing an error
const token = execSync('gh auth token').toString()
if (token.startsWith('gh')) {
process.env.GITHUB_TOKEN = token
} else {
console.warn(`🔑 A token is needed to run this script. Please do one of the following and try again:

1. Add a GITHUB_TOKEN to a local .env file.
2. Install https://cli.github.com and authenticate via 'gh auth login'.
`)
process.exit(1)
}
}

interface EditorType {
Expand Down
27 changes: 26 additions & 1 deletion src/audit-logs/data/fpt/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@
"old_target_amount",
"old_budget_limit_type",
"old_alert_enabled",
"old_target_id"
"old_target_id",
"old_pricing_target_type",
"old_pricing_target_id"
]
},
{
Expand Down Expand Up @@ -7883,6 +7885,29 @@
],
"docs_reference_titles": "Self-hosted runners"
},
{
"action": "org.set_actions_cache_retention_policy",
"description": "The cache retention policy for GitHub Actions was set for an organization.",
"docs_reference_links": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization",
"fields": [
"actor",
"actor_id",
"user_agent",
"request_id",
"request_access_security_header",
"org",
"org_id",
"business",
"business_id",
"action",
"_document_id",
"@timestamp",
"created_at",
"operation_type",
"actor_is_bot"
],
"docs_reference_titles": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization"
},
{
"action": "org.set_actions_cache_storage_policy",
"description": "The cache storage policy for GitHub Actions was set for an organization.",
Expand Down
27 changes: 26 additions & 1 deletion src/audit-logs/data/fpt/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@
"old_target_amount",
"old_budget_limit_type",
"old_alert_enabled",
"old_target_id"
"old_target_id",
"old_pricing_target_type",
"old_pricing_target_id"
]
},
{
Expand Down Expand Up @@ -3652,6 +3654,29 @@
"request_access_security_header"
]
},
{
"action": "org.set_actions_cache_retention_policy",
"description": "The cache retention policy for GitHub Actions was set for an organization.",
"docs_reference_links": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization",
"fields": [
"actor",
"actor_id",
"user_agent",
"request_id",
"request_access_security_header",
"org",
"org_id",
"business",
"business_id",
"action",
"_document_id",
"@timestamp",
"created_at",
"operation_type",
"actor_is_bot"
],
"docs_reference_titles": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization"
},
{
"action": "org.set_actions_cache_storage_policy",
"description": "The cache storage policy for GitHub Actions was set for an organization.",
Expand Down
27 changes: 26 additions & 1 deletion src/audit-logs/data/ghec/enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@
"old_target_amount",
"old_budget_limit_type",
"old_alert_enabled",
"old_target_id"
"old_target_id",
"old_pricing_target_type",
"old_pricing_target_id"
]
},
{
Expand Down Expand Up @@ -11149,6 +11151,29 @@
],
"docs_reference_titles": "Self-hosted runners"
},
{
"action": "org.set_actions_cache_retention_policy",
"description": "The cache retention policy for GitHub Actions was set for an organization.",
"docs_reference_links": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization",
"fields": [
"actor",
"actor_id",
"user_agent",
"request_id",
"request_access_security_header",
"org",
"org_id",
"business",
"business_id",
"action",
"_document_id",
"@timestamp",
"created_at",
"operation_type",
"actor_is_bot"
],
"docs_reference_titles": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization"
},
{
"action": "org.set_actions_cache_storage_policy",
"description": "The cache storage policy for GitHub Actions was set for an organization.",
Expand Down
27 changes: 26 additions & 1 deletion src/audit-logs/data/ghec/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@
"old_target_amount",
"old_budget_limit_type",
"old_alert_enabled",
"old_target_id"
"old_target_id",
"old_pricing_target_type",
"old_pricing_target_id"
]
},
{
Expand Down Expand Up @@ -7883,6 +7885,29 @@
],
"docs_reference_titles": "Self-hosted runners"
},
{
"action": "org.set_actions_cache_retention_policy",
"description": "The cache retention policy for GitHub Actions was set for an organization.",
"docs_reference_links": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization",
"fields": [
"actor",
"actor_id",
"user_agent",
"request_id",
"request_access_security_header",
"org",
"org_id",
"business",
"business_id",
"action",
"_document_id",
"@timestamp",
"created_at",
"operation_type",
"actor_is_bot"
],
"docs_reference_titles": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization"
},
{
"action": "org.set_actions_cache_storage_policy",
"description": "The cache storage policy for GitHub Actions was set for an organization.",
Expand Down
27 changes: 26 additions & 1 deletion src/audit-logs/data/ghec/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@
"old_target_amount",
"old_budget_limit_type",
"old_alert_enabled",
"old_target_id"
"old_target_id",
"old_pricing_target_type",
"old_pricing_target_id"
]
},
{
Expand Down Expand Up @@ -3652,6 +3654,29 @@
"request_access_security_header"
]
},
{
"action": "org.set_actions_cache_retention_policy",
"description": "The cache retention policy for GitHub Actions was set for an organization.",
"docs_reference_links": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization",
"fields": [
"actor",
"actor_id",
"user_agent",
"request_id",
"request_access_security_header",
"org",
"org_id",
"business",
"business_id",
"action",
"_document_id",
"@timestamp",
"created_at",
"operation_type",
"actor_is_bot"
],
"docs_reference_titles": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization"
},
{
"action": "org.set_actions_cache_storage_policy",
"description": "The cache storage policy for GitHub Actions was set for an organization.",
Expand Down
27 changes: 26 additions & 1 deletion src/audit-logs/data/ghes-3.19/enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@
"old_target_amount",
"old_budget_limit_type",
"old_alert_enabled",
"old_target_id"
"old_target_id",
"old_pricing_target_type",
"old_pricing_target_id"
]
},
{
Expand Down Expand Up @@ -8661,6 +8663,29 @@
],
"docs_reference_titles": "Self-hosted runners"
},
{
"action": "org.set_actions_cache_retention_policy",
"description": "The cache retention policy for GitHub Actions was set for an organization.",
"docs_reference_links": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization",
"fields": [
"actor",
"actor_id",
"user_agent",
"request_id",
"request_access_security_header",
"org",
"org_id",
"business",
"business_id",
"action",
"_document_id",
"@timestamp",
"created_at",
"operation_type",
"actor_is_bot"
],
"docs_reference_titles": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization"
},
{
"action": "org.set_actions_cache_storage_policy",
"description": "The cache storage policy for GitHub Actions was set for an organization.",
Expand Down
27 changes: 26 additions & 1 deletion src/audit-logs/data/ghes-3.19/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@
"old_target_amount",
"old_budget_limit_type",
"old_alert_enabled",
"old_target_id"
"old_target_id",
"old_pricing_target_type",
"old_pricing_target_id"
]
},
{
Expand Down Expand Up @@ -7862,6 +7864,29 @@
],
"docs_reference_titles": "Self-hosted runners"
},
{
"action": "org.set_actions_cache_retention_policy",
"description": "The cache retention policy for GitHub Actions was set for an organization.",
"docs_reference_links": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization",
"fields": [
"actor",
"actor_id",
"user_agent",
"request_id",
"request_access_security_header",
"org",
"org_id",
"business",
"business_id",
"action",
"_document_id",
"@timestamp",
"created_at",
"operation_type",
"actor_is_bot"
],
"docs_reference_titles": "/organizations/managing-organization-settings/managing-github-actions-settings-for-your-organization"
},
{
"action": "org.set_actions_cache_storage_policy",
"description": "The cache storage policy for GitHub Actions was set for an organization.",
Expand Down
Loading
Loading