-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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' of https://github.com/CleverRaven/Cataclysm-DDA
- Loading branch information
Showing
1,869 changed files
with
799,043 additions
and
553,827 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
"[C++]": | ||
- "**/*.cpp" | ||
- "**/*.h" | ||
|
||
"[JSON]": | ||
- "**/*.json" | ||
|
||
"[Python]": | ||
- "**/*.py" | ||
|
||
"<Documentation>": | ||
- "**/*.md" | ||
- doc/**/* | ||
|
||
"Code: Tooling": | ||
- tools/**/* | ||
|
||
"Code: Tests": | ||
- tests/**/* | ||
|
||
"NPC / Factions": | ||
- data/json/npcs/**/* | ||
|
||
"Bionics": | ||
- "data/json/bionics.json" | ||
|
||
"Player Faction Base / Camp": | ||
- "src/basecamp.(cpp|h)" | ||
- data/json/mapgen/basecamps/**/* | ||
|
||
"Items: Ammo / Guns": | ||
- data/json/items/gun/**/* | ||
- data/json/items/ammo/**/* | ||
|
||
"SDL: Tiles / Sound": | ||
- gfx/**/* | ||
- sound/**/* | ||
|
||
"Translation": | ||
- lang/**/* | ||
|
||
"Mods: Aftershock": | ||
- data/mods/Aftershock/**/* | ||
- data/mods/aftershock_exoplanet/**/* | ||
|
||
"Mods: Dark Days of the Dead": | ||
- data/mods/classic_zombies/**/* | ||
|
||
"Mods: Dark Skies": | ||
- data/mods/Dark-Skies-Above/**/* | ||
|
||
"Mods: Dinoclysm": | ||
- data/mods/DinoMod/**/* | ||
|
||
"Mods: Generic Guns": | ||
- data/mods/Generic_Guns/**/* | ||
|
||
"Mods: MMA": | ||
- data/mods/MMA/**/* | ||
|
||
"Mods: Magiclysm": | ||
- data/mods/Magiclysm/**/* | ||
|
||
"Mods: No Hope": | ||
- data/mods/No_Hope/**/* |
12 changes: 12 additions & 0 deletions
12
.github/workflows/assign_mission_target_needs_om_special.yml
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,12 @@ | ||
name: Detect missions that are missing .start.assign_mission_target.om_special | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
run-the-tool: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- run: ./tools/json_tools/assign_mission_target_needs_om_special.bash 2>&1 |
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 |
---|---|---|
|
@@ -41,5 +41,5 @@ jobs: | |
- name: Display Corrections | ||
if: failure() | ||
run: | | ||
make astyle | ||
make astyle-fast | ||
git diff |
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,61 @@ | ||
name: Detect translation file changes | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- lang/po/*.po | ||
- lang/po/*.pot | ||
|
||
|
||
jobs: | ||
detect-translation-file-changes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Detect translation file changes" | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const skip_phrase = 'Translation file changes are intended'; | ||
if (context.payload.pull_request.body.includes(skip_phrase)) { | ||
console.log('PR body contains skip phrase. Exiting.'); | ||
return; | ||
} | ||
core.setFailed('Translation file changes detected, but a skip phrase is not found in the PR body.') | ||
console.log( | ||
'Fetching comments of pull request %d of repository %s/%s.', | ||
context.issue.number, context.repo.owner, context.repo.repo | ||
); | ||
const comments = await github.paginate( | ||
github.rest.issues.listComments, | ||
{ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number | ||
} | ||
); | ||
const body = 'It appears you modified a `.po` or `.pot` file. ' | ||
+ 'These translation files are automatically generated, ' | ||
+ 'pushed to, and pulled from Transifex, and should not be ' | ||
+ 'modified otherwise. If these changes are intended, please ' | ||
+ 'add `' + skip_phrase + '` to the ' | ||
+ 'PR body.'; | ||
const bot_comments = comments.filter( | ||
comment => comment.user.type === 'Bot' | ||
&& comment.user.login === 'github-actions[bot]' | ||
&& comment.body === body | ||
); | ||
if (bot_comments.length > 0) { | ||
console.log('Comment already exists. Exiting.'); | ||
return; | ||
} | ||
console.log('Posting comment.'); | ||
await github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: body | ||
}); |
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,13 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v3 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
# I don't want no bot removing stuff for me | ||
sync-labels: "" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
- name: "Pull translations" | ||
env: | ||
TX_TOKEN: ${{ secrets.TX_TOKEN }} | ||
run: tx pull | ||
run: tx pull --force | ||
- name: Create Pull Request | ||
uses: peter-evans/[email protected] | ||
with: | ||
|
@@ -34,5 +34,5 @@ jobs: | |
delete-branch: true | ||
base: master | ||
title: Routine i18n updates on ${{ steps.current-date.outputs.formattedTime }} | ||
body: "#### Summary\nNone" | ||
body: "#### Summary\nNone\n\n#### Additional context\n`Translation file changes are intended`" | ||
labels: Translation |
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.