Skip to content

Commit c88cafa

Browse files
authored
Chore: Release 10.4.0 (#3283)
1 parent c7652cd commit c88cafa

File tree

187 files changed

+3083
-5047
lines changed

Some content is hidden

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

187 files changed

+3083
-5047
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ jobs:
4646

4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@v2
53+
uses: github/codeql-action/init@v3
5454
with:
5555
languages: ${{ matrix.language }}
5656
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -64,7 +64,7 @@ jobs:
6464
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6565
# If this step fails, then you should remove it and run the build manually (see below)
6666
- name: Autobuild
67-
uses: github/codeql-action/autobuild@v2
67+
uses: github/codeql-action/autobuild@v3
6868

6969
# ℹ️ Command-line programs to run using the OS shell.
7070
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -77,6 +77,6 @@ jobs:
7777
# ./location_of_script_within_repo/buildscript.sh
7878

7979
- name: Perform CodeQL Analysis
80-
uses: github/codeql-action/analyze@v2
80+
uses: github/codeql-action/analyze@v3
8181
with:
8282
category: "/language:${{matrix.language}}"

.github/workflows/cut-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ jobs:
2020
if: ${{ github.event.inputs.release-type != 'major' && github.event.inputs.release-type != 'minor' && github.event.inputs.release-type != 'patch' }}
2121

2222
- name: Checkout dev for ${{ github.event.inputs.release-type }} release
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424
if: ${{ github.event.inputs.release-type == 'major' || github.event.inputs.release-type == 'minor' }}
2525
with:
2626
ref: dev
2727

2828
- name: Checkout master for ${{ github.event.inputs.release-type }} release
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v4
3030
if: ${{ github.event.inputs.release-type == 'patch' }}
3131
with:
3232
ref: master
3333

34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
3535
- name: Create release branch and generate PR body
3636
id: create-release
3737
env:

.github/workflows/english-file-transfer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: Set current date as env variable
1818
run: echo "today=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV

.github/workflows/linter.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ jobs:
2323

2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

2828
- name: Set up Node
29-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3030
with:
3131
node-version: '18.x'
3232

3333
- name: Cache npm
34-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3535
with:
3636
path: ~/.npm
3737
key: npm-${{ hashFiles('package-lock.json') }}
3838
restore-keys: npm-
3939

4040
- name: Cache node_modules
41-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4242
id: cache-node-modules
4343
with:
4444
path: |
@@ -57,17 +57,17 @@ jobs:
5757

5858
steps:
5959
- name: Checkout repository
60-
uses: actions/checkout@v3
60+
uses: actions/checkout@v4
6161
with:
6262
fetch-depth: 0
6363

6464
- name: Set up Node
65-
uses: actions/setup-node@v3
65+
uses: actions/setup-node@v4
6666
with:
6767
node-version: '18.x'
6868

6969
- name: Cache node_modules
70-
uses: actions/cache@v3
70+
uses: actions/cache@v4
7171
with:
7272
path: |
7373
node_modules
@@ -84,15 +84,15 @@ jobs:
8484

8585
steps:
8686
- name: Checkout repository
87-
uses: actions/checkout@v3
87+
uses: actions/checkout@v4
8888

8989
- name: Set up Node
90-
uses: actions/setup-node@v3
90+
uses: actions/setup-node@v4
9191
with:
9292
node-version: '18.x'
9393

9494
- name: Cache node_modules
95-
uses: actions/cache@v3
95+
uses: actions/cache@v4
9696
with:
9797
path: |
9898
node_modules
@@ -114,15 +114,15 @@ jobs:
114114

115115
steps:
116116
- name: Checkout repository
117-
uses: actions/checkout@v3
117+
uses: actions/checkout@v4
118118

119119
- name: Set up Node
120-
uses: actions/setup-node@v3
120+
uses: actions/setup-node@v4
121121
with:
122122
node-version: '18.x'
123123

124124
- name: Cache node_modules
125-
uses: actions/cache@v3
125+
uses: actions/cache@v4
126126
with:
127127
path: |
128128
node_modules
@@ -139,9 +139,9 @@ jobs:
139139
140140
- run: cp reports/test-report.xml coverage/${{matrix.shard}}.xml
141141

142-
- uses: actions/upload-artifact@v3
142+
- uses: actions/upload-artifact@v4
143143
with:
144-
name: coverage-artifacts
144+
name: coverage-${{ matrix.shard }}-artifacts
145145
path: coverage/
146146

147147
sonar-cloud:
@@ -150,14 +150,15 @@ jobs:
150150
runs-on: ubuntu-latest
151151
steps:
152152
- name: Checkout repository
153-
uses: actions/checkout@v3
153+
uses: actions/checkout@v4
154154
with:
155155
fetch-depth: 0
156156

157-
- uses: actions/download-artifact@v3
157+
- uses: actions/download-artifact@v4
158158
with:
159-
name: coverage-artifacts
160159
path: coverage
160+
pattern: coverage-*
161+
merge-multiple: true
161162

162163
- name: Run sonar cloud analysis
163164
uses: SonarSource/sonarcloud-github-action@master
@@ -174,7 +175,7 @@ jobs:
174175
static_web_app_url: ${{ steps.builddeploy.outputs.static_web_app_url }}
175176
steps:
176177
- name: Checkout repository
177-
uses: actions/checkout@v3
178+
uses: actions/checkout@v4
178179

179180
- name: Build And Deploy
180181
env:
@@ -185,17 +186,18 @@ jobs:
185186
REACT_APP_NOMINATION_PERIOD: ${{secrets.REACT_APP_NOMINATION_PERIOD}}
186187
REACT_APP_COOLDOWN_PERIOD: ${{secrets.REACT_APP_COOLDOWN_PERIOD}}
187188
REACT_APP_USAGE_TIME: ${{secrets.REACT_APP_USAGE_TIME}}
189+
REACT_APP_DEVX_API_URL: ${{secrets.REACT_APP_DEVX_API_URL}}
188190
REACT_APP_MIGRATION_PARAMETER: ${{secrets.REACT_APP_MIGRATION_PARAMETER}}
191+
SKIP_DEPLOY_ON_MISSING_SECRETS: true
189192
CI: false
190193
id: builddeploy
191-
uses: Azure/static-web-apps-deploy@v0.0.1-preview
194+
uses: Azure/static-web-apps-deploy@v1
192195
with:
193-
skip_deploy_on_missing_secrets: true
194196
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_JOLLY_SAND_0AC78C710 }}
195197
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
196198
action: 'upload'
197199
app_location: '/' # App source code path
198-
app_artifact_location: 'build' # Built app content directory - optional
200+
output_location: 'build' # Built app content directory - optional
199201

