diff --git a/.github/workflows/check-broken-links-github-github.yml b/.github/workflows/check-broken-links-github-github.yml index 06f3bcc895d8..fc7ea6ff06bd 100644 --- a/.github/workflows/check-broken-links-github-github.yml +++ b/.github/workflows/check-broken-links-github-github.yml @@ -64,7 +64,7 @@ jobs: - name: Create issue from file if: ${{ hashFiles('broken_github_github_links.md') != '' }} id: github-github-broken-link-report - uses: peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94 + uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 with: token: ${{ env.GITHUB_TOKEN }} title: ${{ steps.check.outputs.title }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3e6240e2d050..b761b7d6d659 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -36,10 +36,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0 + - uses: github/codeql-action/init@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7 with: languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp, ruby} - - uses: github/codeql-action/analyze@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0 + - uses: github/codeql-action/analyze@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7 continue-on-error: true - uses: ./.github/actions/slack-alert diff --git a/.github/workflows/comment-release-note-info.yml b/.github/workflows/comment-release-note-info.yml index af000c7bb5dd..8aabdb277200 100644 --- a/.github/workflows/comment-release-note-info.yml +++ b/.github/workflows/comment-release-note-info.yml @@ -21,7 +21,7 @@ jobs: if: github.event.pull_request.user.login != 'release-controller[bot]' && github.repository == 'github/docs-internal' runs-on: ubuntu-latest steps: - - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + - uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: issue-number: ${{ github.event.pull_request.number }} body: | diff --git a/.github/workflows/dont-delete-assets.yml b/.github/workflows/dont-delete-assets.yml index c509ad60c6db..e2ed22fe2d01 100644 --- a/.github/workflows/dont-delete-assets.yml +++ b/.github/workflows/dont-delete-assets.yml @@ -42,7 +42,7 @@ jobs: - name: Find possible previous comment if: ${{ steps.comment.outputs.markdown != '' }} - uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e + uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad id: findComment with: issue-number: ${{ github.event.number }} @@ -51,7 +51,7 @@ jobs: - name: Update comment if: ${{ steps.comment.outputs.markdown != '' }} - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: comment-id: ${{ steps.findComment.outputs.comment-id }} issue-number: ${{ github.event.number }} diff --git a/.github/workflows/dont-delete-features.yml b/.github/workflows/dont-delete-features.yml index 665714ac28e5..950c3377a3ce 100644 --- a/.github/workflows/dont-delete-features.yml +++ b/.github/workflows/dont-delete-features.yml @@ -42,7 +42,7 @@ jobs: - name: Find possible previous comment if: ${{ steps.comment.outputs.markdown != '' }} - uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e + uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad id: findComment with: issue-number: ${{ github.event.number }} @@ -51,7 +51,7 @@ jobs: - name: Update comment if: ${{ steps.comment.outputs.markdown != '' }} - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: comment-id: ${{ steps.findComment.outputs.comment-id }} issue-number: ${{ github.event.number }} diff --git a/.github/workflows/needs-sme-workflow.yml b/.github/workflows/needs-sme-workflow.yml index 171a4d8093f3..9e930545c1f6 100644 --- a/.github/workflows/needs-sme-workflow.yml +++ b/.github/workflows/needs-sme-workflow.yml @@ -24,7 +24,7 @@ jobs: - name: Check out repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + - uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: issue-number: ${{ github.event.issue.number }} body: | @@ -43,7 +43,7 @@ jobs: - name: Check out repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + - uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: issue-number: ${{ github.event.pull_request.number }} body: | diff --git a/.github/workflows/notify-about-deployment.yml b/.github/workflows/notify-about-deployment.yml index 331dc5e740b1..c16fecc57bb5 100644 --- a/.github/workflows/notify-about-deployment.yml +++ b/.github/workflows/notify-about-deployment.yml @@ -47,7 +47,7 @@ jobs: - name: Find content directory changes comment if: ${{ steps.get-number.outputs.number != '' }} - uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e + uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad id: findComment with: issue-number: ${{ steps.get-number.outputs.number }} @@ -56,7 +56,7 @@ jobs: - name: Update comment if: ${{ steps.get-number.outputs.number != '' }} - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: comment-id: ${{ steps.findComment.outputs.comment-id }} issue-number: ${{ steps.get-number.outputs.number }} diff --git a/.github/workflows/readability.yml b/.github/workflows/readability.yml index 32ffec056a33..ef68d9c7982c 100644 --- a/.github/workflows/readability.yml +++ b/.github/workflows/readability.yml @@ -69,7 +69,7 @@ jobs: - name: Find existing readability comment if: ${{ steps.changed_files.outputs.filtered_changed_files }} - uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e + uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad id: findComment with: issue-number: ${{ github.event_name == 'workflow_dispatch' && inputs.pull_request_number || github.event.number }} @@ -90,7 +90,7 @@ jobs: - name: Create or update readability comment if: ${{ steps.changed_files.outputs.filtered_changed_files && steps.read_report.outputs.report }} - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: comment-id: ${{ steps.findComment.outputs.comment-id }} issue-number: ${{ github.event_name == 'workflow_dispatch' && inputs.pull_request_number || github.event.number }} diff --git a/.github/workflows/review-comment.yml b/.github/workflows/review-comment.yml index d5c11214515b..78aff73f539d 100644 --- a/.github/workflows/review-comment.yml +++ b/.github/workflows/review-comment.yml @@ -49,7 +49,7 @@ jobs: echo "APP_URL=https://adjective-noun-hash-4000.app.github.dev" >> $GITHUB_ENV fi - name: Find code changes comment - uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e + uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad id: findComment with: issue-number: ${{ github.event.pull_request.number }} @@ -65,7 +65,7 @@ jobs: HEAD_SHA: ${{ github.event.pull_request.head.sha }} run: npm run content-changes-table-comment - name: Update comment - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 with: comment-id: ${{ steps.findComment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} diff --git a/.github/workflows/site-policy-reminder.yml b/.github/workflows/site-policy-reminder.yml index 2a3a50cb67fe..4bedf71d8f17 100644 --- a/.github/workflows/site-policy-reminder.yml +++ b/.github/workflows/site-policy-reminder.yml @@ -19,7 +19,7 @@ jobs: github.repository == 'github/docs-internal' runs-on: ubuntu-latest steps: - - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + - uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 env: GITHUB_TOKEN: ${{ secrets.API_TOKEN_SITEPOLICY }} with: diff --git a/content/copilot/concepts/agents/about-copilot-cli.md b/content/copilot/concepts/agents/about-copilot-cli.md index ab05afb4f899..0993b3f450a4 100644 --- a/content/copilot/concepts/agents/about-copilot-cli.md +++ b/content/copilot/concepts/agents/about-copilot-cli.md @@ -266,17 +266,7 @@ You can mitigate the risks associated with using the automatic approval options The default model used by {% data variables.copilot.copilot_cli %} is {% data variables.copilot.cca_current_model %}. {% data variables.product.github %} reserves the right to change this model. -You can change the model by setting the `COPILOT_MODEL` environment variable to one of the supported values. For example, change the model to {% data variables.copilot.copilot_gpt_5 %} by setting `COPILOT_MODEL` to `gpt-5`. - -{% rowheaders %} - -| Model name | `COPILOT_MODEL` value | -|------------------------------------------------------------------|-----------------------| -| {% data variables.copilot.cca_current_model %} | `claude-sonnet-4` | -| {% data variables.copilot.copilot_claude_sonnet_45 %} | `claude-sonnet-4.5` | -| {% data variables.copilot.copilot_gpt_5 %} | `gpt-5` | - -{% endrowheaders %} +You can change the model used by {% data variables.copilot.copilot_cli %} by using the `/model` slash command. Enter this command and select a model from the list. Each time you submit a prompt to {% data variables.product.prodname_copilot_short %} in {% data variables.copilot.copilot_cli_short %}'s interactive mode, and each time you use {% data variables.copilot.copilot_cli_short %} in programmatic mode, your monthly quota of {% data variables.product.prodname_copilot_short %} premium requests is reduced by one. For information about premium requests, see [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests). diff --git a/content/copilot/how-tos/use-copilot-agents/use-copilot-cli.md b/content/copilot/how-tos/use-copilot-agents/use-copilot-cli.md index 5c2091c69420..eaeebf70223d 100644 --- a/content/copilot/how-tos/use-copilot-agents/use-copilot-cli.md +++ b/content/copilot/how-tos/use-copilot-agents/use-copilot-cli.md @@ -102,6 +102,14 @@ If all of the files you want to work with are in a different location, you can s /cwd /path/to/directory ``` +### Run shell commands + +You can prepend your input with `!` to directly run shell commands, without making a call to the model. + +```shell +!git clone https://github.com/github/copilot-cli +``` + ### Resume an interactive session You can return to a previous interactive session, and continue your conversation with {% data variables.product.prodname_copilot_short %}, by using the `--resume` command line option, then choosing the session you want to resume from the list that's displayed. @@ -135,6 +143,10 @@ To extend the functionality available to you in {% data variables.copilot.copilo Details of your configured MCP servers are stored in the `mcp-config.json` file, which is located, by default, in the `~/.config` directory. This location can be changed by setting the `XDG_CONFIG_HOME` environment variable. For information about the JSON structure of a server definition, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp#writing-a-json-configuration-for-mcp-servers). +### View context and usage statistics for the current session + +You can use the `/usage` slash command to view how many premium requests you've used in the current session, the duration of the session, how many lines of code have been edited, and the breakdown of token usage per model. When you have less than 20% of a model's token limit remaining, {% data variables.copilot.copilot_cli_short %} will display a warning that the context will be truncated when the token limit is reached. + ## Find out more For a complete list of the command line options and slash commands that you can use with {% data variables.copilot.copilot_cli_short %}, do one of the following: diff --git a/src/audit-logs/components/GroupedEvents.module.scss b/src/audit-logs/components/GroupedEvents.module.scss new file mode 100644 index 000000000000..b0c6f70f3e4c --- /dev/null +++ b/src/audit-logs/components/GroupedEvents.module.scss @@ -0,0 +1,16 @@ +.eventItem { + margin-bottom: 3rem; +} + +.eventAction { + font-style: normal; +} + +.eventDetail { + margin-left: 1rem; + font-style: normal; +} + +.eventDescription { + margin-left: 1rem; +} diff --git a/src/audit-logs/components/GroupedEvents.tsx b/src/audit-logs/components/GroupedEvents.tsx index d5c161b03f76..1240f328bcdc 100644 --- a/src/audit-logs/components/GroupedEvents.tsx +++ b/src/audit-logs/components/GroupedEvents.tsx @@ -4,6 +4,8 @@ import { HeadingLink } from '@/frame/components/article/HeadingLink' import { useTranslation } from '@/languages/components/useTranslation' import type { AuditLogEventT } from '../types' +import styles from './GroupedEvents.module.scss' + type Props = { auditLogEvents: AuditLogEventT[] category: string @@ -47,15 +49,15 @@ export default function GroupedEvents({ auditLogEvents, category, categoryNote } )}
{event.action}