Skip to content

Commit

Permalink
Merge branch 'master' into ALTer-Titles
Browse files Browse the repository at this point in the history
  • Loading branch information
BR54FF authored Mar 21, 2024
2 parents 58064e4 + e375c4e commit 8261393
Show file tree
Hide file tree
Showing 1,320 changed files with 42,671 additions and 61,406 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Merger hooks, run tools/hooks/install.bat or install.sh to set up
## Merge hooks, run tools/hooks/install.bat or install.sh to set up
*.dmm text eol=lf merge=dmm
*.dmi binary merge=dmi
## TGUI bundle merge drivers
*.bundle.* binary merge=tgui-merge-bundle
*.chunk.* binary merge=tgui-merge-bundle
19 changes: 10 additions & 9 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,15 @@ Look for code examples on how to properly use it.

#### Bitflags

* We prefer using bitshift operators instead of directly typing out the value. I.E:
* Bitshift operators are mandatory, opposed to directly typing out the value. I.E:

```dm
#define MACRO_ONE (1<<0)
#define MACRO_TWO (1<<1)
#define MACRO_THREE (1<<2)
```

Is preferable to:
Is accepted, whereas the following is not:

```dm
#define MACRO_ONE 1
Expand Down Expand Up @@ -788,7 +788,7 @@ Each role inherits the lower role's responsibilities (IE: Headcoders also have c
`Headcoders` are the overarching "administrators" of the repository. People included in this role are:

* [farie82](https://github.com/farie82)
* [Charliminator](https://github.com/hal9000PR)
* [S34N](https://github.com/S34NW)
* [SteelSlayer](https://github.com/SteelSlayer)

---
Expand All @@ -797,21 +797,22 @@ Each role inherits the lower role's responsibilities (IE: Headcoders also have c


* [AffectedArc07](https://github.com/AffectedArc07)
* [Charliminator](https://github.com/hal9000PR)
* [Contrabang](https://github.com/Contrabang)
* [lewcc](https://github.com/lewcc)
* [S34N](https://github.com/S34NW)

---

`Review Team` members are people who are denoted as having reviews which can affect mergeability status. People included in this role are:

* [lewcc](https://github.com/lewcc)
* [S34N](https://github.com/S34NW)
* [Sirryan2002](https://github.com/Sirryan2002)
* [Contrabang](https://github.com/Contrabang)
* [Burzah](https://github.com/Burzah)
* [Charliminator](https://github.com/hal9000PR)
* [Contrabang](https://github.com/Contrabang)
* [DGamerL](https://github.com/DGamerL)
* [Warriorstar](https://github.com/warriorstar-orion)
* [Henri215](https://github.com/Henri215)
* [lewcc](https://github.com/lewcc)
* [Sirryan2002](https://github.com/Sirryan2002)
* [Warriorstar](https://github.com/warriorstar-orion)

---

Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,55 @@ on:
pull_request:
branches:
- master
merge_group:

jobs:
run_linters:
name: Run Linters
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Setup Cache
uses: actions/cache@v4
with:
path: $HOME/SpacemanDMM
key: ${{ runner.os }}-spacemandmm

- name: Install Tools
run: |
bash tools/ci/install_build_deps.sh
bash tools/ci/install_dreamchecker.sh
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ./tgui/yarn.lock

- run: pip install -r tools/requirements.txt
- name: Run Linters
run: |
tools/ci/check_json.sh
tools/ci/build_tgui.sh
tgui/bin/tgui --ci
python tools/ci/check_grep2.py
python tools/ci/check_line_endings.py
python tools/ci/check_file_names.py
python tools/ci/unticked_files.py ${GITHUB_WORKSPACE}
python tools/ci/illegal_dme_files.py ${GITHUB_WORKSPACE}
python tools/ci/define_sanity.py
python -m tools.ci.check_icon_conflicts
python -m tools.ci.check_icon_dupenames
python -m tools.maplint.source --github
DREAMCHECKER_EXIT_CODE=0
~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1 || DREAMCHECKER_EXIT_CODE=$?
echo 'DREAMCHECKER_ANNOTATED=1' >> "$GITHUB_ENV"
exit $DREAMCHECKER_EXIT_CODE
- name: Annotate Lints
uses: yogstation13/DreamAnnotate@v2
if: ${{ always() && env.DREAMCHECKER_ANNOTATED == '1' }}
with:
outputFile: output-annotations.txt
- name: Run DreamChecker
shell: bash
run: ~/dreamchecker 2>&1 | bash tools/ci/annotate_dm.sh

odlint:
name: Lint with OpenDream
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/merge_upstream_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Merge Upstream Master
on:
issue_comment:
types: [created]

jobs:
merge-upstream:
if: |
github.event.issue.pull_request &&
(github.event.comment.body == '!merge_upstream') &&
((github.event.sender.id == github.event.issue.user.id) ||
(github.event.comment.author_association == 'COLLABORATOR') ||
(github.event.comment.author_association == 'MEMBER') ||
(github.event.comment.author_association == 'OWNER'))
runs-on: ubuntu-latest
steps:
- name: PR Data
run: |
curl -H "Authorization: token ${{ github.token }}" ${{ github.event.issue.pull_request.url }} > pr.json
echo "PR_REPO=`jq -r '.head.repo.full_name' < pr.json`" >> $GITHUB_ENV
echo "PR_BRANCH=`jq -r '.head.ref' < pr.json`" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
repository: ${{ env.PR_REPO }}
ref: ${{ env.PR_BRANCH }}
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ./tgui/yarn.lock

- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'

- name: Perform Merge
run: |
chmod +x tools/bootstrap/python
bash tools/hooks/install.sh
bash tgui/bin/tgui --install-git-hooks
chmod +x tools/hooks/*.merge tgui/bin/tgui
git config user.name github-actions
git config user.email [email protected]
git remote add upstream "https://github.com/${{ github.repository }}.git"
git fetch upstream master
git merge upstream/master && git push origin
- name: Notify Failure
if: failure()
run: |
curl -s -H "Authorization: token ${{ github.token }}" \
-X POST -d '{"body": "Merging upstream failed:\nhttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*.dmb
*.lk

# ignore tmp files generated by icon save operations
/tmp/*

#ignore any files in config/, except those in subdirectories.
/config/*
!config/**/*/
Expand Down
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"gitlens.advanced.blame.customArguments": [
"--ignore-revs-file", "${workspaceRoot}/.git-blame-ignore-revs"
"--ignore-revs-file",
"${workspaceRoot}/.git-blame-ignore-revs"
],
// ESLint settings:
"eslint.workingDirectories": [
"./tgui"
],
"eslint.workingDirectories": ["tgui/"],
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": "tgui/.yarn/sdks",
"prettier.configPath": "tgui/.prettierrc.yml",
"prettier.prettierPath": "tgui/.yarn/sdks/prettier/index.cjs",
"typescript.tsdk": "tgui/.yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
Expand Down
12 changes: 6 additions & 6 deletions _build_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# This file has all the information on what versions of libraries are thrown into the code
# For dreamchecker
export SPACEMANDMM_TAG=suite-1.7.1
export SPACEMANDMM_TAG=suite-1.8
# For TGUI
export NODE_VERSION=20
# Stable Byond Major
export STABLE_BYOND_MAJOR=515
# Stable Byond Minor
export STABLE_BYOND_MINOR=1630
# Beta Byond Major
export BETA_BYOND_MAJOR=515
# Beta Byond Minor
export BETA_BYOND_MINOR=1630
export STABLE_BYOND_MINOR=1633
# Beta Byond Major - Uncomment and update if beta cycle active
#export BETA_BYOND_MAJOR=515
# Beta Byond Minor - Uncomment and update if beta cycle active
#export BETA_BYOND_MINOR=1633
# Python version for mapmerge and other tools
export PYTHON_VERSION=3.11.6
# RUSTG version
Expand Down
Loading

0 comments on commit 8261393

Please sign in to comment.