Skip to content

Commit 62ca002

Browse files
authored
Merge branch 'Acode-Foundation:main' into main
2 parents 1af67a5 + 1207f64 commit 62ca002

File tree

131 files changed

+11163
-5828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+11163
-5828
lines changed

.devcontainer/devcontainer.json

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/java
13
{
2-
"image": "mcr.microsoft.com/devcontainers/universal:2",
4+
"name": "Java",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye",
7+
38
"features": {
4-
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {}
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"installGradle": true,
11+
"installGroovy": false,
12+
"installMaven": false,
13+
"installAnt": false,
14+
"version": "21",
15+
"jdkDistro": "ms",
16+
"gradleVersion": "latest",
17+
"mavenVersion": "none"
18+
},
19+
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {
20+
"platform": "35",
21+
"build_tools": "35.0.0"
22+
},
23+
"ghcr.io/devcontainers/features/node:1": {
24+
"nodeGypDependencies": false,
25+
"installYarnUsingApt": false,
26+
"version": "lts",
27+
"pnpmVersion": "latest",
28+
"nvmVersion": "latest"
29+
}
530
}
6-
}
31+
32+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33+
// "forwardPorts": [],
34+
35+
// Use 'postCreateCommand' to run commands after the container is created.
36+
// "postCreateCommand": "java -version",
37+
38+
// Configure tool-specific properties.
39+
// "customizations": {},
40+
41+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
42+
// "remoteUser": "root"
43+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sh text eol=lf

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.github/CODEOWNERS @Acode-Foundation/acode
2+
3+
# workflows
4+
.github/workflows/nightly-build.yml @unschooledgamer
5+
.github/workflows/on-demand-preview-releases-PR.yml @unschooledgamer
6+
.github/workflows/community-release-notifier.yml @unschooledgamer

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
translations:
2+
- any:
3+
- changed-files:
4+
- any-glob-to-any-file: 'src/lang/*.json'
5+
6+
docs:
7+
- any:
8+
- changed-files:
9+
- any-glob-to-any-file: '**/*.md'
10+
11+
enhancement:
12+
- any:
13+
- head-branch: ['^feature', 'feature', '^feat', '^add']
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Add Pull Requests Labels
2+
on:
3+
pull_request_target:
4+
types: [opened, closed, ready_for_review]
5+
6+
jobs:
7+
add-labels:
8+
timeout-minutes: 5
9+
runs-on: ubuntu-latest
10+
11+
if: github.event.action == 'opened'
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
16+
steps:
17+
- uses: actions/labeler@v6

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,35 @@ jobs:
3333

3434
- name: Run Biome
3535
run: biome ci .
36+
37+
translation-check:
38+
name: Translation Check (On PR Only)
39+
timeout-minutes: 5
40+
runs-on: ubuntu-latest
41+
permissions:
42+
contents: read
43+
pull-requests: read
44+
if: github.event_name == 'pull_request'
45+
steps:
46+
- name: Checkout Repository
47+
uses: actions/checkout@v5
48+
- name: Use Node.js
49+
uses: actions/setup-node@v5
50+
with:
51+
cache: npm
52+
cache-dependency-path: '**/package-lock.json'
53+
54+
- name: Detect Changed Files
55+
uses: dorny/paths-filter@v3
56+
id: file-changes
57+
with:
58+
list-files: shell
59+
filters: |
60+
translation:
61+
- 'src/lang/*.json'
62+
token: ${{ secrets.GITHUB_TOKEN }}
63+
- name: Translation Files Check (if changed)
64+
if: steps.file-changes.outputs.translation == 'true'
65+
run: |
66+
npm ci --no-audit --no-fund
67+
npm run lang check

.github/workflows/close-inactive-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
2525
days-before-pr-stale: -1
2626
days-before-pr-close: -1
27-
exempt-issue-labels: "new plugin idea, todo"
27+
exempt-issue-labels: "new plugin idea, todo, enhancement, bug, Low priority, documentation"
2828
operations-per-run: 100
2929
repo-token: ${{ secrets.GITHUB_TOKEN }}
3030

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: community-release-notifier
2+
on:
3+
release:
4+
types: [ released ]
5+
workflow_call:
6+
inputs:
7+
tag_name:
8+
required: true
9+
description: "Release tag_name"
10+
type: 'string'
11+
url:
12+
required: true
13+
description: "release URL"
14+
type: 'string'
15+
body:
16+
required: true
17+
description: "Release Body"
18+
type: 'string'
19+
default: ''
20+
secrets:
21+
DISCORD_WEBHOOK_RELEASE_NOTES:
22+
description: 'Discord Webhook for Notifying Releases to Discord'
23+
required: true
24+
25+
jobs:
26+
discord-release:
27+
if: github.repository_owner == 'Acode-Foundation'
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Get Release Content
31+
id: get-release-content
32+
uses: 2428392/gh-truncate-string-action@b3ff790d21cf42af3ca7579146eedb93c8fb0757 # v1.4.1
33+
with:
34+
maxLength: 2000
35+
stringToTruncate: |
36+
📢 Acode [${{ github.event.release.tag_name || inputs.tag_name }}](<${{ github.event.release.url || inputs.url }}>) was just Released 🎉!
37+
38+
${{ github.event.release.body || inputs.body }}
39+
40+
- name: Discord Webhook Action (Publishing)
41+
uses: tsickert/discord-webhook@c840d45a03a323fbc3f7507ac7769dbd91bfb164 # v5.3.0
42+
with:
43+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_RELEASE_NOTES }}
44+
content: ${{ steps.get-release-content.outputs.string }}

0 commit comments

Comments
 (0)