Skip to content

Commit

Permalink
Merge branch 'main' into elinor/add-kiota-workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet authored May 2, 2024
2 parents fc6148f + 93e2508 commit 8b3ec49
Show file tree
Hide file tree
Showing 9 changed files with 240 additions and 23 deletions.
30 changes: 17 additions & 13 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,6 @@ extends:
baselineFile: $(Build.SourcesDirectory)/guardian/SDL/common/.gdnbaselines
suppression:
suppressionFile: $(Build.SourcesDirectory)/guardian/SDL/common/.gdnsuppress
variables:
- group: kiota-vscode-extension-publish
dependsOn:
- github_release
steps:
Expand All @@ -586,18 +584,24 @@ extends:
- pwsh: npm i -g @vscode/vsce
- pwsh: $(Build.SourcesDirectory)/scripts/get-prerelease-version.ps1 -currentBranch $(Build.SourceBranch) -previewBranch ${{ parameters.previewBranch }}
displayName: "Set version suffix"
- pwsh: |
Get-ChildItem -Path $(Pipeline.Workspace) -Filter *.vsix -Recurse | ForEach-Object {
Write-Host "Publishing $_.FullName"
if ($Env:isPrerelease -eq "true") {
Write-Host "Publishing $_.FullName as a pre-release"
vsce publish --pat "$(vs-marketplace-token)" --packagePath $_.FullName --pre-release
}
else {
Write-Host "Publishing $_.FullName as a release"
vsce publish --pat "$(vs-marketplace-token)" --packagePath $_.FullName
- task: AzureCLI@2
inputs:
azureSubscription: "kiota-vscode-marketplace-publish"
scriptType: "pscore"
scriptLocation: 'inlineScript'
inlineScript: |
$aadToken = az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv
Get-ChildItem -Path $(Pipeline.Workspace) -Filter *.vsix -Recurse | ForEach-Object {
Write-Host "Publishing $_.FullName"
if ($Env:isPrerelease -eq "true") {
Write-Host "Publishing $_.FullName as a pre-release"
vsce publish --pat "$aadToken" --packagePath $_.FullName --pre-release
}
else {
Write-Host "Publishing $_.FullName as a release"
vsce publish --pat "$aadToken" --packagePath $_.FullName
}
}
}
env:
isPrerelease: $(isPrerelease)
- deployment: github_release
Expand Down
149 changes: 149 additions & 0 deletions .github/ISSUE_TEMPLATE/01-kiota-bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
name: Kiota Bug Report
description: File Kiota bug report
labels: ["type:bug", "status:waiting-for-triage"]
body:
- type: markdown
attributes:
value: |
**Thank you for taking the time to fill out this bug report!**
💥Before submitting a new request, please search existing issues to see if an issue already exists.
- type: dropdown
attributes:
label: What are you generating using Kiota, clients or plugins?
description: |
What tooling are you generating?
options:
- API Client/SDK
- Kiota plugin
validations:
required: true
- type: dropdown
attributes:
label: In what context or format are you using Kiota?
description: Please select an option below
options:
- Nuget tool
- Source Build
- Windows executable
- Linux executable
- Mac executable
validations:
required: true
- type: dropdown
id: language
attributes:
label: Client Library/SDK Language
description: If Client SDK, what's the language in use?
multiple: false
options:
- C#
- CLI
- Go
- Java
- PHP
- PowerShell
- Python
- Ruby
- TypeScript
validations:
required: false
- type: textarea
id: description
attributes:
label: Describe the bug
description: |
Provide a description of the actual behavior observed. If applicable please include link to the public repo that replicates the issue.
placeholder: I am trying to do [...] with Kiota version [...] but [...]
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: |
A clear and concise description of what you expected to happen.
placeholder: Expected behavior
validations:
required: true
- type: textarea
id: repro-steps
attributes:
label: How to reproduce
description: |
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).
If link to the sample code in a pulblic repo exists, include it too.
placeholder: Minimal Reproduction steps.
validations:
required: true
- type: textarea
id: openapidescription
attributes:
label: "Open API description file"
description: "Provide Link to Open API description or attach description file below"
placeholder: "(<link here>) or attach yml file instead"
validations:
required: false
- type: input
attributes:
label: Kiota Version
placeholder: version-number
description: Version of Kiota with the bug described above. To check version run `kiota --version`
validations:
required: true
- type: input
id: regression
attributes:
label: Latest Kiota version known to work for scenario above?(Not required)
description: |
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.
placeholder: version-number
validations:
required: false
- type: textarea
id: known-workarounds
attributes:
label: Known Workarounds
description: |
Please provide a description of any known workarounds.
placeholder: Known Workarounds
validations:
required: false
- type: textarea
id: configuration
attributes:
label: Configuration
description: |
Please provide more information on your Device configuration:
* What OS, OS version, and what distro if applicable (Windows 10, Windows 11, MacOS Catalina, Ubuntu 22.04)?
* What is the architecture (x64, x86, ARM, ARM64)?
* Do you know whether it is specific to that configuration?
placeholder: |
- OS:
- architecture:
validations:
required: false
- type: textarea
id: logs
attributes:
label: Debug output
description: Please copy and paste the output when using the `--debug`` flag. This will be automatically formatted into code, so no need for backticks.
value: |
<details><summary>Click to expand log</summary>
```
<log output here>
```
</details>
validations:
required: false
- type: textarea
id: other-info
attributes:
label: Other information
description: |
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.
placeholder: Other information
validations:
required: false
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/02-kiota-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Kiota Feature request
description: Request a new feature on Kiota
labels: ["type:feature", "status:waiting-for-triage"]
body:
- type: markdown
attributes:
value: |
**Thank you for taking the time to fill out this feature request form!**
💥Please search to see if an issue already exists for the feature you are requesting.
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe the problem.
description: A clear and concise description of what the problem is.
placeholder: I am trying to do [...] but [...]
validations:
required: false
- type: dropdown
id: language
attributes:
label: Client library/SDK language
description: Is feature request related to any client library/SDK language?
multiple: false
options:
- C#
- CLI
- Go
- Java
- PHP
- PowerShell
- Python
- Ruby
- TypeScript
validations:
required: false
- type: textarea
attributes:
label: Describe the solution you'd like
description: |
A clear and concise description of what you want to happen. Include any alternative solutions you've considered.
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: |
Add any other context or screenshots about the feature request here.
validations:
required: false
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/03-blank-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Blank issue
about: Something that doesn't fit the other categories
title: ''
labels: ["status:waiting-for-triage"]
assignees: ''

---
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Question on use of kiota
url: https://github.com/microsoft/kiota/discussions
about: Please add your question in the discussions section of the repo
- name: Question or Feature Request for the MS Graph API?
url: https://aka.ms/msgraphsupport
about: Report an issue or limitation with the MS Graph service APIs
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "7.0.0",
"version": "8.0.0",
"rollForward": "latestMajor",
"allowPrerelease": false
}
}
}
8 changes: 4 additions & 4 deletions it/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion it/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prettier": "./.prettierrc.json",
"devDependencies": {
"@es-exec/esbuild-plugin-start": "^0.0.5",
"@types/node": "^20.12.7",
"@types/node": "^20.12.8",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.8.0",
"esbuild": "^0.20.2",
Expand Down
6 changes: 3 additions & 3 deletions vscode/microsoft-kiota/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b3ec49

Please sign in to comment.