Stalwart support portal
This commit is contained in:
4
.github/workflows/auto-close-issues.yml
vendored
4
.github/workflows/auto-close-issues.yml
vendored
@@ -33,9 +33,9 @@ jobs:
|
||||
const comment = [
|
||||
`Hi @${author}, thanks for taking the time to file this report.`,
|
||||
``,
|
||||
`This issue is being **automatically closed** because all bug reports in this repository must first be triaged in a [Discussion](https://github.com/stalwartlabs/stalwart/discussions/new?category=issue-triage). Once a maintainer has confirmed the report as a bug, an Issue will be created on your behalf. This process is described in the issue template and in [CONTRIBUTING](https://github.com/stalwartlabs/stalwart/blob/main/.github/ISSUE_TEMPLATE/config.yml), but it appears the instructions were ignored, most likely because this report was generated by an AI coding agent.`,
|
||||
`This issue is being **automatically closed** because all bug reports must first be triaged at our support portal: **[support.stalw.art](https://support.stalw.art)**. Please re-post this report there so that a maintainer can review it; once confirmed as a bug, an Issue will be created on your behalf.`,
|
||||
``,
|
||||
`Please be aware that **AI-generated bug reports that have not been verified by a human consume a significant amount of maintainer time**: they are frequently inaccurate, fabricate symptoms or code paths that do not exist, and pull attention away from genuine issues affecting real users. If you are using an agent to interact with this project, please review its output and reproduce the problem yourself before reporting it, and always start in [Discussions](https://github.com/stalwartlabs/stalwart/discussions/new?category=issue-triage) rather than filing an Issue directly.`,
|
||||
`You can sign in to support.stalw.art with your existing GitHub account, so no separate registration is required.`,
|
||||
``,
|
||||
`Thank you for understanding.`,
|
||||
].join('\n');
|
||||
|
||||
47
.github/workflows/auto-redirect-discussions.yml
vendored
Normal file
47
.github/workflows/auto-redirect-discussions.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Redirect new discussions to the support portal
|
||||
|
||||
on:
|
||||
discussion:
|
||||
types: [created]
|
||||
|
||||
permissions:
|
||||
discussions: write
|
||||
|
||||
jobs:
|
||||
redirect:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Post support portal redirect
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const discussion = context.payload.discussion;
|
||||
const author = (discussion.user && discussion.user.login) || '';
|
||||
|
||||
const body = [
|
||||
`Hi @${author}, thanks for posting!`,
|
||||
``,
|
||||
`Stalwart support has moved to **[support.stalw.art](https://support.stalw.art)**. The support portal is now the canonical place to ask questions, request help, and report issues for triage. Other community members may still reply here, but the maintainers no longer answer support questions through GitHub Discussions, so your question may go unanswered unless you also post it on the portal.`,
|
||||
``,
|
||||
`You can sign in to support.stalw.art with your existing GitHub account, so no separate registration is required. Google, Discord, LinkedIn, and email/password sign-in are also available.`,
|
||||
``,
|
||||
`**Why we are unifying our support channels**`,
|
||||
``,
|
||||
`Until now, Stalwart support has been spread across GitHub Discussions, Discord, Matrix, and Reddit. As the project has grown, tracking parallel inboxes and deduplicating threads has become unsustainable; the result has been slower answers, repeated work for the people helping out, and good information buried in chat scrollback where the next person with the same question would never find it.`,
|
||||
``,
|
||||
`[support.stalw.art](https://support.stalw.art) is a Discourse instance that we operate ourselves, hosted at Hetzner in Germany and GDPR-compliant.`,
|
||||
``,
|
||||
`Thank you for helping us keep the conversation in one place.`,
|
||||
].join('\n');
|
||||
|
||||
await github.graphql(
|
||||
`mutation($discussionId: ID!, $body: String!) {
|
||||
addDiscussionComment(input: { discussionId: $discussionId, body: $body }) {
|
||||
comment { id }
|
||||
}
|
||||
}`,
|
||||
{
|
||||
discussionId: discussion.node_id,
|
||||
body,
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user