Skip to content

Commit

Permalink
Merge pull request #81 from AIO-GAME/1.x
Browse files Browse the repository at this point in the history
1.x
  • Loading branch information
xinansky authored Jun 2, 2024
2 parents 0911fc2 + 08c1e8c commit dc8023e
Show file tree
Hide file tree
Showing 334 changed files with 17,187 additions and 6,756 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

* text=auto

Tools~ merge=ours

###############################################################################
# Set default behavior for command prompt diff.
#
Expand Down
11 changes: 8 additions & 3 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<p align="center">
<img src="./RES/Logo.svg" width="144" alt="https://github.com/AIO-GAME/Common"/>
</p>
```
██╗ ██╗███╗ ██╗██╗████████╗██╗ ██╗ ██████╗ ██████╗ ███╗ ███╗███╗ ███╗ ██████╗ ███╗ ██╗
██║ ██║████╗ ██║██║╚══██╔══╝╚██╗ ██╔╝ ██╔════╝██╔═══██╗████╗ ████║████╗ ████║██╔═══██╗████╗ ██║
██║ ██║██╔██╗ ██║██║ ██║ ╚████╔╝ ██║ ██║ ██║██╔████╔██║██╔████╔██║██║ ██║██╔██╗ ██║
██║ ██║██║╚██╗██║██║ ██║ ╚██╔╝ ██║ ██║ ██║██║╚██╔╝██║██║╚██╔╝██║██║ ██║██║╚██╗██║
╚██████╔╝██║ ╚████║██║ ██║ ██║ ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ╚═╝ ██║╚██████╔╝██║ ╚████║
╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
```
<h1 align="center">AIO Unity Common</h1>
<p align="center"><strong>C# Basic universal library Easily match frame components</strong></p>
<p align="center"><a href="README_EN.md">English</a> | 简体中文</p>
Expand Down
41 changes: 41 additions & 0 deletions .github/qodana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
linter: jetbrains/qodana-dotnet:2023.3
include:
- name: CheckDependencyLicenses
paths:
- "Editor"
- "Editor.GUI.CLI"
- "Runtime"
- "Plugins"

#Specify IDE code to run analysis without container (Applied in CI/CD pipeline)
ide: QDNET

#Specify inspection profile for code analysis
profile:
name: qodana.starter

#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>

#Disable inspections
exclude:
- name: All
paths:
- "Tools~"
- "Resources"
- "*.meta"
- "*.asmdef"
- "*.tt"

#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh

#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
31 changes: 31 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🧬 Code Optimize Qodana
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
tags: # 当生成指定标签时触发
- '*.*.*'
branches: # Specify your branches here
- main
- '1.*'
jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # 检查实际的pull请求提交,而不是合并提交
fetch-depth: 0 # 拉请求分析需要完整的历史记录
- name: 🧬 Qodana Scan
uses: JetBrains/[email protected]
with:
pr-mode: false
args: --property=qodana.net.solution=ALL.sln
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/codecov.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/github-close-stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright (C) Markus Franz Xaver Johannes Oberhumer

# see https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues
# see https://github.com/actions/stale

# Automatically closing issues is far from perfect, but then we only
# have limited resources and this approach favors issues that people
# actually care about.
#
# also see:
# "Should I Stale or Should I Close? An Analysis of a Bot that Closes
# Abandoned Issues and Pull Request".
# https://igorwiese.com/images/papers/Paper_BotSE_19.pdf

name: 🧪 GitHub - Close stale issues
on:
schedule: [ cron: "50 0 * * 1" ] # run weekly Monday 00:50 UTC
workflow_dispatch:
jobs:
job-close-stale-issues:
if: github.repository_owner == 'upx' && github.repository == 'upx/upx'
name: Close stale issues
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
operations-per-run: 300
exempt-all-milestones: true
exempt-issue-labels: 'blocker,bug,enhancement,help wanted,regression'
days-before-stale: 90
days-before-close: 30
stale-issue-message: |
### English
This issue is stale because it has been open for 90 days with no activity.
Please remove the stale label or add a comment or this issue will be closed in 30 days.
### 中文
此问题已经打开了90天没有活动,因此已经过时。
请删除过时标签或添加评论,否则此问题将在30天内关闭。
stale-pr-message: |
### English
This PR is stale because it has been open for 90 days with no activity.
Please remove the stale label or add a comment or this PR will be closed in 30 days.
### 中文
此拉取请求已经打开了90天没有活动,因此已经过时。
请删除过时标签或添加评论,否则此拉取请求将在30天内关闭。
close-issue-message: |
### English
This issue was closed because it has been stale for 30 days with no activity. Please feel free to reopen.
### 中文
此问题已经过时30天没有活动,因此已经关闭。请随时重新打开。
close-pr-message: |
### English
This PR was closed because it has been stale for 30 days with no activity. Please feel free to reopen.
### 中文
此拉取请求已经过时30天没有活动,因此已经关闭。请随时重新打开.
repo-token: ${{ secrets.GITHUB_TOKEN }}
41 changes: 26 additions & 15 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Greetings
name: 🧪 CI Greetings

on: [pull_request_target, issues]
on: [ pull_request_target, issues ]

jobs:
greeting:
Expand All @@ -9,16 +9,27 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hello @${{ github.actor }} , thank you for submitting an issue!"
pr-message: "Hello @${{ github.actor }} , thank you submitting a pull request!"
issuesOpened: |
👋 @{{ author }} Thank you for raising an issue.
We will will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
pullRequestOpened: |
👋 @{{ author }}
Thank you for raising your pull request.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hello @${{ github.actor }} , thank you for submitting an issue!"
pr-message: "Hello @${{ github.actor }} , thank you submitting a pull request!"
issuesOpened: |
### English
👋 @{{ author }} Thank you for raising an issue.
We will will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
### 中文
👋 @{{ author }} 感谢您提出问题。
我们将调查此问题并尽快回复您。
请确保您尽可能提供尽可能多的上下文。
pullRequestOpened: |
### English
👋 @{{ author }}
Thank you for raising your pull request.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
### 中文
👋 @{{ author }}
感谢您提出拉取请求。
请确保您已遵循我们的贡献准则。我们将尽快审查它。
7 changes: 3 additions & 4 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# To use this workflow, you will need to set up a .github/workflows/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on: [pull_request_target]
name: 🧪 CI Labeler
on: [ pull_request_target ]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/lint-md.yml

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/reademe-contributors.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: 🧪 CI Generate a list of contributors
on:
push:
branches:
- main

name: Generate a list of contributors

jobs:
contrib-readme-en-job:
runs-on: ubuntu-latest
Expand All @@ -15,9 +13,9 @@ jobs:
with:
image_size: 64
readme_path: .github/README.md
use_username: true
use_username: true
commit_message: "🤖 [contrib-readme-action] : updated readme"
committer_username: "Action Contrib Readme"
committer_email: "[email protected]"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 0 additions & 28 deletions .github/workflows/update-changelog.yml

This file was deleted.

Loading

0 comments on commit dc8023e

Please sign in to comment.