200202
- name: Set url
201203
run: |
@@ -209,7 +211,7 @@ jobs:
209211
steps:
210212
- name: Close Pull Request
211213
id: closepullrequest
212-
uses: Azure/static-web-apps-deploy@v0.0.1-preview
214+
uses: Azure/static-web-apps-deploy@v1
213215
with:
214216
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_JOLLY_SAND_0AC78C710 }}
215217
action: 'close'

.github/workflows/projectbot.yml

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,98 @@
1-
# This workflow is used to add new issues to GitHub Projects (Beta)
1+
# This workflow is used to add new issues to GitHub GraphSDKs Project
22

3-
name: Add PR to project
3+
name: Add Issue or PR to project
44
on:
55
issues:
66
types:
77
- opened
8+
pull_request:
9+
types:
10+
- opened
11+
branches:
12+
- "dev"
813

914
permissions:
1015
issues: write
1116
repository-projects: write
12-
17+
1318
jobs:
1419
track_issue:
20+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork == false
1521
runs-on: ubuntu-latest
1622
steps:
1723
- name: Generate token
1824
id: generate_token
19-
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
25+
uses: actions/create-github-app-token@v1
2026
with:
21-
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
22-
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
27+
app-id: ${{ secrets.GRAPHBOT_APP_ID }}
28+
private-key: ${{ secrets.GRAPHBOT_APP_PEM }}
2329

2430
- name: Get project data
2531
env:
2632
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
2733
ORGANIZATION: microsoftgraph
28-
PROJECT_NUMBER: 32
34+
PROJECT_NUMBER: 55
2935
run: |
3036
gh api graphql -f query='
3137
query($org: String!, $number: Int!) {
3238
organization(login: $org){
33-
projectNext(number: $number) {
39+
projectV2(number: $number) {
3440
id
3541
fields(first:20) {
3642
nodes {
37-
id
38-
name
39-
settings
43+
... on ProjectV2SingleSelectField {
44+
id
45+
name
46+
options {
47+
id
48+
name
49+
}
50+
}
4051
}
4152
}
4253
}
4354
}
4455
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
4556
46-
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
47-
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
48-
echo 'TRIAGE_OPTION_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") |.settings | fromjson.options[] | select(.name=="Needs Triage") |.id' project_data.json) >> $GITHUB_ENV
57+
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
58+
echo 'LANGUAGE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .id' project_data.json) >> $GITHUB_ENV
59+
echo 'LANGUAGE_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .options[] | select(.name=="Graph Explorer") |.id' project_data.json) >> $GITHUB_ENV
4960
50-
- name: Add Issue to project
61+
- name: Add Issue or PR to project
5162
env:
5263
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
53-
ISSUE_ID: ${{ github.event.issue.node_id }}
64+
ISSUE_ID: ${{ github.event_name == 'issues' && github.event.issue.node_id || github.event.pull_request.node_id }}
5465
run: |
5566
item_id="$( gh api graphql -f query='
5667
mutation($project:ID!, $issue:ID!) {
57-
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
58-
projectNextItem {
68+
addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
69+
item {
5970
id
6071
}
6172
}
62-
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
73+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectV2ItemById.item.id')"
6374
6475
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
6576
66-
- name: Set Triage
77+
- name: Set Language
6778
env:
6879
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
6980
run: |
7081
gh api graphql -f query='
7182
mutation (
7283
$project: ID!
7384
$item: ID!
74-
$status_field: ID!
75-
$status_value: String!
85+
$language_field: ID!
86+
$language_value: String!
7687
) {
77-
set_status: updateProjectNextItemField(input: {
88+
set_status: updateProjectV2ItemFieldValue(input: {
7889
projectId: $project
7990
itemId: $item
80-
fieldId: $status_field
81-
value: $status_value
91+
fieldId: $language_field
92+
value: {singleSelectOptionId: $language_value}
8293
}) {
83-
projectNextItem {
94+
projectV2Item {
8495
id
8596
}
8697
}
87-
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TRIAGE_OPTION_ID }} --silent
98+
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f language_field=$LANGUAGE_FIELD_ID -f language_value=${{ env.LANGUAGE_OPTION_ID }} --silent

0 commit comments

Comments
 (0)