Skip to content

chore: use organization workflows for improve actions #159

chore: use organization workflows for improve actions

chore: use organization workflows for improve actions #159

name: Smart Commenting
on:
pull_request:
branches:
- develop
paths:
- '**.php'
- 'composer.*'
- '.github/workflows/smart-commenting.yml'
push:
branches:
- develop
paths:
- '**.php'
- 'composer.*'
- '.github/workflows/smart-commenting.yml'
jobs:
add-comment-for-GPG-Signing:

Check failure on line 20 in .github/workflows/smart-commenting.yml

View workflow run for this annotation

GitHub Actions / Smart Commenting

Invalid workflow file

The workflow is not valid. .github/workflows/smart-commenting.yml (Line: 20, Col: 3): Error calling workflow 'codeigniter4/.github/.github/workflows/label-signing.yml@main'. The workflow is requesting 'contents: read', but is only allowed 'contents: none'.
permissions:
issues: write
pull-requests: write
uses: codeigniter4/.github/.github/workflows/label-signing.yml@main
add-comment-for-conflict:
uses: codeigniter4/.github/.github/workflows/label-add-conflict-all-pr.yml@main
add-comment-for-tests:
if: github.event.label.name == 'tests needed'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Add comment for PHPUnit test
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
**Unit Testing:**
Unit testing is expected for all CodeIgniter components. We use PHPUnit, and run unit tests using GitHub Actions for each PR submitted or changed.
**So please write a unit test or update the existing tests.**
See [unit testing][1] for more info.
[1]: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#unit-testing