Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

14.0.2 #7

Merged
merged 16 commits into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/dependabot.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 🤖 Auto Assign
on:
issues:
types: [opened, edited, labeled, unlabeled]
pull_request:
types: [opened, edited, labeled, unlabeled]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/auto-assign@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
reviewers: |
${{ github.repository_owner }}
assignees: |
${{ github.repository_owner }}
11 changes: 3 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
name: 🏗️ Build
on:
pull_request:
branches: "*"
workflow_dispatch:
jobs:
metadata:
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/generate-project-metadata.yml@main
build:
runs-on: ubuntu-latest
needs:
- metadata
steps:
- name: Build
uses: jcdcdev/jcdcdev.Umbraco.Github.Build@main
with:
project-name: ${{ needs.metadata.outputs.project-name}}
project-path: ${{ needs.metadata.outputs.project-path }}
npm-working-dir: ${{ needs.metadata.outputs.npm-working-dir }}
project-name: Umbraco.Community.SimpleWorkspaceViews
project-path: src/Umbraco.Community.SimpleWorkspaceViews/Umbraco.Community.SimpleWorkspaceViews.csproj
npm-working-dir: src/Umbraco.Community.SimpleWorkspaceViews.Client
npm-enabled: true
umbraco-version: 14
36 changes: 14 additions & 22 deletions .github/workflows/pr.yml → .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: 🔃 Create PRs
name: 📤 Create PRs
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Run the workflow without creating PRs'
description: "Dry run: Run the workflow without creating a Pull Request"
required: false
default: false
type: boolean
schedule:
- cron: '0 0 * * *'
- cron: '0 2 * * *'
jobs:
get-branches:
outputs:
Expand Down Expand Up @@ -36,12 +36,10 @@ jobs:
matrix:
branch: ${{fromJson(needs.get-branches.outputs.branches)}}
runs-on: ubuntu-latest
env:
DRY_RUN: ${{ contains(github.event.inputs.dry-run, 'true') }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Env
- name: Set Variables
run: |
TARGET=$(echo ${{ matrix.branch }} | sed 's/dev\///')
SOURCE=${{ matrix.branch }}
Expand All @@ -56,22 +54,16 @@ jobs:
exit 1
fi

if [ "$SOURCE" == "$TARGET" ]; then
echo "SOURCE is the same as TARGET"
exit 1
fi

echo "SOURCE=$SOURCE"
echo "TARGET=$TARGET"

echo "SOURCE=$SOURCE" >> $GITHUB_ENV
echo "TARGET=$TARGET" >> $GITHUB_ENV
- name: Run the Action
if: ${{ github.event.inputs.dry-run == 'false' }}
uses: devops-infra/action-pull-request@v0.5.5
- name: Create Pull Request
id: create-pull-request
uses: jcdcdev/jcdcdev.GitHub.CreatePullRequest@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: ${{ env.SOURCE }}
target_branch: ${{ env.TARGET }}
title: "Merge ${{ env.SOURCE }} into ${{ env.TARGET }}"
reviewer: ${{ github.repository_owner }}
assignee: ${{ github.repository_owner }}
source-branch: ${{ env.SOURCE }}
target-branch: ${{ env.TARGET }}
dry-run: ${{ env.DRY_RUN }}
github-token: ${{ secrets.JCDC_BOT_TOKEN }}
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,19 @@ on:
pull_request:
types: [ closed ]
jobs:
metadata:
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/generate-project-metadata.yml@main
release:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- metadata
steps:
- name: Build
id: build
uses: jcdcdev/jcdcdev.Umbraco.GitHub.Build@main
with:
project-name: ${{ needs.metadata.outputs.project-name}}
project-path: ${{ needs.metadata.outputs.project-path }}
npm-working-dir: ${{ needs.metadata.outputs.npm-working-dir }}
project-name: Umbraco.Community.SimpleWorkspaceViews
project-path: src/Umbraco.Community.SimpleWorkspaceViews/Umbraco.Community.SimpleWorkspaceViews.csproj
npm-working-dir: src/Umbraco.Community.SimpleWorkspaceViews.Client
npm-enabled: true
umbraco-version: 14
- name: Release
Expand Down
Binary file added docs/document.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/media.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/missing-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/TestSite.14/Views/Partials/ExampleWorkspaceView.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@inherits Umbraco.Community.SimpleWorkspaceViews.Web.WorkspaceViewViewPage

<uui-box headline="@Model.WorkspaceView.Name">
<ul>
<li>Key: @Model.Key</li>
<li>EntityType: @Model.EntityType</li>
</ul>
</uui-box>
37 changes: 21 additions & 16 deletions src/Umbraco.Community.SimpleWorkspaceViews.Client/package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"generate": "openapi-ts"
},
"dependencies": {
"lit": "^3.1.3"
"lit": "^3.2.0"
},
"devDependencies": {
"@hey-api/openapi-ts": "^0.46.3",
Expand Down
Loading