Skip to content
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
3 changes: 2 additions & 1 deletion .github/workflows/merge-bot-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Merge bot pull request action

on:
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
merge-codegen:
name: Merge codegen pull request job
runs-on: ubuntu-latest
if: github.actor == 'github-actions[bot]' && github.event.pull_request.head.ref == 'codegen-update' && github.event.pull_request.head.repo.full_name == github.repository
if: github.actor == 'ptr727' && github.event.pull_request.user.login == 'ptr727' && github.event.pull_request.head.ref == 'codegen' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.repo.full_name == github.repository
Comment thread
ptr727 marked this conversation as resolved.
permissions:
contents: write
pull-requests: write
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/run-codegen-pull-request-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Run codegen and pull request task

on:
workflow_call:
secrets:
WORKFLOW_PAT:
required: true

jobs:

Expand All @@ -18,6 +21,8 @@ jobs:

- name: Checkout code step
uses: actions/checkout@v6
with:
ref: main

- name: Run codegen step
run: |
Expand All @@ -34,7 +39,9 @@ jobs:
- name: Create pull request step
uses: peter-evans/create-pull-request@v8
with:
branch: codegen-update
token: ${{ secrets.WORKFLOW_PAT }}
base: main
branch: codegen
title: 'Update codegen files'
body: 'This PR updates the codegen files.'
commit-message: 'Update codegen files'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test pull request action

on:
pull_request:
branches: [ main, develop, codegen-update ]
branches: [ main, develop, codegen ]
workflow_dispatch:

concurrency:
Expand Down
210 changes: 113 additions & 97 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,97 +1,113 @@
{
"version": "2.0.0",
"tasks": [
{
"label": ".Net Build",
"type": "process",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}",
"--verbosity=diagnostic"
],
"group": "build",
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
{
"label": ".Net Format",
"type": "process",
"command": "dotnet",
"args": [
"format",
"style",
"--verify-no-changes",
"--severity=info",
"--verbosity=detailed"
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
},
"dependsOn": [
"CSharpier Format",
".Net Build"
]
},
{
"label": "CSharpier Format",
"type": "process",
"command": "dotnet",
"args": [
"csharpier",
"format",
"--log-level=debug",
"."
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
{
"label": ".Net Tool Update",
"type": "process",
"command": "dotnet",
"args": [
"tool",
"update",
"--all"
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
{
"label": "Husky.Net Run",
"type": "process",
"command": "dotnet",
"args": [
"husky",
"run"
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": ".Net Build",
"type": "process",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}",
"--verbosity=diagnostic"
],
"group": "build",
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
{
"label": ".Net Format",
"type": "process",
"command": "dotnet",
"args": [
"format",
"style",
"--verify-no-changes",
"--severity=info",
"--verbosity=detailed"
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
},
"dependsOn": [
"CSharpier Format",
".Net Build"
]
},
{
"label": "CSharpier Format",
"type": "process",
"command": "dotnet",
"args": [
"csharpier",
"format",
"--log-level=debug",
"."
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
{
"label": ".Net Tool Update",
"type": "process",
"command": "dotnet",
"args": [
"tool",
"update",
"--all"
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
{
"label": "Husky.Net Run",
"type": "process",
"command": "dotnet",
"args": [
"husky",
"run"
],
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
},
{
"label": ".Net Outdated Upgrade",
"type": "process",
"command": "dotnet",
"args": [
"outdated",
"--upgrade:Prompt"
],
Comment thread
ptr727 marked this conversation as resolved.
"problemMatcher": [
"$msCompile"
],
"presentation": {
"showReuseMessage": false,
"clear": false
}
}
]
}
Loading