ms-graph-types 2.43.1
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.
- package/.azure-pipelines/ci-build-production.yml +114 -0
- package/.github/CODEOWNERS +1 -0
- package/.github/ISSUE_TEMPLATE/01-sdk-bug.yml +100 -0
- package/.github/ISSUE_TEMPLATE/02-sdk-feature-request.yml +30 -0
- package/.github/ISSUE_TEMPLATE/03-blank-issue.md +8 -0
- package/.github/ISSUE_TEMPLATE/config.yml +11 -0
- package/.github/dependabot.yml +12 -0
- package/.github/policies/msgraph-typescript-typings-branch-protection.yml +46 -0
- package/.github/policies/resourceManagement.yml +78 -0
- package/.github/release-please.yml +3 -0
- package/.github/workflows/auto-merge-dependabot.yml +32 -0
- package/.github/workflows/codeql.yml +82 -0
- package/.github/workflows/project-auto-add.yml +94 -0
- package/.github/workflows/release-please-gha.yml +37 -0
- package/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +8 -0
- package/CODE_OF_CONDUCT.md +10 -0
- package/CONTRIBUTING.md +216 -0
- package/LICENSE +25 -0
- package/README-Localized/README-es-es.md +152 -0
- package/README-Localized/README-fr-fr.md +152 -0
- package/README-Localized/README-ja-jp.md +152 -0
- package/README-Localized/README-pt-br.md +152 -0
- package/README-Localized/README-ru-ru.md +152 -0
- package/README-Localized/README-zh-cn.md +152 -0
- package/README.md +117 -0
- package/SECURITY.md +41 -0
- package/microsoft-graph.d.ts +38980 -0
- package/package.json +25 -0
- package/release-please-config.json +11 -0
- package/tsconfig.json +9 -0
- package/typings-demo.gif +0 -0
- package/typings.json +8 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
|
|
2
|
+
# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
|
|
3
|
+
# This pipeline will be extended to the OneESPT template
|
|
4
|
+
# The pool section has been filled with placeholder values, replace the pool section with your hosted pool, os, and image name. If you are using a Linux image, you must specify an additional windows image for SDL: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/sdlanalysis/overview#how-to-specify-a-windows-pool-for-the-sdl-source-analysis-stage
|
|
5
|
+
# This publishes to https://www.npmjs.com/package/@microsoft/microsoft-graph-types
|
|
6
|
+
|
|
7
|
+
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
|
|
8
|
+
trigger:
|
|
9
|
+
branches:
|
|
10
|
+
include:
|
|
11
|
+
- main
|
|
12
|
+
paths:
|
|
13
|
+
include:
|
|
14
|
+
- microsoft-graph.d.ts
|
|
15
|
+
tags:
|
|
16
|
+
include:
|
|
17
|
+
- '*'
|
|
18
|
+
|
|
19
|
+
pr: none
|
|
20
|
+
|
|
21
|
+
variables:
|
|
22
|
+
package_name_v1_0: 'microsoft-graph-types'
|
|
23
|
+
|
|
24
|
+
resources:
|
|
25
|
+
repositories:
|
|
26
|
+
- repository: 1ESPipelineTemplates
|
|
27
|
+
type: git
|
|
28
|
+
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
29
|
+
ref: refs/tags/release
|
|
30
|
+
|
|
31
|
+
extends:
|
|
32
|
+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
|
|
33
|
+
parameters:
|
|
34
|
+
pool:
|
|
35
|
+
name: Azure-Pipelines-1ESPT-ExDShared
|
|
36
|
+
image: windows-latest
|
|
37
|
+
os: windows
|
|
38
|
+
customBuildTags:
|
|
39
|
+
- ES365AIMigrationTooling
|
|
40
|
+
stages:
|
|
41
|
+
- stage: build
|
|
42
|
+
jobs:
|
|
43
|
+
- job: build_v1_0_typings
|
|
44
|
+
displayName: Pack v1.0 typings
|
|
45
|
+
templateContext:
|
|
46
|
+
outputs:
|
|
47
|
+
- output: pipelineArtifact
|
|
48
|
+
displayName: 'Publish Artifact drop'
|
|
49
|
+
targetPath: '$(Build.ArtifactStagingDirectory)'
|
|
50
|
+
artifactName: build-drop
|
|
51
|
+
steps:
|
|
52
|
+
- checkout: self
|
|
53
|
+
displayName: checkout main
|
|
54
|
+
|
|
55
|
+
- task: UseNode@1
|
|
56
|
+
displayName: 'Install Node.js'
|
|
57
|
+
inputs:
|
|
58
|
+
version: '22.x'
|
|
59
|
+
|
|
60
|
+
- script: npm ci
|
|
61
|
+
displayName: 'Install npm dependencies'
|
|
62
|
+
workingDirectory: '$(Build.SourcesDirectory)'
|
|
63
|
+
|
|
64
|
+
# Pack and stage Beta TypeScript package
|
|
65
|
+
- script: npm pack --pack-destination=$(Build.ArtifactStagingDirectory)
|
|
66
|
+
displayName: 'Generate npm package $(package_name_v1_0)'
|
|
67
|
+
workingDirectory: '$(Build.SourcesDirectory)'
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
- stage: deploy
|
|
71
|
+
displayName: 'Deploy v1.0 Typings'
|
|
72
|
+
# This condition deploys on successful CI runs for success builds and also allows for manual deployments from an arbitrary branch
|
|
73
|
+
condition: succeeded()
|
|
74
|
+
dependsOn:
|
|
75
|
+
- build
|
|
76
|
+
jobs:
|
|
77
|
+
- deployment: deploy_npm
|
|
78
|
+
pool:
|
|
79
|
+
name: Azure-Pipelines-1ESPT-ExDShared
|
|
80
|
+
os: windows
|
|
81
|
+
image: windows-latest
|
|
82
|
+
dependsOn: []
|
|
83
|
+
environment: msgraph-npm-org
|
|
84
|
+
|
|
85
|
+
templateContext:
|
|
86
|
+
type: releaseJob
|
|
87
|
+
isProduction: true
|
|
88
|
+
inputs:
|
|
89
|
+
- input: pipelineArtifact
|
|
90
|
+
artifactName: build-drop
|
|
91
|
+
targetPath: '$(Build.ArtifactStagingDirectory)/npm'
|
|
92
|
+
|
|
93
|
+
strategy:
|
|
94
|
+
runOnce:
|
|
95
|
+
deploy:
|
|
96
|
+
steps:
|
|
97
|
+
- task: EsrpRelease@9
|
|
98
|
+
displayName: 'Publish V1.0 NPM package via ESRP Release'
|
|
99
|
+
inputs:
|
|
100
|
+
connectedservicename: "Federated DevX ESRP Managed Identity Connection"
|
|
101
|
+
usemanagedidentity: false
|
|
102
|
+
keyvaultname: 'akv-prod-eastus'
|
|
103
|
+
authcertname: 'ReferenceLibraryPrivateCert'
|
|
104
|
+
signcertname: 'ReferencePackagePublisherCertificate'
|
|
105
|
+
clientid: '65035b7f-7357-4f29-bf25-c5ee5c3949f8'
|
|
106
|
+
intent: 'PackageDistribution'
|
|
107
|
+
contenttype: 'npm'
|
|
108
|
+
contentsource: 'Folder'
|
|
109
|
+
folderlocation: '$(Build.ArtifactStagingDirectory)/npm'
|
|
110
|
+
owners: 'mmainer@microsoft.com,mowen@microsoft.com,gavinbarron@microsoft.com'
|
|
111
|
+
approvers: 'mmainer@microsoft.com,christiano@microsoft.com,mowen@microsoft.com,lramosvea@microsoft.com,gavinbarron@microsoft.com'
|
|
112
|
+
serviceendpointurl: 'https://api.esrp.microsoft.com'
|
|
113
|
+
mainpublisher: 'ESRPRELPACMAN'
|
|
114
|
+
domaintenantid: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @microsoftgraph/msgraph-devx-typescript-write
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
name: SDK Bug Report
|
|
2
|
+
description: File SDK bug report
|
|
3
|
+
labels: ["type:bug", "status:waiting-for-triage"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
**Thank you for taking the time to fill out this bug report!**
|
|
9
|
+
💥Before submitting a new request, please search existing issues to see if an issue already exists.
|
|
10
|
+
- type: textarea
|
|
11
|
+
id: description
|
|
12
|
+
attributes:
|
|
13
|
+
label: Describe the bug
|
|
14
|
+
description: |
|
|
15
|
+
Provide a description of the actual behavior observed. If applicable please include any error messages, exception stacktraces or a screenshot.
|
|
16
|
+
placeholder: I am trying to do [...] but [...]
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
- type: textarea
|
|
20
|
+
id: expected-behavior
|
|
21
|
+
attributes:
|
|
22
|
+
label: Expected behavior
|
|
23
|
+
description: |
|
|
24
|
+
A clear and concise description of what you expected to happen.
|
|
25
|
+
placeholder: Expected behavior
|
|
26
|
+
validations:
|
|
27
|
+
required: true
|
|
28
|
+
- type: textarea
|
|
29
|
+
id: repro-steps
|
|
30
|
+
attributes:
|
|
31
|
+
label: How to reproduce
|
|
32
|
+
description: |
|
|
33
|
+
Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or steps to run project in link above. If possible include text as text rather than screenshots (so it shows up in searches).
|
|
34
|
+
If there's a link to a public repo where the sample code exists, include it too.
|
|
35
|
+
placeholder: Minimal Reproduction steps
|
|
36
|
+
validations:
|
|
37
|
+
required: true
|
|
38
|
+
- type: input
|
|
39
|
+
attributes:
|
|
40
|
+
label: SDK Version
|
|
41
|
+
placeholder: e.g. 5.32.1
|
|
42
|
+
description: Version of the SDK with the bug described above.
|
|
43
|
+
validations:
|
|
44
|
+
required: false
|
|
45
|
+
- type: input
|
|
46
|
+
id: regression
|
|
47
|
+
attributes:
|
|
48
|
+
label: Latest version known to work for scenario above?
|
|
49
|
+
description: |
|
|
50
|
+
Did this work in a previous build or release of the SDK or API client? If you can try a previous release or build to find out, that can help us narrow down the problem. If you don't know, that's OK.
|
|
51
|
+
placeholder: version-number
|
|
52
|
+
validations:
|
|
53
|
+
required: false
|
|
54
|
+
- type: textarea
|
|
55
|
+
id: known-workarounds
|
|
56
|
+
attributes:
|
|
57
|
+
label: Known Workarounds
|
|
58
|
+
description: |
|
|
59
|
+
Please provide a description of any known workarounds.
|
|
60
|
+
placeholder: Known Workarounds
|
|
61
|
+
validations:
|
|
62
|
+
required: false
|
|
63
|
+
- type: textarea
|
|
64
|
+
id: logs
|
|
65
|
+
attributes:
|
|
66
|
+
label: Debug output
|
|
67
|
+
description: Please copy and paste the debug output below.
|
|
68
|
+
value: |
|
|
69
|
+
<details><summary>Click to expand log</summary>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
<Log output here>
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
</details>
|
|
76
|
+
validations:
|
|
77
|
+
required: false
|
|
78
|
+
- type: textarea
|
|
79
|
+
id: configuration
|
|
80
|
+
attributes:
|
|
81
|
+
label: Configuration
|
|
82
|
+
description: |
|
|
83
|
+
Please provide more information on your SDK configuration:
|
|
84
|
+
* What OS and version, and what distro if applicable (Windows 10, Windows 11, MacOS Catalina, Ubuntu 22.04)?
|
|
85
|
+
* What is the architecture (x64, x86, ARM, ARM64)?
|
|
86
|
+
* Do you know whether it is specific to that configuration?
|
|
87
|
+
placeholder: |
|
|
88
|
+
- OS:
|
|
89
|
+
- architecture:
|
|
90
|
+
validations:
|
|
91
|
+
required: false
|
|
92
|
+
- type: textarea
|
|
93
|
+
id: other-info
|
|
94
|
+
attributes:
|
|
95
|
+
label: Other information
|
|
96
|
+
description: |
|
|
97
|
+
If you have an idea where the problem might lie, let us know that here. Please include any pointers to code, relevant changes, or related issues you know of.
|
|
98
|
+
placeholder: Other information
|
|
99
|
+
validations:
|
|
100
|
+
required: false
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: SDK Feature request
|
|
2
|
+
description: Request a new feature on the SDK
|
|
3
|
+
labels: ["type:feature", "status:waiting-for-triage"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
**Thank you for taking the time to fill out this feature request form!**
|
|
9
|
+
💥Please search to see if an issue already exists for the feature you are requesting.
|
|
10
|
+
- type: textarea
|
|
11
|
+
attributes:
|
|
12
|
+
label: Is your feature request related to a problem? Please describe the problem.
|
|
13
|
+
description: A clear and concise description of what the problem is.
|
|
14
|
+
placeholder: I am trying to do [...] but [...]
|
|
15
|
+
validations:
|
|
16
|
+
required: false
|
|
17
|
+
- type: textarea
|
|
18
|
+
attributes:
|
|
19
|
+
label: Describe the solution you'd like.
|
|
20
|
+
description: |
|
|
21
|
+
A clear and concise description of what you want to happen. Include any alternative solutions you've considered.
|
|
22
|
+
validations:
|
|
23
|
+
required: true
|
|
24
|
+
- type: textarea
|
|
25
|
+
attributes:
|
|
26
|
+
label: Additional context?
|
|
27
|
+
description: |
|
|
28
|
+
Add any other context or screenshots about the feature request here.
|
|
29
|
+
validations:
|
|
30
|
+
required: false
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
blank_issues_enabled: true
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Question on use of graph sdk
|
|
4
|
+
url: https://github.com/microsoftgraph/msgraph-typescript-typings/discussions
|
|
5
|
+
about: Please add your question in the discussions section of the repo
|
|
6
|
+
- name: Question on use of kiota
|
|
7
|
+
url: https://github.com/microsoft/kiota/discussions
|
|
8
|
+
about: Please add your question in the discussions section of the repo
|
|
9
|
+
- name: Question or Feature Request for the MS Graph API?
|
|
10
|
+
url: https://aka.ms/msgraphsupport
|
|
11
|
+
about: Report an issue or limitation with the MS Graph service APIs
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
# File initially created using https://github.com/MIchaelMainer/policyservicetoolkit/blob/main/branch_protection_export.ps1.
|
|
5
|
+
|
|
6
|
+
name: msgraph-typescript-typings-branch-protection
|
|
7
|
+
description: Branch protection policy for the msgraph-typescript-typings repository
|
|
8
|
+
resource: repository
|
|
9
|
+
configuration:
|
|
10
|
+
branchProtectionRules:
|
|
11
|
+
|
|
12
|
+
- branchNamePattern: main
|
|
13
|
+
# This branch pattern applies to the following branches as of 06/12/2023 14:45:32:
|
|
14
|
+
# main
|
|
15
|
+
|
|
16
|
+
# Specifies whether this branch can be deleted. boolean
|
|
17
|
+
allowsDeletions: false
|
|
18
|
+
# Specifies whether forced pushes are allowed on this branch. boolean
|
|
19
|
+
allowsForcePushes: false
|
|
20
|
+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
|
|
21
|
+
dismissStaleReviews: true
|
|
22
|
+
# Specifies whether admins can overwrite branch protection. boolean
|
|
23
|
+
isAdminEnforced: false
|
|
24
|
+
# Indicates whether "Require a pull request before merging" is enabled. boolean
|
|
25
|
+
requiresPullRequestBeforeMerging: true
|
|
26
|
+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
|
|
27
|
+
requiredApprovingReviewsCount: 1
|
|
28
|
+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
|
|
29
|
+
requireCodeOwnersReview: true
|
|
30
|
+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
|
|
31
|
+
requiresCommitSignatures: false
|
|
32
|
+
# Are conversations required to be resolved before merging? boolean
|
|
33
|
+
requiresConversationResolution: true
|
|
34
|
+
# Are merge commits prohibited from being pushed to this branch. boolean
|
|
35
|
+
requiresLinearHistory: false
|
|
36
|
+
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
|
|
37
|
+
requiredStatusChecks:
|
|
38
|
+
- CodeQL
|
|
39
|
+
- GitOps/AdvancedSecurity
|
|
40
|
+
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
|
|
41
|
+
requiresStrictStatusChecks: true
|
|
42
|
+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
|
|
43
|
+
restrictsPushes: false
|
|
44
|
+
# Restrict who can dismiss pull request reviews. boolean
|
|
45
|
+
restrictsReviewDismissals: false
|
|
46
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
id:
|
|
2
|
+
name: GitOps.PullRequestIssueManagement
|
|
3
|
+
description: GitOps.PullRequestIssueManagement primitive
|
|
4
|
+
owner:
|
|
5
|
+
resource: repository
|
|
6
|
+
disabled: false
|
|
7
|
+
where:
|
|
8
|
+
configuration:
|
|
9
|
+
resourceManagementConfiguration:
|
|
10
|
+
scheduledSearches: []
|
|
11
|
+
eventResponderTasks:
|
|
12
|
+
- if:
|
|
13
|
+
- payloadType: Issues
|
|
14
|
+
- isAction:
|
|
15
|
+
action: Closed
|
|
16
|
+
- hasLabel:
|
|
17
|
+
label: 'status:waiting-for-author-feedback'
|
|
18
|
+
then:
|
|
19
|
+
- removeLabel:
|
|
20
|
+
label: 'status:waiting-for-author-feedback'
|
|
21
|
+
description:
|
|
22
|
+
- if:
|
|
23
|
+
- payloadType: Issue_Comment
|
|
24
|
+
- isAction:
|
|
25
|
+
action: Created
|
|
26
|
+
- isActivitySender:
|
|
27
|
+
issueAuthor: True
|
|
28
|
+
- hasLabel:
|
|
29
|
+
label: 'status:waiting-for-author-feedback'
|
|
30
|
+
then:
|
|
31
|
+
- addLabel:
|
|
32
|
+
label: 'Needs: Attention :wave:'
|
|
33
|
+
- removeLabel:
|
|
34
|
+
label: 'status:waiting-for-author-feedback'
|
|
35
|
+
description:
|
|
36
|
+
- if:
|
|
37
|
+
- payloadType: Issues
|
|
38
|
+
- not:
|
|
39
|
+
isAction:
|
|
40
|
+
action: Closed
|
|
41
|
+
- hasLabel:
|
|
42
|
+
label: no-recent-activity
|
|
43
|
+
then:
|
|
44
|
+
- removeLabel:
|
|
45
|
+
label: no-recent-activity
|
|
46
|
+
description:
|
|
47
|
+
- if:
|
|
48
|
+
- payloadType: Issues
|
|
49
|
+
- labelAdded:
|
|
50
|
+
label: service bug
|
|
51
|
+
then: []
|
|
52
|
+
description:
|
|
53
|
+
- if:
|
|
54
|
+
- payloadType: Issue_Comment
|
|
55
|
+
- activitySenderHasAssociation:
|
|
56
|
+
association: Contributor
|
|
57
|
+
- bodyContains:
|
|
58
|
+
pattern: '?'
|
|
59
|
+
isRegex: False
|
|
60
|
+
- bodyContains:
|
|
61
|
+
pattern: '@'
|
|
62
|
+
isRegex: False
|
|
63
|
+
then:
|
|
64
|
+
- addLabel:
|
|
65
|
+
label: 'status:waiting-for-author-feedback'
|
|
66
|
+
description:
|
|
67
|
+
- if:
|
|
68
|
+
- payloadType: Issues
|
|
69
|
+
- or:
|
|
70
|
+
- isAssignedToSomeone
|
|
71
|
+
- isAction:
|
|
72
|
+
action: Closed
|
|
73
|
+
then:
|
|
74
|
+
- removeLabel:
|
|
75
|
+
label: ToTriage
|
|
76
|
+
description:
|
|
77
|
+
onFailure:
|
|
78
|
+
onSuccess:
|
|
@@ -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/fetch-metadata@v2.3.0
|
|
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}}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [ "main" ]
|
|
17
|
+
pull_request:
|
|
18
|
+
# The branches below must be a subset of the branches above
|
|
19
|
+
branches: [ "main" ]
|
|
20
|
+
schedule:
|
|
21
|
+
- cron: '37 21 * * 1'
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
analyze:
|
|
25
|
+
name: Analyze
|
|
26
|
+
# Runner size impacts CodeQL analysis time. To learn more, please see:
|
|
27
|
+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
|
|
28
|
+
# - https://gh.io/supported-runners-and-hardware-resources
|
|
29
|
+
# - https://gh.io/using-larger-runners
|
|
30
|
+
# Consider using larger runners for possible analysis time improvements.
|
|
31
|
+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
|
32
|
+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
|
|
33
|
+
permissions:
|
|
34
|
+
actions: read
|
|
35
|
+
contents: read
|
|
36
|
+
security-events: write
|
|
37
|
+
|
|
38
|
+
strategy:
|
|
39
|
+
fail-fast: false
|
|
40
|
+
matrix:
|
|
41
|
+
language: [ 'javascript' ]
|
|
42
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
|
|
43
|
+
# Use only 'java' to analyze code written in Java, Kotlin or both
|
|
44
|
+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
|
45
|
+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- name: Checkout repository
|
|
49
|
+
uses: actions/checkout@v5
|
|
50
|
+
|
|
51
|
+
# Initializes the CodeQL tools for scanning.
|
|
52
|
+
- name: Initialize CodeQL
|
|
53
|
+
uses: github/codeql-action/init@v3
|
|
54
|
+
with:
|
|
55
|
+
languages: ${{ matrix.language }}
|
|
56
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
57
|
+
# By default, queries listed here will override any specified in a config file.
|
|
58
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
59
|
+
|
|
60
|
+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
61
|
+
# queries: security-extended,security-and-quality
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
|
|
65
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
66
|
+
- name: Autobuild
|
|
67
|
+
uses: github/codeql-action/autobuild@v3
|
|
68
|
+
|
|
69
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
70
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
71
|
+
|
|
72
|
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
73
|
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
74
|
+
|
|
75
|
+
# - run: |
|
|
76
|
+
# echo "Run, Build Application using script"
|
|
77
|
+
# ./location_of_script_within_repo/buildscript.sh
|
|
78
|
+
|
|
79
|
+
- name: Perform CodeQL Analysis
|
|
80
|
+
uses: github/codeql-action/analyze@v3
|
|
81
|
+
with:
|
|
82
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# This workflow is used to add new issues to GitHub GraphSDKs Project
|
|
2
|
+
|
|
3
|
+
name: Add Issue or PR to project
|
|
4
|
+
on:
|
|
5
|
+
issues:
|
|
6
|
+
types:
|
|
7
|
+
- opened
|
|
8
|
+
pull_request:
|
|
9
|
+
types:
|
|
10
|
+
- opened
|
|
11
|
+
branches:
|
|
12
|
+
- "main"
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
track_issue:
|
|
16
|
+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork == false
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- name: Generate token
|
|
20
|
+
id: generate_token
|
|
21
|
+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
|
|
22
|
+
with:
|
|
23
|
+
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
|
|
24
|
+
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
|
|
25
|
+
|
|
26
|
+
- name: Get project data
|
|
27
|
+
env:
|
|
28
|
+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
29
|
+
ORGANIZATION: microsoftgraph
|
|
30
|
+
PROJECT_NUMBER: 55
|
|
31
|
+
run: |
|
|
32
|
+
gh api graphql -f query='
|
|
33
|
+
query($org: String!, $number: Int!) {
|
|
34
|
+
organization(login: $org){
|
|
35
|
+
projectV2(number: $number) {
|
|
36
|
+
id
|
|
37
|
+
fields(first:20) {
|
|
38
|
+
nodes {
|
|
39
|
+
... on ProjectV2SingleSelectField {
|
|
40
|
+
id
|
|
41
|
+
name
|
|
42
|
+
options {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
|
|
52
|
+
|
|
53
|
+
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
|
|
54
|
+
echo 'LANGUAGE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .id' project_data.json) >> $GITHUB_ENV
|
|
55
|
+
echo 'LANGUAGE_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .options[] | select(.name=="TypeScript") |.id' project_data.json) >> $GITHUB_ENV
|
|
56
|
+
|
|
57
|
+
- name: Add Issue or PR to project
|
|
58
|
+
env:
|
|
59
|
+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
60
|
+
ISSUE_ID: ${{ github.event_name == 'issues' && github.event.issue.node_id || github.event.pull_request.node_id }}
|
|
61
|
+
run: |
|
|
62
|
+
item_id="$( gh api graphql -f query='
|
|
63
|
+
mutation($project:ID!, $issue:ID!) {
|
|
64
|
+
addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
|
|
65
|
+
item {
|
|
66
|
+
id
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectV2ItemById.item.id')"
|
|
70
|
+
|
|
71
|
+
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
|
|
72
|
+
|
|
73
|
+
- name: Set Language
|
|
74
|
+
env:
|
|
75
|
+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
76
|
+
run: |
|
|
77
|
+
gh api graphql -f query='
|
|
78
|
+
mutation (
|
|
79
|
+
$project: ID!
|
|
80
|
+
$item: ID!
|
|
81
|
+
$language_field: ID!
|
|
82
|
+
$language_value: String!
|
|
83
|
+
) {
|
|
84
|
+
set_status: updateProjectV2ItemFieldValue(input: {
|
|
85
|
+
projectId: $project
|
|
86
|
+
itemId: $item
|
|
87
|
+
fieldId: $language_field
|
|
88
|
+
value: {singleSelectOptionId: $language_value}
|
|
89
|
+
}) {
|
|
90
|
+
projectV2Item {
|
|
91
|
+
id
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f language_field=$LANGUAGE_FIELD_ID -f language_value=${{ env.LANGUAGE_OPTION_ID }} --silent
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## -----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See LICENSE.txt in the project root for license information.
|
|
4
|
+
## -----------------------------------------------------------------------------
|
|
5
|
+
#
|
|
6
|
+
# Summary:
|
|
7
|
+
# This GitHub Actions workflow automates the release process using Release Please.
|
|
8
|
+
# It triggers on pushes to the main branch, generates a GitHub App token using organization
|
|
9
|
+
# variables and secrets, and then runs the release-please-action to manage versioning and changelogs.
|
|
10
|
+
|
|
11
|
+
name: Release Please
|
|
12
|
+
|
|
13
|
+
on:
|
|
14
|
+
push:
|
|
15
|
+
branches:
|
|
16
|
+
- main
|
|
17
|
+
paths:
|
|
18
|
+
- microsoft-graph.d.ts
|
|
19
|
+
jobs:
|
|
20
|
+
release:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- name: Generate GitHub App token
|
|
26
|
+
id: app-token
|
|
27
|
+
uses: actions/create-github-app-token@v2
|
|
28
|
+
with:
|
|
29
|
+
app-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
|
|
30
|
+
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
|
|
31
|
+
|
|
32
|
+
- name: Release Please
|
|
33
|
+
uses: googleapis/release-please-action@v4
|
|
34
|
+
with:
|
|
35
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
36
|
+
config-file: release-please-config.json
|
|
37
|
+
manifest-file: .release-please-manifest.json
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [2.43.1](https://github.com/microsoftgraph/msgraph-typescript-typings/compare/v2.43.0...v2.43.1) (2025-09-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* moves pipeline to governed template. ([9af5685](https://github.com/microsoftgraph/msgraph-typescript-typings/commit/9af5685c46beb20119409b6484fc7bd4e78e719b))
|