diff --git a/.chglog/config.yml b/.chglog/config.yml index 4da2d2f4..feae7a27 100755 --- a/.chglog/config.yml +++ b/.chglog/config.yml @@ -2,7 +2,7 @@ style: github template: CHANGELOG.tpl.md info: title: CHANGELOG - repository_url: https://github.com/guanguans/monorepo-builder-worker + repository_url: https://github.com/guanguans/notify options: commits: filters: diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..1bc44103 --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,146 @@ + +统计 +升级会员享更多高级权益 +立即升级 +生词 +已掌握 +例句库 +PDF 翻译 +beta + +管理黑名单 +本页生词 +(0) +已掌握 +(0) +Search +我的 +设置 +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +ityaozm@gmail.com. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. \ No newline at end of file diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 6c82a699..5c9d6cfe 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -6,7 +6,7 @@ # https://github.com/actions/labeler name: labeler -on: [pull_request] +on: [ pull_request ] jobs: label: @@ -17,6 +17,6 @@ jobs: pull-requests: write steps: - - uses: actions/labeler@v5 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/lint-md.yml b/.github/workflows/lint-md.yml index ccc64ef9..b2bcc81b 100644 --- a/.github/workflows/lint-md.yml +++ b/.github/workflows/lint-md.yml @@ -1,6 +1,6 @@ name: lint markdown -on: [push, pull_request] +on: [ push, pull_request ] jobs: lint-markdown: @@ -14,4 +14,4 @@ jobs: with: configFile: .lintmdrc failOnWarnings: false - files: ./ ./.github/ ./docs/ + files: ./ ./.github/ ./docs/ \ No newline at end of file diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 406c8b3e..86e82163 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -27,7 +27,7 @@ jobs: key: composer-${{ hashFiles('composer.lock') }} - name: Run composer install - run: composer install -n --prefer-dist + run: composer install -n --prefer-dist --ansi -v - name: Run psalm - run: ./vendor/bin/psalm + run: ./vendor/bin/psalm \ No newline at end of file diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 36792688..8ac669bb 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -33,4 +33,4 @@ jobs: run: composer install --no-interaction --prefer-dist --ansi -v - name: Run rector - run: composer rector-dry-run + run: composer rector-dry-run \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 2036c7f7..79aa90c3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,7 @@ name: Mark stale issues and pull requests on: schedule: - - cron: '30 08 * * *' + - cron: '30 08 * * *' jobs: stale: @@ -18,10 +18,10 @@ jobs: pull-requests: write steps: - - uses: actions/stale@v9 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'Stale issue message' + stale-pr-message: 'Stale pull request message' + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4698bc96..535e1aef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: true matrix: os: [ ubuntu-latest ] - php: [ 7.2.5, 8.0 ] + php: [ 7.2.5, 8.3 ] dependency-version: [ prefer-stable ] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} @@ -32,7 +32,7 @@ jobs: coverage: xdebug - name: Install dependencies - run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi -v - name: Execute tests run: composer test-coverage diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index fc8b3ae5..3b85a0eb 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -2,7 +2,7 @@ name: "update changelog" on: release: - types: [released] + types: [ released ] jobs: update: