Skip to content

Commit 3604275

Browse files
authored
Chore Release: 6.4.0 (#2079)
* Chore: automate adding issues to project board (#1992) * Fix: Validate permissions and consented scopes before accessing them (#2023) * Fix: Remove scrollbars from expanded modal (#1999) * Fix: Text-alignment on the text in query response tabs (#2025) * Fix: Autoloading suggestions on /me (#2037) * Chore: Dependabot upgrades-August (#2003) * Fix: Update the cached queries in queries.ts (#2042) * Fix: Disable running queries on clicking samples (#2045) * Fix: Populate method with GET for queries selected from tips (#2047) * Fix: Resize query response area when zoomed out (#2048) * Fix: Response area pivot font sizes (#2049) * Fix: Reduce share query button size (#2059) * Fix: Return correct error response status (#2053) * Fix: Speed up autocomplete (#2041) * Fix: Localize 'Expand' string (#2057) * Fix: Schema validation for Adaptive cards (#2062) * Task: Add device characteristics telemetry (#2056) * Fix: Ensure consistent font sizes on all Pivots (#2067) * Fix: Prevent unintentional display of suggestions (#2070) * Fix: failing api calls (#2068)
1 parent f695350 commit 3604275

32 files changed

+3499
-2073
lines changed

.github/workflows/cut-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161
git fetch origin master --depth 100
6262
git fetch origin dev --depth 100
6363
64-
masterPrBody=$(git rev-list v$currentVersion.. --oneline $branchName ^origin/master)
65-
devPrBody=$(git rev-list v$currentVersion.. --oneline $branchName ^origin/dev)
64+
masterPrBody=$(git rev-list --oneline $branchName ^origin/master)
65+
devPrBody=$(git rev-list --oneline $branchName ^origin/dev)
6666
6767
echo 'masterPrBody<<END_OF_OUTPUT' >> $GITHUB_ENV
6868
echo "$masterPrBody" >> $GITHUB_ENV
@@ -91,5 +91,5 @@ jobs:
9191
source_branch: ${{ steps.create-release.outputs.branchName }}
9292
destination_branch: "master"
9393
github_token: ${{ secrets.GITHUB_TOKEN }}
94-
pr_title: "Chore (release): ${{ env.NEW_VERSION }}"
94+
pr_title: "Chore: Release ${{ env.NEW_VERSION }}"
9595
pr_body: ${{ env.masterPrBody }}

.github/workflows/projectbot.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# This workflow is used to add new issues to GitHub Projects (Beta)
2+
3+
name: Add PR to project
4+
on:
5+
issues:
6+
types:
7+
- opened
8+
jobs:
9+
track_issue:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Generate token
13+
id: generate_token
14+
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
15+
with:
16+
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
17+
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
18+
19+
- name: Get project data
20+
env:
21+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
22+
ORGANIZATION: microsoftgraph
23+
PROJECT_NUMBER: 32
24+
run: |
25+
gh api graphql -f query='
26+
query($org: String!, $number: Int!) {
27+
organization(login: $org){
28+
projectNext(number: $number) {
29+
id
30+
fields(first:20) {
31+
nodes {
32+
id
33+
name
34+
settings
35+
}
36+
}
37+
}
38+
}
39+
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
40+
41+
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
42+
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
43+
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
44+
45+
- name: Add Issue to project
46+
env:
47+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
48+
ISSUE_ID: ${{ github.event.issue.node_id }}
49+
run: |
50+
item_id="$( gh api graphql -f query='
51+
mutation($project:ID!, $issue:ID!) {
52+
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
53+
projectNextItem {
54+
id
55+
}
56+
}
57+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
58+
59+
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
60+
61+
- name: Set Triage
62+
env:
63+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
64+
run: |
65+
gh api graphql -f query='
66+
mutation (
67+
$project: ID!
68+
$item: ID!
69+
$status_field: ID!
70+
$status_value: String!
71+
) {
72+
set_status: updateProjectNextItemField(input: {
73+
projectId: $project
74+
itemId: $item
75+
fieldId: $status_field
76+
value: $status_value
77+
}) {
78+
projectNextItem {
79+
id
80+
}
81+
}
82+
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TRIAGE_OPTION_ID }} --silent

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"files.exclude": {
77
"**/node_modules": true,
8-
"**/.github": true
8+
"**/.github": false
99
},
1010
"files.trimTrailingWhitespace": true,
1111
"editor.codeActionsOnSave": {

0 commit comments

Comments
 (0)