Skip to content

Commit c043378

Browse files
authored
Merge pull request #5889 from github/repo-sync
repo sync
2 parents 7a024fd + d9cb281 commit c043378

17 files changed

Lines changed: 96 additions & 24 deletions
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Enterprise date updater
2+
3+
# **What it does**: Runs on a schedule to update lib/enterprise-dates.json.
4+
# **Why we have it**: The lib/enterprise-dates.json file needs to be up-to-date
5+
# for the .github/workflows/open-enterprise-issue.yml workflow and the
6+
# tests/content/algolia-search.js test.
7+
# **Who does it impact**: Docs engineering, docs content.
8+
9+
on:
10+
workflow_dispatch:
11+
schedule:
12+
- cron: '39 2 * * 2' # At 02:39 on Tuesday
13+
14+
# **IMPORTANT:** Do not change the FREEZE environment variable set here!
15+
# This workflow runs on a recurring basis. To temporarily disable it (e.g.,
16+
# during a docs deployment freeze), add an Actions Secret to the repo settings
17+
# called `FREEZE` with a value of `true`. To re-enable updates, simply
18+
# delete that Secret from the repo settings. The environment variable here
19+
# will duplicate that Secret's value for later evaluation.
20+
env:
21+
FREEZE: ${{ secrets.FREEZE }}
22+
23+
jobs:
24+
open_enterprise_issue:
25+
name: Enterprise date updater
26+
if: github.repository == 'github/docs-internal'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- if: ${{ env.FREEZE == 'true' }}
30+
run: |
31+
echo 'The repo is currently frozen! Exiting this workflow.'
32+
exit 1 # prevents further steps from running
33+
- name: Run script/update-enterprise-dates.js
34+
run: |
35+
script/update-enterprise-dates.js
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
- name: Create pull request
39+
id: create-pull-request
40+
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
41+
with:
42+
# need to use a token with repo and workflow scopes for this step
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
commit-message: '🤖 ran script/update-enterprise-dates.js'
45+
title: 🤖 lib/enterprise-dates.json update
46+
body:
47+
"Hello! The GitHub Enterprise Server release dates have changed.\n\n
48+
If CI passes, this PR will be auto-merged. :green_heart:\n\n
49+
If CI does not pass or other problems arise, contact #docs-engineering on slack.\n\nThis PR was 🤖-crafted by `.github/workflows/enterprise-dates.yml`. 🧶"
50+
labels: automerge,autoupdate
51+
branch: enterprise-server-dates-update
52+
delete-branch: true
53+
- if: ${{ failure() }}
54+
name: Delete remote branch (if previous steps failed)
55+
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
56+
with:
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
branches: enterprise-server-dates-update
59+
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
60+
name: Approve
61+
uses: juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8
62+
with:
63+
github-token: ${{ secrets.DOCUBOT_REPO_PAT }}
64+
number: ${{ steps.create-pull-request.outputs.pull-request-number }}
65+
- name: Send Slack notification if workflow fails
66+
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
67+
if: failure()
68+
with:
69+
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
70+
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
71+
color: failure
72+
text: The last enterprise-dates run for ${{github.repository}} failed. See https://github.com/github/${{github.repository}}/actions/workflows/enterprise-dates.yml

