Initial commit

This commit is contained in:
2026-03-15 14:54:49 +03:00
commit 64f8029c06
4027 changed files with 254888 additions and 0 deletions

View File

@@ -0,0 +1,87 @@
#
# Check the docs on how to write GitHub forms:
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates
#
name: "🪳 Bug Report"
description: Report a bug in DarkRP.
title: "<Title>"
body:
- type: markdown
attributes:
value: |
This place is only intended for bug reports.
If you need help, join the **[DarkRP Discord](https://darkrp.page.link/discord)**
- type: textarea
id: problem
validations:
required: true
attributes:
description: |
Describe the issue as accurately as possible.
placeholder: |
I'm unable to do x when ..
label: Problem
- type: textarea
id: reproduce
validations:
required: false
attributes:
description: |
Describe how we can reproduce the issue.
placeholder: |
1. I first do x
2. Then I do y and see z
label: Reproduction
- type: markdown
attributes:
value: |
It's important for us to be able to reproduce your problem
so we fix it more easily and be sure it's solved.
- type: textarea
id: errors
validations:
required: false
attributes:
description: |
Provide any errors. Please make sure to look at both the server
console as well as the console when you join the server.
placeholder: |
attempt to index 'foo' (a nil value)
some_file.lua: 123
label: Errors
- type: markdown
attributes:
value: |
Please always check the startup log of the server for
errors, as those can cause more errors down the line.
- type: textarea
id: extra
attributes:
description: |
Any additional information that you can provide.
label: Additional Info

View File

@@ -0,0 +1,9 @@
blank_issues_enabled: true
contact_links:
- about: Sadly, DarkRP is in maintenance only mode, meaning feature requests are generally not accepted. The best way to get the feature might be to create an addon.
name: 🆕 Feature request
url: https://darkrp.page.link/discord
- about: I need help with DarkRP
name: 🚨 Support
url: https://darkrp.page.link/discord

View File

@@ -0,0 +1,119 @@
#!/usr/bin/env bash
#
# Prints a list of errors for any dependencies that have been edited.
# Dependencies should be edited in their respective repositories
#
echo 'Checking for any dependency changes.'
set -o errexit # Exit for any error
set -o nounset # Error when referencing unset vars
commit=$(
git rev-list \
--first-parent origin/master \
--max-count=1
)
files=$(
git diff \
--name-only \
"$commit"
)
# Template for the GitHub summary
template="
> [!WARNING]
> Files from **[{project}]({repository})** have been modified!
> These changes originally come from [{project}]({repository}), but are synchronized to DarkRP.
> These files should be edited in the original repositories instead.
>
{files}
>
"
# Trim leading space for Markdown compatibility
template="$( echo "$template" | sed 's/^[[:space:]]*//' )"
failed=false
function check {
local name="$1"
local path="^$2"
local repo="$3"
# Check if any matching files were modified
local matched=$(
echo "$files" |
grep --perl-regexp "$path"
)
# Ignore if nothing matched
if [ -z "$matched" ] ; then
return
fi
# Append info to GitHub's summary
local info="$template"
matched="$(printf -- '> `%s` \n' "$matched")"
info=${info//\{repository\}/$repo}
info=${info//\{project\}/$name}
info=${info//\{files\}/$matched}
echo "$info" >> "$GITHUB_STEP_SUMMARY"
failed=true
}
check "Falco's Prop Protection" \
'gamemode/modules/fpp/pp/' \
'https://github.com/fptje/falcos-Prop-protection'
check "FN Library" \
'gamemode/libraries/fn.lua' \
'https://github.com/fptje/GModFunctional'
check "MySQLite Library" \
'gamemode/libraries/mysqlite/mysqlite.lua' \
'https://github.com/fptje/MySQLite'
check "Simplerr Library" \
'gamemode/libraries/simplerr.lua' \
'https://github.com/fptje/simplerr'
check "CAMI Library" \
'gamemode/libraries/sh_cami.lua' \
'https://github.com/glua/CAMI'
check "FSpectate" \
'gamemode/modules/fspectate/' \
'https://github.com/fptje/FSpectate'
if [[ "$failed" = true ]] ; then
echo 'Some dependencies have been modified!'
exit 1
fi
echo 'No dependencies have been modified.'
exit 0

View File

@@ -0,0 +1,20 @@
name: Check Modified Subtree
on:
workflow_dispatch:
pull_request:
branches: [master]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch complete history
clean: false
- name: Check For Differences
run: ./.github/scripts/check-modified-subtree.sh

View File

@@ -0,0 +1,11 @@
name: run-glualint
on:
push:
branches:
- master
pull_request:
jobs:
Lint:
uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master
with:
config: "glualint.json"