Skip to content

Commit

Permalink
Chore Release: 6.4.0 (#2079)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
thewahome authored Sep 2, 2022
1 parent f695350 commit 3604275
Show file tree
Hide file tree
Showing 32 changed files with 3,499 additions and 2,073 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
git fetch origin master --depth 100
git fetch origin dev --depth 100
masterPrBody=$(git rev-list v$currentVersion.. --oneline $branchName ^origin/master)
devPrBody=$(git rev-list v$currentVersion.. --oneline $branchName ^origin/dev)
masterPrBody=$(git rev-list --oneline $branchName ^origin/master)
devPrBody=$(git rev-list --oneline $branchName ^origin/dev)
echo 'masterPrBody<<END_OF_OUTPUT' >> $GITHUB_ENV
echo "$masterPrBody" >> $GITHUB_ENV
Expand Down Expand Up @@ -91,5 +91,5 @@ jobs:
source_branch: ${{ steps.create-release.outputs.branchName }}
destination_branch: "master"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Chore (release): ${{ env.NEW_VERSION }}"
pr_title: "Chore: Release ${{ env.NEW_VERSION }}"
pr_body: ${{ env.masterPrBody }}
82 changes: 82 additions & 0 deletions .github/workflows/projectbot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# This workflow is used to add new issues to GitHub Projects (Beta)

name: Add PR to project
on:
issues:
types:
- opened
jobs:
track_issue:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
with:
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}

- name: Get project data
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
ORGANIZATION: microsoftgraph
PROJECT_NUMBER: 32
run: |
gh api graphql -f query='
query($org: String!, $number: Int!) {
organization(login: $org){
projectNext(number: $number) {
id
fields(first:20) {
nodes {
id
name
settings
}
}
}
}
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
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
- name: Add Issue to project
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
ISSUE_ID: ${{ github.event.issue.node_id }}
run: |
item_id="$( gh api graphql -f query='
mutation($project:ID!, $issue:ID!) {
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
projectNextItem {
id
}
}
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
- name: Set Triage
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
gh api graphql -f query='
mutation (
$project: ID!
$item: ID!
$status_field: ID!
$status_value: String!
) {
set_status: updateProjectNextItemField(input: {
projectId: $project
itemId: $item
fieldId: $status_field
value: $status_value
}) {
projectNextItem {
id
}
}
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TRIAGE_OPTION_ID }} --silent
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"files.exclude": {
"**/node_modules": true,
"**/.github": true
"**/.github": false
},
"files.trimTrailingWhitespace": true,
"editor.codeActionsOnSave": {
Expand Down
Loading

0 comments on commit 3604275

Please sign in to comment.