lib/rest/static/decorated/api.github.com.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23840,7 +23840,7 @@
2384023840
},
2384123841
{
2384223842
"name": "type",
23843-
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.",
23843+
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`. However, the `internal` value is not yet supported when a GitHub App calls this API with an installation access token.",
2384423844
"in": "query",
2384523845
"required": false,
2384623846
"schema": {
@@ -23855,7 +23855,7 @@
2385523855
"internal"
2385623856
]
2385723857
},
23858-
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>.</p>"
23858+
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>. However, the <code>internal</code> value is not yet supported when a GitHub App calls this API with an installation access token.</p>"
2385923859
},
2386023860
{
2386123861
"name": "sort",

lib/rest/static/decorated/ghes-2.18.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15548,7 +15548,7 @@
1554815548
},
1554915549
{
1555015550
"name": "type",
15551-
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.",
15551+
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`. However, the `internal` value is not yet supported when a GitHub App calls this API with an installation access token.",
1555215552
"in": "query",
1555315553
"required": false,
1555415554
"schema": {
@@ -15563,7 +15563,7 @@
1556315563
"internal"
1556415564
]
1556515565
},
15566-
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>.</p>"
15566+
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>. However, the <code>internal</code> value is not yet supported when a GitHub App calls this API with an installation access token.</p>"
1556715567
},
1556815568
{
1556915569
"name": "sort",

lib/rest/static/decorated/ghes-2.19.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15644,7 +15644,7 @@
1564415644
},
1564515645
{
1564615646
"name": "type",
15647-
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.",
15647+
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`. However, the `internal` value is not yet supported when a GitHub App calls this API with an installation access token.",
1564815648
"in": "query",
1564915649
"required": false,
1565015650
"schema": {
@@ -15659,7 +15659,7 @@
1565915659
"internal"
1566015660
]
1566115661
},
15662-
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>.</p>"
15662+
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>. However, the <code>internal</code> value is not yet supported when a GitHub App calls this API with an installation access token.</p>"
1566315663
},
1566415664
{
1566515665
"name": "sort",

lib/rest/static/decorated/ghes-2.20.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16118,7 +16118,7 @@
1611816118
},
1611916119
{
1612016120
"name": "type",
16121-
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.",
16121+
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`. However, the `internal` value is not yet supported when a GitHub App calls this API with an installation access token.",
1612216122
"in": "query",
1612316123
"required": false,
1612416124
"schema": {
@@ -16133,7 +16133,7 @@
1613316133
"internal"
1613416134
]
1613516135
},
16136-
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>.</p>"
16136+
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>. However, the <code>internal</code> value is not yet supported when a GitHub App calls this API with an installation access token.</p>"
1613716137
},
1613816138
{
1613916139
"name": "sort",

lib/rest/static/decorated/ghes-2.21.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16112,7 +16112,7 @@
1611216112
},
1611316113
{
1611416114
"name": "type",
16115-
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.",
16115+
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`. However, the `internal` value is not yet supported when a GitHub App calls this API with an installation access token.",
1611616116
"in": "query",
1611716117
"required": false,
1611816118
"schema": {
@@ -16127,7 +16127,7 @@
1612716127
"internal"
1612816128
]
1612916129
},
16130-
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>.</p>"
16130+
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>. However, the <code>internal</code> value is not yet supported when a GitHub App calls this API with an installation access token.</p>"
1613116131
},
1613216132
{
1613316133
"name": "sort",

lib/rest/static/decorated/ghes-2.22.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20360,7 +20360,7 @@
2036020360
},
2036120361
{
2036220362
"name": "type",
20363-
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`.",
20363+
"description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Note: For GitHub AE, can be one of `all`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `type` can also be `internal`. However, the `internal` value is not yet supported when a GitHub App calls this API with an installation access token.",
2036420364
"in": "query",
2036520365
"required": false,
2036620366
"schema": {
@@ -20375,7 +20375,7 @@
2037520375
"internal"
2037620376
]
2037720377
},
20378-
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>.</p>"
20378+
"descriptionHTML": "<p>Specifies the types of repositories you want returned. Can be one of <code>all</code>, <code>public</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Note: For GitHub AE, can be one of <code>all</code>, <code>private</code>, <code>forks</code>, <code>sources</code>, <code>member</code>, <code>internal</code>. Default: <code>all</code>. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, <code>type</code> can also be <code>internal</code>. However, the <code>internal</code> value is not yet supported when a GitHub App calls this API with an installation access token.</p>"
2037920379
},
2038020380
{
2038120381
"name": "sort",

0 commit comments

Comments
 (0)