name: Pull Request Labels on: pull_request: types: - opened jobs: pr-labeler: name: Pull Request Labels runs-on: ubuntu-latest if: github.repository == 'Slimefun/Slimefun4' steps: - uses: baked-libs/pull-request-labels@v1.1 id: labeller name: Apply labels based on branch with: token: "${{ secrets.GITHUB_TOKEN }}" renovate: '๐จ Dependency Update' crowdin: '๐ Translations Update' feature: '๐ Feature' fix: 'โจ Fix' chore: '๐งน Chores' performance: '๐ก Performance Optimization' api: '๐ง API' compatibility: '๐ค Compatibility' - uses: thollander/actions-comment-pull-request@1.0.2 name: Leave a comment about the applied label if: ${{ steps.labeller.outputs.applied != 0 }} with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} message: | Your Pull Request was automatically labelled as: "${{ steps.labeller.outputs.applied }}" Thank you for contributing to this project! โค๏ธ - uses: thollander/actions-comment-pull-request@1.0.2 name: Leave a comment about our branch naming convention if: ${{ steps.labeller.outputs.applied == 0 }} with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} message: | **Pro Tip!** You can help us label your Pull Requests by using the following branch naming convention next time you create a pull request. โค๏ธ Branch naming convention | Label ------------------------ | ------ `feature/**` | ๐ Feature `fix/**` | โจ Fix `chore/**` | ๐งน Chores `api/**` | ๐ง API `performance/**` | ๐ก Performance Optimization `compatibility/**` | ๐ค Compatibility