Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
NaoUnderscore committed Jul 20, 2024
2 parents 43260b5 + 3e64722 commit 8227e5b
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 119 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/auto_assigner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Auto Assigner

on:
pull_request:
types:
- opened

jobs:
auto-assign:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Assign Author
uses: technote-space/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip
EXILED_REFERENCES_URL: https://cdn.exiled.to/Dev.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/References
EXILED_DLL_ARCHIVER_URL: https://github.com/Exiled-Team/EXILED-DLL-Archiver/releases/latest/download/EXILED-DLL-Archiver.exe

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

env:
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Master.zip
EXILED_REFERENCES_URL: https://cdn.exiled.to/Dev.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/References

jobs:
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/halloween.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

env:
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Master.zip
EXILED_REFERENCES_URL: https://cdn.exiled.to/Dev.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/References

jobs:
Expand Down
61 changes: 1 addition & 60 deletions .github/workflows/pull_request_opened.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Pull Request Opened

on:
pull_request:
pull_request_target:
types:
- opened
- labeled
- unlabeled
- edited
workflow_dispatch:

jobs:
Expand All @@ -19,61 +18,3 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml
sync-labels: true

update-pr-title:
runs-on: ubuntu-latest
needs: set-labels
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Get PR Info
id: get_pr
uses: octokit/[email protected]
with:
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Labels
id: extract_labels
run: echo "::set-output name=labels::${{ toJSON(github.event.pull_request.labels.*.name) }}"

- name: Update PR Title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_TITLE=$(jq -r '.title' <<< "${{ steps.get_pr.outputs.data }}")
PR_LABELS="${{ steps.extract_labels.outputs.labels }}"
PREFIX=""
if [[ "$PR_LABELS" == *"Documentation"* ]]; then
PREFIX="[Docs]"
elif [[ "$PR_LABELS" == *"NuGet"* ]]; then
PREFIX="[NuGet]"
elif [[ "$PR_LABELS" == *"Scripts"* ]]; then
PREFIX="[Scripts]"
elif [[ "$PR_LABELS" == *"regarding-events"* ]]; then
PREFIX="[Events]"
elif [[ "$PR_LABELS" == *"regarding-api"* ]]; then
PREFIX="[API]"
elif [[ "$PR_LABELS" == *"regarding-transpiler"* ]]; then
PREFIX="[Transpiler]"
elif [[ "$PR_LABELS" == *"CustomModules"* ]]; then
PREFIX="[CustomModules]"
elif [[ "$PR_LABELS" == *"Installer"* ]]; then
PREFIX="[Installer]"
elif [[ "$PR_LABELS" == *"GitHub_Actions"* ]]; then
PREFIX="[GitHub]"
fi
NEW_TITLE="$PREFIX $PR_TITLE"
if [[ "$NEW_TITLE" != "$PR_TITLE" ]]; then
curl -X PATCH \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} \
-d "{\"title\":\"$NEW_TITLE\"}"
fi
2 changes: 1 addition & 1 deletion .github/workflows/push_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

env:
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Master.zip
EXILED_REFERENCES_URL: https://cdn.exiled.to/Dev.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/References

jobs:
Expand Down
2 changes: 1 addition & 1 deletion EXILED.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<RepositoryType>Git</RepositoryType>
<RepositoryUrl>https://github.com/Exiled-Team/EXILED</RepositoryUrl>
<PackageProjectUrl>https://github.com/Exiled-Team/EXILED</PackageProjectUrl>
<PackageLicenseExpression>AGPL v3</PackageLicenseExpression>
<PackageLicenseExpression>CC-BY-SA 3.0</PackageLicenseExpression>

<DefineConstants Condition="$(PublicBeta) == 'true'">$(DefineConstants);PUBLIC_BETA</DefineConstants>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img src="https://img.shields.io/github/downloads/Exiled-Team/EXILED/total?style=for-the-badge&logo=github" alt="Downloads">
![Github Commits](https://img.shields.io/github/commit-activity/w/Exiled-Team/EXILED/apis-rework?style=for-the-badge&logo=git)
<a href="https://discord.gg/exiledreboot">
<img src="https://img.shields.io/discord/656673194693885975?style=for-the-badge&logo=discord" alt="Chat on Discord">
<img src="https://img.shields.io/discord/1261714360854646905?style=for-the-badge&logo=discord" alt="Chat on Discord">
</a>

</div>
Expand Down

0 comments on commit 8227e5b

Please sign in to comment.