Skip to content

Commit

Permalink
Merge pull request #232 from TheDragonCode/4.x
Browse files Browse the repository at this point in the history
Removed requirement to install `symfony/thanks`
  • Loading branch information
andrey-helldar authored Mar 27, 2024
2 parents 3a9b512 + 4d82fc4 commit d185e9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,23 @@ jobs:

- name: Setup Composer
run: |
composer global config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}
composer global config --no-plugins allow-plugins.dragon-code/codestyler true
composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true
composer global config --no-plugins allow-plugins.symfony/thanks true
composer config --no-plugins allow-plugins.dragon-code/codestyler true
composer config --no-plugins allow-plugins.ergebnis/composer-normalize true
composer config --no-plugins allow-plugins.symfony/thanks true
- name: Install dependencies
run: |
composer global require dragon-code/codestyler
composer global require ergebnis/composer-normalize
composer global require symfony/thanks
- name: Fix the code-style
run: |
codestyle dependabot
codestyle
composer normalize
composer thanks
- name: Create a Pull Request
uses: peter-evans/create-pull-request@v6
Expand Down
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ By default, `Codestyler` does not require any configuration and will fix code st
the opinionated coding style of `The Dragon Code` based on the [`PER`](https://www.php-fig.org/per/coding-style/) rule
set.


> The easiest and free way to say “thank you” to the developers whose packages
> you use is to “star” the GitHub repository.
>
> See more at https://github.com/symfony/thanks

## Installation

### Required
Expand Down Expand Up @@ -210,21 +217,16 @@ jobs:

- name: Setup Composer
run: |
composer global config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}
composer global config --no-plugins allow-plugins.dragon-code/codestyler true
composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true
composer global config --no-plugins allow-plugins.symfony/thanks true
composer config --no-plugins allow-plugins.dragon-code/codestyler true
composer config --no-plugins allow-plugins.ergebnis/composer-normalize true
composer config --no-plugins allow-plugins.symfony/thanks true
- name: Install dependencies
run: |
composer global require dragon-code/codestyler
composer global require ergebnis/composer-normalize
composer global require symfony/thanks
- name: Fix the code-style
run: |
Expand All @@ -245,11 +247,6 @@ jobs:
# Provides a composer plugin for normalizing `composer.json`.
composer normalize
# The easiest and free way to say “thank you” to the developers whose packages
you use is to “star” the GitHub repository.
# See more at https://github.com/symfony/thanks
composer thanks
- name: Create a Pull Request
uses: peter-evans/create-pull-request@v6
with:
Expand All @@ -273,7 +270,6 @@ In this case, the following settings will be applied:
in your `composer.json` file:
- `dragon-code/codestyler`
- `ergebnis/composer-normalize`
- `symfony/thanks`
- Updates the `.github/dependabot.yml` file
- Updates the `.editorconfig` file
- Will correct the order of elements in the `composer.json` file to match
Expand Down

0 comments on commit d185e9f

Please sign in to comment.