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
27 changes: 19 additions & 8 deletions .github/workflows/changelog-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ jobs:
if: steps.check_team.outputs.is_team_member == 'true'
id: extract_issue
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
PR_BODY: ${{ steps.resolve_pr.outputs.pr_body }}
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
const body = `${{ steps.resolve_pr.outputs.pr_body }}`;
const body = process.env.PR_BODY || '';

// Match closing keywords followed by docs-content issue references.
// Supports: closes github/docs-content#123, fixes https://github.com/github/docs-content/issues/123
Expand Down Expand Up @@ -224,6 +226,10 @@ jobs:
if: steps.check_parent.outputs.has_parent == 'true'
id: gather_context
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
PR_TITLE: ${{ steps.resolve_pr.outputs.pr_title }}
PR_BODY: ${{ steps.resolve_pr.outputs.pr_body }}
PR_URL: ${{ steps.resolve_pr.outputs.pr_url }}
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down Expand Up @@ -254,9 +260,9 @@ jobs:
const changedFiles = files.map(f => f.filename);

core.setOutput('pr_author', prAuthor);
core.setOutput('pr_title', '${{ steps.resolve_pr.outputs.pr_title }}');
core.setOutput('pr_body', `${{ steps.resolve_pr.outputs.pr_body }}`);
core.setOutput('pr_url', '${{ steps.resolve_pr.outputs.pr_url }}');
core.setOutput('pr_title', process.env.PR_TITLE || '');
core.setOutput('pr_body', process.env.PR_BODY || '');
core.setOutput('pr_url', process.env.PR_URL || '');
core.setOutput('pr_number', prNumber.toString());
core.setOutput('approved_reviewers', approvedReviewers.join(','));
core.setOutput('changed_files', changedFiles.join('\n'));
Expand Down Expand Up @@ -421,14 +427,19 @@ jobs:
- name: Dry run summary
if: steps.generate_draft.outputs.response != '' && inputs.dry_run == true
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
PR_AUTHOR: ${{ steps.gather_context.outputs.pr_author }}
PR_URL: ${{ steps.gather_context.outputs.pr_url }}
PARENT_TITLE: ${{ steps.check_parent.outputs.parent_title }}
DRAFT: ${{ steps.generate_draft.outputs.response }}
with:
script: |
core.info('=== DRY RUN — no PR will be created, no Slack DM sent ===');
core.info(`PR author: ${{ steps.gather_context.outputs.pr_author }}`);
core.info(`Source PR: ${{ steps.gather_context.outputs.pr_url }}`);
core.info(`Parent issue: ${{ steps.check_parent.outputs.parent_title }}`);
core.info(`PR author: ${process.env.PR_AUTHOR || ''}`);
core.info(`Source PR: ${process.env.PR_URL || ''}`);
core.info(`Parent issue: ${process.env.PARENT_TITLE || ''}`);
core.info('--- Generated changelog draft ---');
core.info(`${{ steps.generate_draft.outputs.response }}`);
core.info((process.env.DRAFT || '').replace(/^::/gm, ': :'));
core.info('--- End of draft ---');

- name: Create changelog PR in docs-content
Expand Down
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@
# ---------------------------------------------------------------
# To update the sha:
# https://github.com/github/gh-base-image/pkgs/container/gh-base-image%2Fgh-base-noble
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260505-222701-gb8f4d82d0@sha256:e5ee5190511450a452713144fb1dcd957535ec7c68705efa48b3d2cbb9871b0d AS base
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260527-203230-gabf2049e0@sha256:e6d4192acbdf566584c77f1306cd72cac3a381be6ff6174c85ee21bb164a8b46 AS base

# Install curl for Node install and determining the early access branch
# Install git for cloning docs-early-access & translations repos
# Install Node.js latest LTS
# https://github.com/nodejs/release#release-schedule
# Ubuntu's apt-get install nodejs is _very_ outdated
# Must run as root
RUN apt-get -qq update && apt-get -qq install --no-install-recommends curl git \

# From https://thehub.github.com/epd/engineering/devops/ci/actions/setting-up-new-github-action/
# We passed pkg-mirror-host as a secret to the build but it is not sensitive data.
RUN --mount=type=secret,id=pkg-mirror-host,target=/etc/pkg_mirror_host.txt \
if [ -f /etc/pkg_mirror_host.txt ]; then cat /etc/pkg_mirror_host.txt >> /etc/apt/mirrorlist.txt; fi

RUN --mount=type=secret,id=apt-auth-conf,target=/etc/apt/auth.conf.d/apt_auth.conf \
apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
&& curl -sL https://deb.nodesource.com/setup_24.x | bash - \
&& apt-get install -y nodejs \
&& node --version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ You can also delete environments through the REST API. For more information, see

{% data reusables.actions.environment-deployment-event %}

You can access these objects through the REST API or GraphQL API. You can also subscribe to these webhook events. For more information, see [AUTOTITLE](/rest/repos#deployments), [AUTOTITLE](/graphql/reference/objects#deployment) (GraphQL API), or [AUTOTITLE](/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment).
You can access these objects through the REST API or GraphQL API. You can also subscribe to these webhook events. For more information, see [AUTOTITLE](/rest/repos#deployments), [AUTOTITLE](/graphql/reference/deployments#object-deployment) (GraphQL API), or [AUTOTITLE](/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment).

## Next steps

Expand Down
Loading
Loading