Skip to content

Commit

Permalink
Автоматизация системы: labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalFaceLesS committed Apr 23, 2024
1 parent 5ad0e4b commit c541e73
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 39 deletions.
84 changes: 47 additions & 37 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,77 @@
Admin:
- any-glob-to-any-file:
- "code/modules/admin/**"

# Any file within the config subfolder
Config:
# Any changes
🔵 Требуется проверка:
- changed-files:
- any-glob-to-any-file:
- "config/**"
- any-glob-to-any-file:
- "**"

Dependencies:
- changed-files:
- any-glob-to-any-file:
- "**/package.json"
- "**/package-lock.json"
- "**/yarn.lock"

# When the .DME is changed
DME Edit:
# Changes to a .dmm or anything in the _map subfolder
🗺 Мапинг:
- changed-files:
- any-glob-to-any-file:
- "./*.dme"
- "**/*.dme"

- "**/*.dmm"
- "_maps/**"
# Any .dmi changes
Sprites:
🎨 Спрайты 🎨:
- changed-files:
- any-glob-to-any-file:
- "**/*.dmi"

# Changes to a .dm or anything in the code subfolder
Code Change:
# Any changes if not in modulare folder
🪓 НЕ МОДУЛЬНО 🪓:
- changed-files:
- any-glob-to-any-file:
- "**/*.dm"
- "_maps/map_files/**"
- "_maps/shuttles/**"
- "code/**"
- "icons/**"
- "sound/**"

# Changes to a .dmm or anything in the _map subfolder
Map Change:
- changed-files:
- any-glob-to-any-file:
- "**/*.dmm"
- "_maps/**"

# Any changes to .ogg files are marked as sound
Sound:
# Any sounds changes
🔊 Звуки 🔊:
- changed-files:
- any-glob-to-any-file:
- "**/*.ogg"
- '**/*.aif'
- '**/*.aiff'
- '**/*.it'
- '**/*.mid'
- '**/*.midi'
- '**/*.mod'
- '**/*.mp3'
- '**/*.ogg'
- '**/*.oxm'
- '**/*.raw'
- '**/*.s3m'
- '**/*.wma'
- '**/*.wav'
- '**/*.xm'

# Changes to the SQL subfolder
SQL:
📚 SQL 📚:
- changed-files:
- any-glob-to-any-file:
- "SQL/**"

# Changes to the tgui subfolder
tgui:
💬 TGUI:
- changed-files:
- any-glob-to-any-file:
- "tgui/**"

# Changes to the config subfolder
🔮 Конфиги 🔮:
- changed-files:
- any-glob-to-any-file:
- 'config/**/*'

# Changes to a .dm or anything in the code subfolder
🧱 Код 🧱:
- changed-files:
- any-glob-to-any-file:
- "**/*.dm"

# Changes to the .Github subfolder
Github:
🏭 Github 🏭:
- changed-files:
- any-glob-to-any-file:
- ".github/**"
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PR Labeler
on:
push:
branches:
- master
- beta-dev
pull_request_target:

jobs:
Expand All @@ -15,7 +15,7 @@ jobs:
with:
dirtyLabel: "Merge Conflict"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
commentOnDirty: "Pull Request содержит конфликты. Устраните их, чтобы мы смогли оценить и принять запрос."
- name: Apply labels based on changed files
if: github.event_name != 'push'
uses: actions/labeler@v5
Expand Down

0 comments on commit c541e73

Please sign in to comment.