microsoft_kiota_abstractions 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/code-ql.yml +3 -3
- data/.github/workflows/conflicting-pr-label.yml +4 -0
- data/.github/workflows/release.yml +4 -1
- data/.github/workflows/ruby.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/lib/microsoft_kiota_abstractions/request_information.rb +1 -1
- data/lib/microsoft_kiota_abstractions/version.rb +1 -1
- metadata +3 -4
- data/.github/workflows/projectsbot.yml +0 -81
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ec58710e601fe9ca6f8f1dc7e19088549ed7732e77193aea4c2840af5a6b6fd
|
4
|
+
data.tar.gz: 9363081caae82e938321ceb08eeab120767a7a09bd0575bb291b960bed322e59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea75cb8b7d52fc9c90c33bcc679c82e0d58d7b910d009470afde7475e4f41a8e4184933e354c5327e3fcfe05a68c8f64f90363336b14ae817f28694ba1d83c44
|
7
|
+
data.tar.gz: 3ee285c65cfd1b58d1c833fc0bea218a5b2ae027a76f2fc6658e694db42a93e9327fdf06285d82d60be7494733df3485e78274d49f868a3ec92fa323dd60914f
|
@@ -44,7 +44,7 @@ jobs:
|
|
44
44
|
|
45
45
|
# Initializes the CodeQL tools for scanning.
|
46
46
|
- name: Initialize CodeQL
|
47
|
-
uses: github/codeql-action/init@
|
47
|
+
uses: github/codeql-action/init@v3
|
48
48
|
with:
|
49
49
|
languages: ${{ matrix.language }}
|
50
50
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
@@ -58,7 +58,7 @@ jobs:
|
|
58
58
|
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
59
59
|
# If this step fails, then you should remove it and run the build manually (see below)
|
60
60
|
- name: Autobuild
|
61
|
-
uses: github/codeql-action/autobuild@
|
61
|
+
uses: github/codeql-action/autobuild@v3
|
62
62
|
|
63
63
|
# ℹ️ Command-line programs to run using the OS shell.
|
64
64
|
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
@@ -71,6 +71,6 @@ jobs:
|
|
71
71
|
# ./location_of_script_within_repo/buildscript.sh
|
72
72
|
|
73
73
|
- name: Perform CodeQL Analysis
|
74
|
-
uses: github/codeql-action/analyze@
|
74
|
+
uses: github/codeql-action/analyze@v3
|
75
75
|
with:
|
76
76
|
category: "/language:${{matrix.language}}"
|
@@ -11,6 +11,10 @@ on:
|
|
11
11
|
types: [synchronize]
|
12
12
|
branches: [ main ]
|
13
13
|
|
14
|
+
permissions:
|
15
|
+
pull-requests: write
|
16
|
+
contents: read
|
17
|
+
|
14
18
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
15
19
|
jobs:
|
16
20
|
# This workflow contains a single job called "build"
|
@@ -6,13 +6,16 @@ on:
|
|
6
6
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
7
7
|
workflow_dispatch:
|
8
8
|
|
9
|
+
permissions:
|
10
|
+
contents: write
|
11
|
+
|
9
12
|
jobs:
|
10
13
|
Git_Release:
|
11
14
|
runs-on: ubuntu-latest
|
12
15
|
steps:
|
13
16
|
- uses: actions/checkout@v4
|
14
17
|
- name: Github Release
|
15
|
-
uses: anton-yurchenko/git-release@
|
18
|
+
uses: anton-yurchenko/git-release@v6.0
|
16
19
|
env:
|
17
20
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
|
18
21
|
DRAFT_RELEASE: "false"
|
data/.github/workflows/ruby.yml
CHANGED
@@ -26,7 +26,7 @@ jobs:
|
|
26
26
|
run: bundle exec rake
|
27
27
|
- name: Upload artifacts for ruby version 3 and ubuntu
|
28
28
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.ruby-version == '3.2'}}
|
29
|
-
uses: actions/upload-artifact@
|
29
|
+
uses: actions/upload-artifact@v4
|
30
30
|
with:
|
31
31
|
name: drop
|
32
32
|
path: |
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
11
11
|
|
12
12
|
### Changed
|
13
13
|
|
14
|
+
## [0.14.4] - 2024-01-06
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
|
18
|
+
- Fixed a bug that was causing the content not to be set in the request information.
|
19
|
+
|
14
20
|
## [0.14.3] - 2023-10-11
|
15
21
|
|
16
22
|
### Added
|
@@ -100,7 +100,7 @@ module MicrosoftKiotaAbstractions
|
|
100
100
|
else
|
101
101
|
writer.write_object_value(nil, values);
|
102
102
|
end
|
103
|
-
|
103
|
+
@content = writer.get_serialized_content();
|
104
104
|
rescue => exception
|
105
105
|
raise Exception.new "could not serialize payload"
|
106
106
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microsoft_kiota_abstractions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stduritemplate
|
@@ -93,7 +93,6 @@ files:
|
|
93
93
|
- ".github/workflows/auto-merge-dependabot.yml"
|
94
94
|
- ".github/workflows/code-ql.yml"
|
95
95
|
- ".github/workflows/conflicting-pr-label.yml"
|
96
|
-
- ".github/workflows/projectsbot.yml"
|
97
96
|
- ".github/workflows/release.yml"
|
98
97
|
- ".github/workflows/ruby.yml"
|
99
98
|
- ".gitignore"
|
@@ -155,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
154
|
- !ruby/object:Gem::Version
|
156
155
|
version: '0'
|
157
156
|
requirements: []
|
158
|
-
rubygems_version: 3.4.
|
157
|
+
rubygems_version: 3.4.19
|
159
158
|
signing_key:
|
160
159
|
specification_version: 4
|
161
160
|
summary: The Kiota abstractions are language specific libraries defining the basic
|
@@ -1,81 +0,0 @@
|
|
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: [opened]
|
7
|
-
jobs:
|
8
|
-
track_issue:
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
steps:
|
11
|
-
- name: Generate token
|
12
|
-
id: generate_token
|
13
|
-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
|
14
|
-
with:
|
15
|
-
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
|
16
|
-
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
|
17
|
-
|
18
|
-
- name: Get project data
|
19
|
-
env:
|
20
|
-
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|
21
|
-
ORGANIZATION: microsoftgraph
|
22
|
-
PROJECT_NUMBER: 38
|
23
|
-
run: |
|
24
|
-
gh api graphql -f query='
|
25
|
-
query($org: String!, $number: Int!) {
|
26
|
-
organization(login: $org){
|
27
|
-
projectNext(number: $number) {
|
28
|
-
id
|
29
|
-
fields(first:20) {
|
30
|
-
nodes {
|
31
|
-
id
|
32
|
-
name
|
33
|
-
settings
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
|
39
|
-
|
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
|
43
|
-
|
44
|
-
- name: Add Issue to project
|
45
|
-
env:
|
46
|
-
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|
47
|
-
ISSUE_ID: ${{ github.event.issue.node_id }}
|
48
|
-
run: |
|
49
|
-
item_id="$( gh api graphql -f query='
|
50
|
-
mutation($project:ID!, $issue:ID!) {
|
51
|
-
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
|
52
|
-
projectNextItem {
|
53
|
-
id
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
|
57
|
-
|
58
|
-
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
|
59
|
-
|
60
|
-
- name: Set Triage
|
61
|
-
env:
|
62
|
-
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|
63
|
-
run: |
|
64
|
-
gh api graphql -f query='
|
65
|
-
mutation (
|
66
|
-
$project: ID!
|
67
|
-
$item: ID!
|
68
|
-
$status_field: ID!
|
69
|
-
$status_value: String!
|
70
|
-
) {
|
71
|
-
set_status: updateProjectNextItemField(input: {
|
72
|
-
projectId: $project
|
73
|
-
itemId: $item
|
74
|
-
fieldId: $status_field
|
75
|
-
value: $status_value
|
76
|
-
}) {
|
77
|
-
projectNextItem {
|
78
|
-
id
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TRIAGE_OPTION_ID }} --silent
|