forked from Rxup/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into upstreams
- Loading branch information
Showing
5,044 changed files
with
1,473,473 additions
and
31,884 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Map Diff Checker | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'Resources/Maps/**/*.yml' | ||
|
||
jobs: | ||
check-map-diff: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Identify changed and deleted map files | ||
id: map_diff | ||
run: | | ||
git fetch origin | ||
git diff --name-status origin/${{ github.base_ref }} -- Resources/Maps/**/*.yml > map_changes.txt | ||
if grep -qE '^[AMDR]\s+Resources/Maps/.*\.yml' map_changes.txt; then | ||
echo "maps_changed=true" >> $GITHUB_ENV | ||
else | ||
echo "maps_changed=false" >> $GITHUB_ENV | ||
fi | ||
- name: Display map changes | ||
if: env.maps_changed == 'true' | ||
run: | | ||
echo "### Измененные карты:" > map_changes_summary.txt | ||
while IFS=$'\t' read -r status file_path; do | ||
map_file=$(basename "$file_path") | ||
author=$(git log -1 --pretty=format:'%an' "$file_path") | ||
case "$status" in | ||
A) change_type="Добавлена карта" ;; | ||
M) change_type="Изменена карта" ;; | ||
D) change_type="Удалена карта" ;; | ||
R*) change_type="Переименована карта" ;; | ||
esac | ||
echo "- **$map_file** — $change_type, редактировал @${author}" >> map_changes_summary.txt | ||
done < <(grep -E '^[AMDR]\s+Resources/Maps/.*\.yml' map_changes.txt) | ||
- name: Create PR comment | ||
if: env.maps_changed == 'true' | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
path: map_changes_summary.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.