Skip to content

Commit

Permalink
Merge branch 'master' into form-component
Browse files Browse the repository at this point in the history
  • Loading branch information
Amzani authored Oct 24, 2023
2 parents 352d778 + 3f0decb commit 8489dd5
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 42 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/issues-metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Monthly issue metrics
on:
workflow_dispatch:
schedule:
- cron: '3 2 1 * *'

permissions:
issues: write
pull-requests: read

jobs:
build:
name: issue metrics
runs-on: ubuntu-latest

steps:

- name: Get dates for last month
shell: bash
run: |
# Calculate the first day of the previous month
first_day=$(date -d "last month" +%Y-%m-01)
# Calculate the last day of the previous month
last_day=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d)
#Set an environment variable with the date range
echo "$first_day..$last_day"
echo "last_month=$first_day..$last_day" >> "$GITHUB_ENV"
- name: Run issue-metrics tool
uses: github/issue-metrics@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEARCH_QUERY: 'repo:shapeitapp/shapeitapp created:${{ env.last_month }}'

- name: Create issue
uses: peter-evans/create-issue-from-file@v4
with:
title: Monthly issue metrics report
token: ${{ secrets.GITHUB_TOKEN }}
content-filepath: ./issue_metrics.md
assignees: Amzani
2 changes: 1 addition & 1 deletion apps/studio/.sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Disable specific file since it would introduce more complexity to reduce it - mainly code complexity and complex template literals
sonar.exclusions=public/js/monaco/**,src/tailwind.css,src/components/SplitPane/**
# Disable duplicate code in tests since it would introduce more complexity to reduce it.
sonar.cpd.exclusions=public/js/monaco/**,src/components/Template/HTMLWrapper.tsx,src/components/Visualiser/Visualiser.tsx
sonar.cpd.exclusions=public/js/monaco/**,src/components/Template/HTMLWrapper.tsx,src/components/Visualiser/Visualiser.tsx,src/components/Navigationv3.tsx
6 changes: 6 additions & 0 deletions apps/studio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @asyncapi/studio

## 0.19.1

### Patch Changes

- 9187c17: fix studio breaking when trying to generate code/document

## 0.19.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions apps/studio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/studio",
"version": "0.19.0",
"version": "0.19.1",
"private": true,
"description": "One place that allows you to develop an AsyncAPI document, validate it, convert it to the latest version, preview the documentation and visualize the events flow.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -75,10 +75,10 @@
},
"devDependencies": {
"@asyncapi/dotnet-nats-template": "^0.12.1",
"@asyncapi/go-watermill-template": "^0.2.40",
"@asyncapi/go-watermill-template": "^0.2.43",
"@asyncapi/html-template": "^0.28.4",
"@asyncapi/java-spring-cloud-stream-template": "^0.13.4",
"@asyncapi/java-spring-template": "^1.3.0",
"@asyncapi/java-spring-template": "^1.4.0",
"@asyncapi/java-template": "^0.2.1",
"@asyncapi/markdown-template": "^1.4.0",
"@asyncapi/nodejs-template": "^1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const TemplateParametersSans: ForwardRefRenderFunction<TemplateParameters
const servers = document?.servers();
const availableServers: string[] = [];
Object.entries(servers || {}).forEach(([serverName, server]) => {
if (supportedProtocols.includes(server.protocol())) availableServers.push(serverName);
if (server.protocol && supportedProtocols.includes(server.protocol())) availableServers.push(serverName);
});

if (supportedProtocols.length && availableServers.length === 0) {
Expand Down
Loading

0 comments on commit 8489dd5

Please sign in to comment.