Skip to content

Commit 1c91fdc

Browse files
authored
Merge branch 'main' into patch-1
2 parents 93020f1 + ae3e119 commit 1c91fdc

156 files changed

Lines changed: 6474 additions & 1389 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/automerge-dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ jobs:
6868
6969
# Because we get far too much spam ;_;
7070
- name: Lock conversations
71-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
71+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
7272
env:
7373
PR_NUMBER: ${{ github.event.pull_request.number }}
7474
with:
7575
script: |
7676
try {
77-
await github.issues.lock({
77+
await github.rest.issues.lock({
7878
...context.repo,
7979
issue_number: parseInt(process.env.PR_NUMBER, 10),
8080
lock_reason: 'resolved'

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- if: ${{ env.IS_INTERNAL_BUILD == 'true' }}
114114
name: Determine which docs-early-access branch to clone
115115
id: 'check-early-access'
116-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
116+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
117117
env:
118118
BRANCH_NAME: ${{ env.BRANCH_NAME }}
119119
with:

.github/workflows/azure-prod-build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
9898
# Watch canary slot instances to see when all the instances are ready
9999
- name: Check that canary slot is ready
100-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
100+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
101101
env:
102102
CHECK_INTERVAL: 10000
103103
with:

.github/workflows/azure-staging-build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
111111
# Watch deployment slot instances to see when all the instances are ready
112112
- name: Check that deployment slot is ready
113-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
113+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
114114
env:
115115
CHECK_INTERVAL: 10000
116116
with:

.github/workflows/check-for-spammy-issues.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: github.repository == 'github/docs'
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
20+
- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
2121
with:
2222
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
2323
script: |
@@ -30,7 +30,7 @@ jobs:
3030
const titleWordCountMin = 3
3131
3232
try {
33-
await github.teams.getMembershipForUserInOrg({
33+
await github.rest.teams.getMembershipForUserInOrg({
3434
org: 'github',
3535
team_slug: 'employees',
3636
username: context.payload.sender.login,
@@ -54,7 +54,7 @@ jobs:
5454
//
5555
5656
// Close the issue and add the invalid label
57-
await github.issues.update({
57+
await github.rest.issues.update({
5858
owner: owner,
5959
repo: repo,
6060
issue_number: issue.number,
@@ -63,7 +63,7 @@ jobs:
6363
});
6464
6565
// Comment on the issue
66-
await github.issues.createComment({
66+
await github.rest.issues.createComment({
6767
owner: owner,
6868
repo: repo,
6969
issue_number: issue.number,
@@ -72,7 +72,7 @@ jobs:
7272
7373
// Add the issue to the Done column on the triage board
7474
try {
75-
await github.projects.createCard({
75+
await github.rest.projects.createCard({
7676
column_id: 11167427,
7777
content_id: context.payload.issue.id,
7878
content_type: "Issue"

.github/workflows/confirm-internal-staff-work-in-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
if: github.repository == 'github/docs' && github.actor != 'docs-bot'
2424
steps:
2525
- id: membership_check
26-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
26+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
2727
env:
2828
TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }}
2929
with:
3030
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
3131
script: |
3232
// Only perform this action with GitHub employees
3333
try {
34-
await github.teams.getMembershipForUserInOrg({
34+
await github.rest.teams.getMembershipForUserInOrg({
3535
org: 'github',
3636
team_slug: 'employees',
3737
username: context.payload.sender.login,
@@ -45,7 +45,7 @@ jobs:
4545
4646
// Don't perform this action with Docs team members
4747
try {
48-
await github.teams.getMembershipForUserInOrg({
48+
await github.rest.teams.getMembershipForUserInOrg({
4949
org: 'github',
5050
team_slug: 'docs',
5151
username: context.payload.sender.login,
@@ -62,7 +62,7 @@ jobs:
6262
const issueNo = context.number || context.issue.number
6363
6464
// Create an issue in our private repo
65-
await github.issues.create({
65+
await github.rest.issues.create({
6666
owner: 'github',
6767
repo: process.env.TEAM_CONTENT_REPO,
6868
title: `@${context.payload.sender.login} confirm that \#${issueNo} should be in the public github/docs repo`,

.github/workflows/content-changes-table-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: Update comment
8686
if: ${{ steps.changes.outputs.changesTable != '' }}
87-
uses: peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32
87+
uses: peter-evans/create-or-update-comment@67dcc547d311b736a8e6c5c236542148a47adc3d
8888
with:
8989
comment-id: ${{ steps.findComment.outputs.comment-id }}
9090
issue-number: ${{ github.event.pull_request.number }}

.github/workflows/copy-api-issue-to-internal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: (github.event.label.name == 'rest-description' || github.event.label.name == 'graphql-description' || github.event.label.name == 'webhook-description') && github.repository == 'github/docs'
2020
steps:
2121
- name: Check if this run was triggered by a member of the docs team
22-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
22+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
2323
id: triggered-by-member
2424
with:
2525
github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}

.github/workflows/first-responder-docs-content.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Check if the event originated from a team member
27-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
27+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
2828
id: set-result
2929
with:
3030
github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
@@ -33,7 +33,7 @@ jobs:
3333
const repoName = context.payload.repository.name
3434
const ownerName = context.payload.repository.owner.login
3535
const issueNumber = (context.eventName === "issues") ? context.payload.issue.number : context.payload.number
36-
const updatedIssueInformation = await github.issues.get({
36+
const updatedIssueInformation = await github.rest.issues.get({
3737
owner: ownerName,
3838
repo: repoName,
3939
issue_number: issueNumber
@@ -71,20 +71,20 @@ jobs:
7171

7272
steps:
7373
- name: Remove card from project
74-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
74+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
7575
with:
7676
github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
7777
result-encoding: string
7878
script: |
7979
const issueToRemove = context.payload.number
80-
const cards = await github.projects.listCards({
80+
const cards = await github.rest.projects.listCards({
8181
column_id: 11130889
8282
})
8383
cards.data.forEach(card => {
8484
if (card.content_url) {
8585
const cardIssueNumber = parseInt(card.content_url.split('/').pop(), 10)
8686
if (cardIssueNumber === issueToRemove) {
87-
const cards = github.projects.deleteCard({
87+
const cards = github.rest.projects.deleteCard({
8888
card_id: card.id
8989
})
9090
}

.github/workflows/hubber-contribution-help.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- id: membership_check
24-
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
24+
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
2525
with:
2626
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
2727
script: |
2828
try {
29-
await github.teams.getMembershipForUserInOrg({
29+
await github.rest.teams.getMembershipForUserInOrg({
3030
org: 'github',
3131
team_slug: 'docs',
3232
username: context.payload.sender.login,

0 commit comments

Comments
 (0)