1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00
Slimefun4/.github/workflows/pr-labels.yml

58 lines
2.1 KiB
YAML
Raw Normal View History

2021-01-25 11:39:46 +00:00
name: Pull Request Labels
2020-12-13 17:25:25 +00:00
on:
pull_request:
2021-01-25 17:34:18 +00:00
types:
- opened
2020-12-13 17:25:25 +00:00
jobs:
pr-labeler:
2021-01-25 11:39:46 +00:00
name: Pull Request Labels
2020-12-13 17:25:25 +00:00
runs-on: ubuntu-latest
2021-05-05 16:26:27 +00:00
if: github.repository == 'Slimefun/Slimefun4'
2021-01-25 11:39:46 +00:00
2020-12-13 17:25:25 +00:00
steps:
2021-07-04 11:18:47 +00:00
- uses: baked-libs/pull-request-labels@v1.1
2021-01-25 17:30:47 +00:00
id: labeller
2021-01-25 11:39:46 +00:00
name: Apply labels based on branch
2020-12-13 17:25:25 +00:00
with:
token: "${{ secrets.GITHUB_TOKEN }}"
2021-02-03 23:50:31 +00:00
renovate: '🚨 Dependency Update'
2021-05-05 16:26:27 +00:00
crowdin: '📄 Translations Update'
2021-01-25 11:39:46 +00:00
feature: '🎈 Feature'
fix: '✨ Fix'
chore: '🧹 Chores'
performance: '💡 Performance Optimization'
2021-01-26 08:38:15 +00:00
api: '🔧 API'
2021-02-08 18:53:01 +00:00
compatibility: '🤝 Compatibility'
- uses: thollander/actions-comment-pull-request@v1.0.4
2021-02-03 23:51:19 +00:00
name: Leave a comment about the applied label
2021-01-25 17:30:47 +00:00
if: ${{ steps.labeller.outputs.applied != 0 }}
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
2021-01-28 22:17:56 +00:00
Your Pull Request was automatically labelled as: "${{ steps.labeller.outputs.applied }}"
Thank you for contributing to this project! ❤️
- uses: thollander/actions-comment-pull-request@v1.0.4
2021-02-03 23:51:19 +00:00
name: Leave a comment about our branch naming convention
2021-01-25 17:30:47 +00:00
if: ${{ steps.labeller.outputs.applied == 0 }}
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2021-01-25 17:30:47 +00:00
message: |
**Pro Tip!**
2021-01-25 17:47:15 +00:00
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
2021-01-25 17:44:52 +00:00
------------------------ | ------
`feature/**` | 🎈 Feature
`fix/**` | ✨ Fix
2021-01-25 17:47:15 +00:00
`chore/**` | 🧹 Chores
2021-01-26 08:38:15 +00:00
`api/**` | 🔧 API
2021-01-25 17:44:52 +00:00
`performance/**` | 💡 Performance Optimization
2021-02-08 18:53:01 +00:00
`compatibility/**` | 🤝 Compatibility
<hr>
If your changes do not fall into any of these categories, don't worry.
You can just ignore this message in that case! 👀