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
2 changes: 1 addition & 1 deletion .github/workflows/auto-add-ready-for-doc-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Check team membership
id: membership_check
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-close-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
# Because we get far too much spam ;_;
- name: Lock conversations
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/changelog-prompt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- name: Check if PR author is in docs-content team
id: check_team
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand All @@ -41,7 +41,7 @@ jobs:

if: env.CONTINUE_WORKFLOW == 'true'

uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-for-spammy-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-bad-repo-sync-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Close pull request if unwanted
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/confirm-internal-staff-work-in-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if: github.repository == 'github/docs' && github.actor != 'docs-bot'
steps:
- id: membership_check
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
env:
TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copy-api-issue-to-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: github.event.label.name == 'fix-internally' && github.repository == 'github/docs'
steps:
- name: Check if this run was triggered by a member of the docs team
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
id: triggered-by-member
with:
github-token: ${{secrets.DOCS_BOT_PAT_BASE}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/create-changelog-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Check that the user belongs to the github org
id: hubber_check
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:

- name: Create a pull request
if: env.CONTINUE_WORKFLOW == 'true'
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
id: create_pull_request
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
Expand All @@ -124,7 +124,7 @@ jobs:

- name: Add 'ready-for-doc-review' and 'skip FR board' labels to PR
if: env.CONTINUE_WORKFLOW == 'true'
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
env:
# Get the number of the PR that was just created:
PULL_REQUEST_NUMBER: ${{ steps.create_pull_request.outputs.pull-request-number }}
Expand All @@ -140,7 +140,7 @@ jobs:

- name: Assign PR to commenter
if: env.CONTINUE_WORKFLOW == 'true'
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
env:
# Reuse the PR number captured earlier
PULL_REQUEST_NUMBER: ${{ steps.create_pull_request.outputs.pull-request-number }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/feedback-prompt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- name: Check if PR author is in docs-content team
id: check_team
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand All @@ -41,7 +41,7 @@ jobs:

if: env.NON_DOCS_HUBBER == 'true'

uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hubber-contribution-help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- id: membership_check
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/index-general-search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.result }}
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
id: set-matrix
with:
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merged-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.repository == 'github/docs' && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch && github.event.pull_request.user.login != 'docs-bot'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
script: |
github.rest.issues.createComment({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: github.repository == 'github/docs-internal'
steps:
- id: move_to_correct_repo
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
env:
TEAM_ENGINEERING_REPO: ${{ secrets.TEAM_ENGINEERING_REPO }}
TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/move-reopened-issues-to-triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
if: github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
script: |
const issueNumber = context.issue.number;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify-when-maintainers-cannot-edit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
script: |
const query = `
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/os-ready-for-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Check if this run was triggered by a member of the docs team
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
id: triggered-by-member
with:
github-token: ${{secrets.DOCS_BOT_PAT_BASE}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
github_token: ${{ secrets.DOCS_BOT_PAT_REPO_SYNC }}

- name: Ship pull request
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
github-token: ${{ secrets.DOCS_BOT_PAT_REPO_SYNC }}
result-encoding: string
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sme-review-tracking-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- id: create-issue
env:
URL: ${{ github.event.pull_request.html_url || github.event.issue.html_url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
script: |-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/triage-issue-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Check if the event originated from a team member
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
id: is-internal-contributor
with:
result-encoding: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Reference content type
intro: Reference content provides detailed information that people need while they are actively using a feature.
redirect_from:
- /contributing/style-guide-and-content-model/referential-content-type
versions:
fpt: '*'
ghec: '*'
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"helmet": "^8.1.0",
"highlight.js": "^11.11.1",
"highlightjs-curl": "^1.3.0",
"hot-shots": "^13.2.0",
"hot-shots": "^14.3.1",
"html-entities": "^2.5.6",
"http-proxy-middleware": "^3.0.5",
"imurmurhash": "^0.1.4",
Expand Down Expand Up @@ -274,7 +274,7 @@
},
"devDependencies": {
"@actions/core": "^3.0.0",
"@actions/github": "^8.0.1",
"@actions/github": "^9.1.0",
"@axe-core/playwright": "^4.11.1",
"@eslint/js": "^9.39.3",
"@github/markdownlint-github": "^0.6.3",
Expand Down
4 changes: 2 additions & 2 deletions src/archives/middleware/archived-enterprise-versions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Response, NextFunction } from 'express'
import { fetchWithRetry } from '@/frame/lib/fetch-utils'

import statsd from '@/observability/lib/statsd'
import statsd, { adaptForTimer } from '@/observability/lib/statsd'
import { createLogger } from '@/observability/logger'
import {
firstVersionDeprecatedOnNewSite,
Expand Down Expand Up @@ -252,7 +252,7 @@ export default async function archivedEnterpriseVersions(

const statsdTags = [`version:${requestedVersion}`]
const startTime = Date.now()
const r = await statsd.asyncTimer(doGet, 'archive_enterprise_proxy', [
const r = await statsd.asyncTimer(adaptForTimer(doGet), 'archive_enterprise_proxy', [
...statsdTags,
`path:${req.path}`,
])()
Expand Down
6 changes: 3 additions & 3 deletions src/assets/scripts/deleted-assets-pr-comment.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import github from '@actions/github'
import { context as github_context, getOctokit } from '@actions/github'
import { setOutput } from '@actions/core'

const { GITHUB_TOKEN } = process.env
const context = github.context
const context = github_context

if (!GITHUB_TOKEN) {
throw new Error(`GITHUB_TOKEN environment variable not set`)
Expand All @@ -26,7 +26,7 @@ type MainArgs = {
headSHA: string
}
async function main({ owner, repo, baseSHA, headSHA }: MainArgs) {
const octokit = github.getOctokit(GITHUB_TOKEN as string)
const octokit = getOctokit(GITHUB_TOKEN as string)
// get the list of file changes from the PR
const response = await octokit.rest.repos.compareCommitsWithBasehead({
owner,
Expand Down
6 changes: 3 additions & 3 deletions src/data-directory/scripts/deleted-features-pr-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
*/

import github from '@actions/github'
import { context as github_context, getOctokit } from '@actions/github'
import { setOutput } from '@actions/core'
import { program } from 'commander'

Expand All @@ -19,7 +19,7 @@ if (!GITHUB_TOKEN) {
}

if (GITHUB_REPOSITORY) {
const context = github.context
const context = github_context

const owner = context.repo.owner
const repo = context.payload.repository!.name
Expand All @@ -43,7 +43,7 @@ async function main(owner: string, repo: string, baseSHA: string, headSHA: strin
if (!GITHUB_TOKEN) {
throw new Error(`GITHUB_TOKEN environment variable not set`)
}
const octokit = github.getOctokit(GITHUB_TOKEN)
const octokit = getOctokit(GITHUB_TOKEN)
// get the list of file changes from the PR
const response = await octokit.rest.repos.compareCommitsWithBasehead({
owner,
Expand Down
6 changes: 4 additions & 2 deletions src/events/lib/hydro.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createHmac } from 'crypto'
import { fetchWithRetry } from '@/frame/lib/fetch-utils'
import { isNil } from 'lodash-es'
import statsd from '@/observability/lib/statsd'
import statsd, { adaptForTimer } from '@/observability/lib/statsd'
import { report } from '@/observability/lib/failbot'
import { MAX_REQUEST_TIMEOUT } from '@/frame/lib/constants'
import { createLogger } from '@/observability/logger'
Expand Down Expand Up @@ -95,4 +95,6 @@ async function _publish(
return response
}

export const publish = statsd.asyncTimer(_publish, 'hydro.response_time')
const _publishTimed = statsd.asyncTimer(adaptForTimer(_publish), 'hydro.response_time')
export const publish: typeof _publish = (...args) =>
_publishTimed(...(args as Parameters<typeof _publish>))
Loading
Loading