├── .github ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ └── feature_request.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── code_review.yml │ └── health_score.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── SECURITY.md ├── action.yml └── src └── .hidden /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers 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, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project owner at ale94lko@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Welcome to php-cs-fixer-action contributing guide 2 | 3 | Thank you for investing your time in contributing to our project! Contributions are always **welcome and recommended**! 4 | 5 | Read our [Code of Conduct](https://github.com/ale94lko/php-cs-fixer-action/blob/main/.github/CODE_OF_CONDUCT.md) to keep our community approachable and respectable. 6 | 7 | In this guide you will get an overview of the contribution workflow from opening an issue and creating a PR. 8 | 9 | ## Types of contributions 10 | You can contribute to this repository in several ways. 11 | 12 | ### :mega: Discussions 13 | Discussions are where we have conversations. 14 | 15 | If you'd like help troubleshooting a docs PR you're working on, have a great new idea, or want to share something amazing, join us in [discussions](https://github.com/ale94lko/php-cs-fixer-action/discussions). 16 | 17 | ### :lady_beetle: Issues 18 | [Issues](https://docs.github.com/en/github/managing-your-work-on-github/about-issues) are used to track tasks that contributors can help with. 19 | 20 | If you've found something in the content or the website that should be updated, search open issues to see if someone else has reported the same thing. If it's something new, open an issue using a [template](https://github.com/ale94lko/php-cs-fixer-action/issues/new/choose). We'll use the issue to have a conversation about the problem you want to fix. 21 | 22 | ### :hammer_and_wrench: Pull requests 23 | A [pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) is a way to suggest changes in our repository. 24 | 25 | ## Getting started 26 | 27 | ### Issues 28 | 29 | #### Create a new issue 30 | 31 | If you spot a problem, [search if an issue already exists](https://docs.github.com/en/github/searching-for-information-on-github/searching-on-github/searching-issues-and-pull-requests#search-by-the-title-body-or-comments). If a related issue doesn't exist, you can open a new issue using a relevant [issue form](https://github.com/ale94lko/php-cs-fixer-action/issues/new/choose). 32 | 33 | #### Solve an issue 34 | 35 | Scan through our [existing issues](https://github.com/ale94lko/php-cs-fixer-action/issues) to find one that interests you. If you find an issue to work on, you are welcome to open a PR with a fix. 36 | 37 | ### Make Changes 38 | 39 | 1. Fork the repository. 40 | - Using GitHub Desktop: 41 | - [Getting started with GitHub Desktop](https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/getting-started-with-github-desktop) will guide you through setting up Desktop. 42 | - Once Desktop is set up, you can use it to [fork the repo](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/cloning-and-forking-repositories-from-github-desktop)! 43 | 44 | - Using the command line: 45 | - [Fork the repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo#fork-an-example-repository) so that you can make your changes without affecting the original project until you're ready to merge them. 46 | 47 | 2. Create a working branch and start with your changes! 48 | 3. When you're finished with the changes, create a pull request. 49 | - Don't forget to [link PR to issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) if you are solving one. 50 | - Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so the branch can be updated for a merge. 51 | - We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch. 52 | - As you update your PR and apply changes, mark each conversation as [resolved](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations). 53 | - If you run into any merge issues, checkout this [git tutorial](https://github.com/skills/resolve-merge-conflicts) to help you resolve merge conflicts and other issues. 54 | 55 | ### Your PR is merged! 56 | 57 | Congratulations :tada: -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: Bug report 2 | description: Create a report to help us improve 3 | title: "Bug: " 4 | labels: ['type: Bug'] 5 | 6 | body: 7 | - type: markdown 8 | attributes: 9 | value: | 10 | Thanks for taking the time to fill out this bug report! 11 | 12 | Before you begin, **please ensure that there are no [existing issues](https://github.com/ale94lko/php-cs-fixer-action/issues), whether still open or closed, related to your report**. 13 | If there is, your report will be closed promptly. 14 | --- 15 | 16 | - type: input 17 | id: php-cs-fixer-version 18 | attributes: 19 | label: php-cs-fixer version 20 | description: | 21 | e.g. v3.9.4 22 | If you are not using the [latest version](https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases), please 23 | check to see if the problem occurs with the latest version. 24 | validations: 25 | required: true 26 | 27 | - type: dropdown 28 | id: rules-version 29 | attributes: 30 | label: Rules version 31 | description: Which php-cs-fixer-rules version did you run your code? 32 | multiple: true 33 | options: 34 | - 'Default' 35 | - 'v1.0' 36 | - 'v1.0.1' 37 | validations: 38 | required: true 39 | 40 | - type: dropdown 41 | id: full-rules-version 42 | attributes: 43 | label: Full or minimal rules version 44 | description: Which rules package did you run your code? 45 | multiple: true 46 | options: 47 | - 'Default' 48 | - 'Full rules package' 49 | - 'Minimal rules package' 50 | validations: 51 | required: true 52 | 53 | - type: textarea 54 | id: description 55 | attributes: 56 | label: What happened? 57 | placeholder: Tell us what you see! 58 | validations: 59 | required: true 60 | 61 | - type: textarea 62 | attributes: 63 | label: Steps to Reproduce 64 | description: Steps to reproduce the behavior. 65 | validations: 66 | required: true 67 | 68 | - type: textarea 69 | attributes: 70 | label: Expected Output 71 | description: What do you expect to happen instead of this bug? 72 | validations: 73 | required: true 74 | 75 | - type: textarea 76 | attributes: 77 | label: Anything else? 78 | description: | 79 | Links? References? Anything that will give us more context about the issue you are encountering! 80 | 81 | Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. 82 | validations: 83 | required: false -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: Feature Request 2 | description: Suggest an idea for this project 3 | title: "Feature: " 4 | labels: ['type: New Feature'] 5 | 6 | body: 7 | - type: markdown 8 | attributes: 9 | value: | 10 | Thanks for taking the time to fill out this new feature report! 11 | 12 | Before you begin, **please ensure that there are no [existing issues](https://github.com/ale94lko/php-cs-fixer-action/issues), whether still open or closed, related to your report**. 13 | If there is, your report will be closed promptly. 14 | --- 15 | 16 | - type: checkboxes 17 | id: terms 18 | attributes: 19 | label: Code of Conduct 20 | description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/ale94lko/php-cs-fixer-action/blob/main/.github/CODE_OF_CONDUCT.md) 21 | options: 22 | - label: I agree to follow this project's Code of Conduct 23 | required: true 24 | 25 | - type: input 26 | id: contact 27 | attributes: 28 | label: Contact Details 29 | description: How can we get in touch with you if we need more info? 30 | placeholder: eg. email@example.com 31 | validations: 32 | required: false 33 | 34 | - type: textarea 35 | attributes: 36 | label: What do you have in mind to make this project better? 37 | description: | 38 | Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. 39 | validations: 40 | required: false -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. 4 | 5 | Fixes # (issue) 6 | 7 | ## Type of change 8 | 9 | Please delete options that are not relevant. 10 | 11 | - [ ] Bug fix (non-breaking change which fixes an issue) 12 | - [ ] New feature (non-breaking change which adds functionality) 13 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 14 | - [ ] This change requires a documentation update 15 | 16 | # How Has This Been Tested? 17 | 18 | Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration 19 | 20 | - [ ] Test A 21 | - [ ] Test B 22 | 23 | # Checklist: 24 | 25 | - [ ] My code follows the style guidelines of this project 26 | - [ ] I have performed a self-review of my own code 27 | - [ ] I have commented my code, particularly in hard-to-understand areas 28 | - [ ] I have made corresponding changes to the documentation 29 | - [ ] My changes generate no new warnings 30 | - [ ] I have added tests that prove my fix is effective or that my feature works 31 | - [ ] New and existing unit tests pass locally with my changes 32 | - [ ] Any dependent changes have been merged and published in downstream modules 33 | -------------------------------------------------------------------------------- /.github/workflows/code_review.yml: -------------------------------------------------------------------------------- 1 | name: Fix code styles 2 | on: [pull_request] 3 | jobs: 4 | build: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v2 8 | 9 | - name: PHP Code Style 10 | uses: ale94lko/php-cs-fixer-action@v1.0.1 11 | with: 12 | php-cs-fixer-version: v3.9.4 13 | rules-version: v1.0.1 14 | use-full-rules: false -------------------------------------------------------------------------------- /.github/workflows/health_score.yml: -------------------------------------------------------------------------------- 1 | name: Repo Health Score Badge 2 | on: 3 | schedule: # execute every day at 02:00 4 | - cron: "0 2 * * *" 5 | workflow_dispatch: 6 | jobs: 7 | build: 8 | name: Job to deploy badge 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v2 12 | with: 13 | repository: ale94lko/repo-health-score 14 | 15 | - name: Get Repo Health Score Badge 16 | uses: ale94lko/repo-health-score@main 17 | 18 | - name: Deploy badge 19 | uses: crazy-max/ghaction-github-pages@v3 20 | with: 21 | target_branch: output 22 | build_dir: dist 23 | env: 24 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | CHANGELOG for PHP CS Fixer Action 2 | ========================== 3 | 4 | This file contains changelogs for stable releases only. 5 | 6 | Changelog for v1.0.1 7 | -------------------- 8 | 9 | * feature: Add a template for bug reporting issues for better understanding of the error. [#8](https://github.com/ale94lko/php-cs-fixer-action/issues/8) 10 | * feature: Update documentation 11 | 12 | Changelog for v1.0.0 13 | -------------------- 14 | 15 | * First stable release. -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Fidel Alejandro Fernández Arias 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |