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:
|
2021-02-24 15:15:30 +00:00
|
|
|
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'
|
2021-01-25 17:44:21 +00:00
|
|
|
|
2022-06-09 17:46:54 +00:00
|
|
|
- uses: thollander/actions-comment-pull-request@v1.4.1
|
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:
|
2021-02-24 15:15:30 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-01-25 17:44:21 +00:00
|
|
|
message: |
|
2021-01-28 22:17:56 +00:00
|
|
|
Your Pull Request was automatically labelled as: "${{ steps.labeller.outputs.applied }}"
|
2021-01-25 17:44:21 +00:00
|
|
|
Thank you for contributing to this project! ❤️
|
|
|
|
|
2022-06-09 17:46:54 +00:00
|
|
|
- uses: thollander/actions-comment-pull-request@v1.4.1
|
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:
|
2021-02-24 15:15:30 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-01-25 17:30:47 +00:00
|
|
|
message: |
|
2021-01-25 17:44:21 +00:00
|
|
|
**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. ❤️
|
2021-01-25 17:44:21 +00:00
|
|
|
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
|
2021-01-25 17:44:21 +00:00
|
|
|
<hr>
|
|
|
|
If your changes do not fall into any of these categories, don't worry.
|
|
|
|
You can just ignore this message in that case! 👀
|