Skip to content

Commit 64e44f6

Browse files
authored
Merge pull request #44797 from github/repo-sync
Repo sync
2 parents 43d503f + 7597a02 commit 64e44f6

23 files changed

Lines changed: 805 additions & 86 deletions

File tree

content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ jobs:
12281228
path: pr/
12291229
```
12301230

1231-
When a run of the above workflow completes, it triggers a run of the following workflow. The following workflow uses the `github.event.workflow_run` context and the {% data variables.product.github %} REST API to download the artifact that was uploaded by the above workflow, unzips the downloaded artifact, and comments on the pull request whose number was uploaded as an artifact.
1231+
When a run of the above workflow completes, it triggers a run of the following workflow. The following workflow uses the `github.event.workflow_run` context and the {% data reusables.actions.action-download-artifact %} action to download the artifact that was uploaded by the above workflow, then comments on the pull request whose number was uploaded as an artifact.
12321232

12331233
```yaml
12341234
name: Use the data
@@ -1244,33 +1244,13 @@ jobs:
12441244
runs-on: ubuntu-latest
12451245
steps:
12461246
- name: 'Download artifact'
1247-
uses: {% data reusables.actions.action-github-script %}
1247+
uses: {% data reusables.actions.action-download-artifact %}
12481248
with:
1249-
script: |
1250-
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
1251-
owner: context.repo.owner,
1252-
repo: context.repo.repo,
1253-
run_id: context.payload.workflow_run.id,
1254-
});
1255-
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
1256-
return artifact.name == "pr_number"
1257-
})[0];
1258-
let download = await github.rest.actions.downloadArtifact({
1259-
owner: context.repo.owner,
1260-
repo: context.repo.repo,
1261-
artifact_id: matchArtifact.id,
1262-
archive_format: 'zip',
1263-
});
1264-
const fs = require('fs');
1265-
const path = require('path');
1266-
const temp = '{% raw %}${{ runner.temp }}{% endraw %}/artifacts';
1267-
if (!fs.existsSync(temp)){
1268-
fs.mkdirSync(temp);
1269-
}
1270-
fs.writeFileSync(path.join(temp, 'pr_number.zip'), Buffer.from(download.data));
1271-
1272-
- name: 'Unzip artifact'
1273-
run: unzip "{% raw %}${{ runner.temp }}{% endraw %}/artifacts/pr_number.zip" -d "{% raw %}${{ runner.temp }}{% endraw %}/artifacts"
1249+
name: pr_number
1250+
# do not extract in the workspace dir that may contain executable scripts
1251+
path: {% raw %}${{ runner.temp }}{% endraw %}/artifacts
1252+
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
1253+
github-token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
12741254
12751255
- name: 'Comment on PR'
12761256
uses: {% data reusables.actions.action-github-script %}
@@ -1280,7 +1260,11 @@ jobs:
12801260
const fs = require('fs');
12811261
const path = require('path');
12821262
const temp = '{% raw %}${{ runner.temp }}{% endraw %}/artifacts';
1283-
const issue_number = Number(fs.readFileSync(path.join(temp, 'pr_number')));
1263+
const issue_number_raw = fs.readFileSync(path.join(temp, 'pr_number'), 'utf8').trim();
1264+
const issue_number = Number(issue_number_raw);
1265+
if (!Number.isInteger(issue_number)) {
1266+
throw new Error(`Invalid PR number in pr_number artifact: "${issue_number_raw}"`);
1267+
}
12841268
await github.rest.issues.createComment({
12851269
owner: context.repo.owner,
12861270
repo: context.repo.repo,

content/copilot/concepts/agents/github-copilot-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: About the GitHub Copilot app
33
shortTitle: GitHub Copilot app
44
intro: 'The {% data variables.copilot.github_copilot_app %} is a desktop application for agent-driven development that brings parallel workstreams, {% data variables.product.github %} integration, and PR lifecycle management into one place.'
5-
product: '{% data reusables.gated-features.github-app %}'
5+
product: '{% data reusables.gated-features.github-app %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button&utm_source=docs-about-app-signup&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
66
versions:
77
feature: copilot
88
contentType: concepts
@@ -12,7 +12,7 @@ category:
1212
- Learn about Copilot
1313
---
1414

15-
Install the app from the [download page for {% data variables.copilot.github_copilot_app %}](https://gh.io/app).
15+
Install the app from the [download page for {% data variables.copilot.github_copilot_app %}](https://gh.io/app?ref_product=copilot&ref_type=engagement&ref_style=text&utm_source=docs-about-app-download&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026).
1616

1717
## Introduction
1818

content/copilot/how-tos/github-copilot-app/agent-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Working with agent sessions in the GitHub Copilot app
33
shortTitle: Agent sessions
44
intro: 'Run multiple isolated agent sessions simultaneously, each with its own branch, and steer them using different session modes, models, and tools.'
55
allowTitleToDifferFromFilename: true
6-
product: '{% data reusables.gated-features.github-app %}'
6+
product: '{% data reusables.gated-features.github-app %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button&utm_source=docs-agent-sessions-signup&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
77
versions:
88
feature: copilot
99
contentType: how-tos

content/copilot/how-tos/github-copilot-app/customize-github-copilot-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Customizing the GitHub Copilot app
33
shortTitle: Customize the GitHub Copilot app
44
intro: 'Customize the {% data variables.copilot.github_copilot_app %} so it works the way you and your team do.'
55
allowTitleToDifferFromFilename: true
6-
product: '{% data reusables.gated-features.github-app %}'
6+
product: '{% data reusables.gated-features.github-app %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button&utm_source=docs-customize-app-signup&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
77
versions:
88
feature: copilot
99
contentType: how-tos

content/copilot/how-tos/github-copilot-app/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Getting started with the GitHub Copilot app
33
shortTitle: Quickstart
44
allowTitleToDifferFromFilename: true
55
intro: 'Sign in to the {% data variables.copilot.github_copilot_app %}, ask your first question in a quick chat, and then create a full agent session to make changes to your code.'
6-
product: '{% data reusables.gated-features.github-app %}'
6+
product: '{% data reusables.gated-features.github-app %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button&utm_source=docs-getting-started-signup&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
77
versions:
88
feature: copilot
99
contentType: how-tos
@@ -24,7 +24,7 @@ For a conceptual overview of the {% data variables.copilot.github_copilot_app %}
2424

2525
## Installing the {% data variables.copilot.github_copilot_app %}
2626

27-
1. Visit the [download page for {% data variables.copilot.github_copilot_app %}](https://gh.io/app).
27+
1. Visit the [download page for {% data variables.copilot.github_copilot_app %}](https://gh.io/app?ref_product=copilot&ref_type=engagement&ref_style=text&utm_source=docs-getting-started-download&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026).
2828
1. Download the app for your platform.
2929

3030
## Opening the {% data variables.copilot.github_copilot_app %} for the first time

content/copilot/how-tos/github-copilot-app/managing-issues-and-pull-requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Managing issues and pull requests with the GitHub Copilot app
33
shortTitle: Managing issues and pull requests
44
allowTitleToDifferFromFilename: true
55
intro: 'Pick up an issue, direct an agent to implement changes, and land a pull request—all without leaving the {% data variables.copilot.github_copilot_app %}.'
6-
product: '{% data reusables.gated-features.github-app %}'
6+
product: '{% data reusables.gated-features.github-app %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button&utm_source=docs-manage-issues-prs-signup&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
77
versions:
88
feature: copilot
99
contentType: how-tos

content/copilot/how-tos/github-copilot-app/using-automations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Using automations in the GitHub Copilot app
33
shortTitle: Automations
44
intro: 'Automate recurring agent tasks so they run on a schedule or on demand, without manual intervention.'
55
allowTitleToDifferFromFilename: true
6-
product: '{% data reusables.gated-features.github-app %}'
6+
product: '{% data reusables.gated-features.github-app %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button&utm_source=docs-automations-signup&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
77
versions:
88
feature: copilot
99
contentType: how-tos

content/copilot/how-tos/github-copilot-app/working-with-canvas-extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Working with canvas extensions in the GitHub Copilot app
33
shortTitle: Canvas extensions
44
intro: 'Use canvases in the {% data variables.copilot.github_copilot_app %} to build shared, agent-driven artifacts and interfaces for human-agent collaboration.'
55
allowTitleToDifferFromFilename: true
6-
product: '{% data reusables.gated-features.github-app %}'
6+
product: '{% data reusables.gated-features.github-app %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=purchase&ref_style=button&utm_source=docs-canvas-extensions-signup&utm_medium=docs&utm_campaign=github-copilot-app-ga-2026" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
77
versions:
88
feature: copilot
99
contentType: how-tos

src/audit-logs/data/shared/entries.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/audit-logs/data/shared/fields-pool.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)