Skip to content

Commit 4ce634b

Browse files
authored
Merge pull request #775 from microsoftgraph/dev
2.0.17 release
2 parents 9b70fed + ff03443 commit 4ce634b

File tree

18 files changed

+121
-31
lines changed

18 files changed

+121
-31
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @baywet @ddyett @MichaelMainer @nikithauc @zengin @ramsessanchez @andrueastman
1+
* @baywet @ddyett @MichaelMainer @zengin @ramsessanchez @andrueastman

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,27 @@ updates:
3030
schedule:
3131
interval: daily
3232
open-pull-requests-limit: 10
33+
- package-ecosystem: gradle
34+
directory: "/"
35+
target-branch: v3/longTermBranch
36+
schedule:
37+
interval: daily
38+
open-pull-requests-limit: 10
39+
- package-ecosystem: gradle
40+
directory: "/android"
41+
target-branch: v3/longTermBranch
42+
schedule:
43+
interval: daily
44+
open-pull-requests-limit: 10
45+
- package-ecosystem: maven
46+
directory: "/"
47+
target-branch: v3/longTermBranch
48+
schedule:
49+
interval: daily
50+
open-pull-requests-limit: 10
51+
- package-ecosystem: github-actions
52+
directory: "/"
53+
target-branch: v3/longTermBranch
54+
schedule:
55+
interval: daily
56+
open-pull-requests-limit: 10
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Auto-merge dependabot updates
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: write
10+
11+
jobs:
12+
13+
dependabot-merge:
14+
15+
runs-on: ubuntu-latest
16+
17+
if: ${{ github.actor == 'dependabot[bot]' }}
18+
19+
steps:
20+
- name: Dependabot metadata
21+
id: metadata
22+
uses: dependabot/[email protected]
23+
with:
24+
github-token: "${{ secrets.GITHUB_TOKEN }}"
25+
26+
- name: Enable auto-merge for Dependabot PRs
27+
# Only if version bump is not a major version change
28+
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
29+
run: gh pr merge --auto --merge "$PR_URL"
30+
env:
31+
PR_URL: ${{github.event.pull_request.html_url}}
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
run: .\scripts\getLatestVersion.ps1
106106
shell: pwsh
107107
- name: Create tag
108-
uses: rickstaa/action-create-tag@v1.5.4
108+
uses: rickstaa/action-create-tag@v1.6.1
109109
with:
110110
tag: ${{ steps.GetVersion.outputs.tag }}
111111
- name: Queue Git Release

.github/workflows/git-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Download Build Artifact
15-
uses: dawidd6/action-download-artifact@v2.24.3
15+
uses: dawidd6/action-download-artifact@v2.26.0
1616
with:
1717
workflow: build-and-publish.yml
1818
workflow_conclusion: success

.github/workflows/projectsbot.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
name: Add PR to project
44
on:
55
issues:
6-
types: [opened]
6+
types:
7+
- opened
78
jobs:
89
track_issue:
910
runs-on: ubuntu-latest
@@ -24,22 +25,27 @@ jobs:
2425
gh api graphql -f query='
2526
query($org: String!, $number: Int!) {
2627
organization(login: $org){
27-
projectNext(number: $number) {
28+
projectV2(number: $number) {
2829
id
2930
fields(first:20) {
3031
nodes {
31-
id
32-
name
33-
settings
32+
... on ProjectV2SingleSelectField {
33+
id
34+
name
35+
options {
36+
id
37+
name
38+
}
39+
}
3440
}
3541
}
3642
}
3743
}
3844
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
3945
40-
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
41-
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
42-
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
46+
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
47+
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
48+
echo 'TRIAGE_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .options[] | select(.name=="Needs Triage 🔍") |.id' project_data.json) >> $GITHUB_ENV
4349
4450
- name: Add Issue to project
4551
env:
@@ -48,12 +54,12 @@ jobs:
4854
run: |
4955
item_id="$( gh api graphql -f query='
5056
mutation($project:ID!, $issue:ID!) {
51-
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
52-
projectNextItem {
57+
addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
58+
item {
5359
id
5460
}
5561
}
56-
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
62+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectV2ItemById.item.id')"
5763
5864
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
5965
@@ -68,13 +74,13 @@ jobs:
6874
$status_field: ID!
6975
$status_value: String!
7076
) {
71-
set_status: updateProjectNextItemField(input: {
77+
set_status: updateProjectV2ItemFieldValue(input: {
7278
projectId: $project
7379
itemId: $item
7480
fieldId: $status_field
75-
value: $status_value
81+
value: {singleSelectOptionId: $status_value}
7682
}) {
77-
projectNextItem {
83+
projectV2Item {
7884
id
7985
}
8086
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
## [2.0.17] - 2023-03-20
13+
1214
### Changed
1315

16+
- Aligns default http client timeout to be 100 seconds
17+
- Fixes NullPointerException in GraphErrorResponse#copy
18+
1419
## [2.0.16] - 2023-01-30
1520

1621
### Changed

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.12.3"
12-
classpath "com.android.tools.build:gradle:7.4.0"
13-
classpath "com.github.ben-manes:gradle-versions-plugin:0.44.0"
11+
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.12.4"
12+
classpath "com.android.tools.build:gradle:7.4.2"
13+
classpath "com.github.ben-manes:gradle-versions-plugin:0.46.0"
1414
}
1515
}
1616

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ plugins {
1515
id 'signing'
1616
id 'jacoco'
1717
id 'com.github.spotbugs' version '5.0.13'
18-
id "org.sonarqube" version "3.5.0.2730"
18+
id "org.sonarqube" version "4.0.0.2929"
1919
}
2020

2121
java {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
2525
mavenArtifactId = microsoft-graph-core
2626
mavenMajorVersion = 2
2727
mavenMinorVersion = 0
28-
mavenPatchVersion = 16
28+
mavenPatchVersion = 17
2929
mavenArtifactSuffix =
3030

3131
#These values are used to run functional tests

0 commit comments

Comments
 (0)