Merge branch 'main' of https://github.com/vaporvee/discord-sdk-godot
This commit is contained in:
65
.github/workflows/auto_wontfix.yml
vendored
65
.github/workflows/auto_wontfix.yml
vendored
@@ -1,65 +0,0 @@
|
||||
name: Auto Wontfix Issues
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited]
|
||||
|
||||
jobs:
|
||||
auto_wontfix:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check for specific word in the issue
|
||||
uses: actions/github-script@v4
|
||||
with:
|
||||
github-token: ${{ secrets.WONTFIX_TOKEN }}
|
||||
script: |
|
||||
const wordToCheck = 'mac';
|
||||
const issue = context.payload.issue;
|
||||
|
||||
if (issue.body && issue.body.toLowerCase().includes(wordToCheck)) {
|
||||
const repo = context.repo.repo;
|
||||
const owner = context.repo.owner;
|
||||
const number = issue.number;
|
||||
const issueComment = "macOS is not supported, because loading libraries in Godot from third-party sources requires a paid developer certificate from Apple. You are welcome to compile and sign the library yourself.";
|
||||
|
||||
// Mark the issue as "wontfix"
|
||||
await octokit.issues.update({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: number,
|
||||
state: 'closed',
|
||||
labels: ['wontfix']
|
||||
});
|
||||
|
||||
// Post a comment on the issue
|
||||
await octokit.issues.createComment({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: number,
|
||||
body: issueComment
|
||||
});
|
||||
}
|
||||
if (issue.title && issue.title.toLowerCase().includes(wordToCheck)) {
|
||||
const repo = context.repo.repo;
|
||||
const owner = context.repo.owner;
|
||||
const number = issue.number;
|
||||
const issueComment = "macOS is not supported, because loading libraries in Godot from third-party sources requires a paid developer certificate from Apple. You are welcome to compile and sign the library yourself.";
|
||||
|
||||
// Mark the issue as "wontfix"
|
||||
await octokit.issues.update({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: number,
|
||||
state: 'closed',
|
||||
labels: ['wontfix']
|
||||
});
|
||||
|
||||
// Post a comment on the issue
|
||||
await octokit.issues.createComment({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: number,
|
||||
body: issueComment
|
||||
});
|
||||
}
|
@@ -4,7 +4,7 @@
|
||||
**Discord RPC Plugin for GDScript with an easy-to-use code pattern in Godot Engine 4.1+, with optional Editor Rich Presence! (Compatible with Linux, Windows, & MacOS)**<br><br>
|
||||
<br />
|
||||
### [My Discord Server](https://discord.gg/EBdaTefpWy)
|
||||
# [Quick start :rocket: (click here)](https://vaporvee.com/docs/discord-rpc-godot#quick-start)
|
||||
# [Quick start :rocket: (click here)](https://docs.vaporvee.com/discord-rpc-godot#quick-start)
|
||||
<br />
|
||||
|
||||
**A small donation with the sponsor button would be nice if you sell your project with this addon but is of course not mandatory!**
|
||||
|
Reference in New Issue
Block a user