From 034d58069c1ec92f8ae58359bdfd7a3119afe67d Mon Sep 17 00:00:00 2001 From: Daenney Date: Fri, 25 Apr 2025 17:33:10 +0200 Subject: [PATCH] [chore] Set up Github to be a mirror --- .github/FUNDING.yml | 2 - .github/ISSUE_TEMPLATE/bug_frontend.yaml | 67 ------------------ .github/ISSUE_TEMPLATE/bug_report.yaml | 76 --------------------- .github/ISSUE_TEMPLATE/custom.md | 8 --- .github/ISSUE_TEMPLATE/feature_request.yaml | 44 ------------ .github/README.md | 3 + .github/dependabot.yml | 15 ---- .github/pull_request_template.md | 27 -------- .github/workflows/autoclose.yaml | 30 ++++++++ 9 files changed, 33 insertions(+), 239 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_frontend.yaml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml delete mode 100644 .github/ISSUE_TEMPLATE/custom.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.yaml create mode 100644 .github/README.md delete mode 100644 .github/dependabot.yml delete mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/autoclose.yaml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index e468f77f8..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -open_collective: gotosocial -liberapay: GoToSocial diff --git a/.github/ISSUE_TEMPLATE/bug_frontend.yaml b/.github/ISSUE_TEMPLATE/bug_frontend.yaml deleted file mode 100644 index 23ddb4d31..000000000 --- a/.github/ISSUE_TEMPLATE/bug_frontend.yaml +++ /dev/null @@ -1,67 +0,0 @@ -name: Frontend Bug Report -description: Report an issue related to the web frontend -title: "[bug/frontend] Issue Title" -labels: ["bug", "frontend"] -assignees: [] - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this bug report! Please be cautious with the sensitive information/logs while filing the issue. - - - type: textarea - id: desc - attributes: - label: Describe the bug with a clear and concise description of what the bug is. Please include screenshots of any visual issues. - validations: - required: true - - - type: input - id: GoToSocial-Version - attributes: - label: What's your GoToSocial Version? - description: Enter the Version of your GoToSocial Installation - placeholder: e.g. v0.3.4 - validations: - required: true - - - type: input - id: Browser-Version - attributes: - label: Browser version - description: What browser(s) and versions are you using that show this bug? - placeholder: Firefox 103.0b9 (64-bit) - validations: - required: true - - - type: textarea - id: what-happened - attributes: - label: What happened? - description: Enter exactly what happened. - validations: - required: false - - - type: textarea - id: what-expected - attributes: - label: What you expected to happen? - description: Enter what you expected to happen. - validations: - required: false - - - type: textarea - id: how-to-reproduce - attributes: - label: How to reproduce it? - description: As minimally and precisely as possible. - validations: - required: false - - - type: textarea - id: anything-else - attributes: - label: Anything else we need to know? - validations: - required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml deleted file mode 100644 index a233c6e76..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ /dev/null @@ -1,76 +0,0 @@ -name: Bug Report -description: Create a report to help us improve -title: "[bug] Issue Title" -labels: [bug] -assignees: [] - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this bug report! Please be cautious with the sensitive information/logs while filing the issue. - - type: markdown - attributes: - value: | - ⚠️ If you're reporting an interoperability issue with a **closed source** - ActivityPub/Mastodon client or server, please report the issue to the - developers of that client or server instead. Without access to their - source debugging the issue is difficult for us. Since GoToSocial is - open source, developers of closed source implementations can run a copy - and autonomously debug the issue. We'll gladly address any bugs they - raise with us. - - type: textarea - id: desc - attributes: - label: Describe the bug with a clear and concise description of what the bug is. - validations: - required: true - - - type: input - id: GoToSocial-Version - attributes: - label: What's your GoToSocial Version? - description: Enter the Version of your GoToSocial Installation - placeholder: e.g. v0.3.4 - validations: - required: true - - - type: input - id: GoToSocial-Arch - attributes: - label: GoToSocial Arch - description: What architecture do you use and did you do a Binary or Docker installation? - placeholder: e.g. arm64 Docker or arm64 Binary - validations: - required: false - - - type: textarea - id: what-happened - attributes: - label: What happened? - description: Enter exactly what happened. - validations: - required: false - - - type: textarea - id: what-expected - attributes: - label: What you expected to happen? - description: Enter what you expected to happen. - validations: - required: false - - - type: textarea - id: how-to-reproduce - attributes: - label: How to reproduce it? - description: As minimally and precisely as possible. - validations: - required: false - - - type: textarea - id: anything-else - attributes: - label: Anything else we need to know? - validations: - required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md deleted file mode 100644 index 003a76f2d..000000000 --- a/.github/ISSUE_TEMPLATE/custom.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: Custom issue template -about: Describe this issue template's purpose here. -title: '' -labels: '' -assignees: '' - ---- \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml deleted file mode 100644 index 0b07560ac..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: Feature request -description: Suggest an idea for this project -title: "[feature] Issue Title" -labels: [enhancement] -assignees: - - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this feature request! - - - type: textarea - id: desc - attributes: - label: Is your feature request related to a problem ? - description: Give a clear and concise description of what the problem is. - placeholder: ex. I'm always frustrated when [...] - validations: - required: true - - - type: textarea - id: prop-solution - attributes: - label: Describe the solution you'd like. - description: A clear and concise description of what you want to happen. - validations: - required: true - - - type: textarea - id: alternatives - attributes: - label: Describe alternatives you've considered. - description: A clear and concise description of any alternative solutions or features you've considered. If nothing, please enter `NONE` - validations: - required: true - - - type: textarea - id: additional-ctxt - attributes: - label: Additional context. - description: Add any other context or screenshots about the feature request here. - validations: - required: false \ No newline at end of file diff --git a/.github/README.md b/.github/README.md new file mode 100644 index 000000000..2e7b6aa0a --- /dev/null +++ b/.github/README.md @@ -0,0 +1,3 @@ +# GoToSocial + +This is a mirror. You can find us on https://codeberg.org/superseriousbusiness/gotosocial. diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index a636b39f7..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "gomod" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "weekly" - commit-message: - prefix: "[chore]" - labels: - - "chore" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index b6a399dae..000000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,27 +0,0 @@ -# Description - -> If this is a code change, please include a summary of what you've coded, and link to the issue(s) it closes/implements. -> -> If this is a documentation change, please briefly describe what you've changed and why. - -This pull request implements xyz or fixes abc. - -closes #(issue) -closes #(another issue) - -## Checklist - -Please put an x inside each checkbox to indicate that you've read and followed it: `[ ]` -> `[x]` - -If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want). - -- [ ] I/we have read the [GoToSocial contribution guidelines](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md). -- [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat. -- [ ] I/we have not leveraged AI to create the proposed changes. -- [ ] I/we have performed a self-review of added code. -- [ ] I/we have written code that is legible and maintainable by others. -- [ ] I/we have commented the added code, particularly in hard-to-understand areas. -- [ ] I/we have made any necessary changes to documentation. -- [ ] I/we have added tests that cover new code. -- [ ] I/we have run tests and they pass locally with the changes. -- [ ] I/we have run `go fmt ./...` and `golangci-lint run`. diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml new file mode 100644 index 000000000..39de87428 --- /dev/null +++ b/.github/workflows/autoclose.yaml @@ -0,0 +1,30 @@ +on: + issues: + types: [opened] + pull_request_target: + types: [opened] + +permissions: + issues: write + pull-requests: write + +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: issue + if: ${{ github.event.issue.id != '' }} + run: | + gh issue close $ISSUE --comment "This repository is a mirror. Please open issues on https://codeberg.org/superseriousbusiness/gotosocial." --reason "not planned" + gh issue lock $ISSUE + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.html_url }} + - name: pr + if: ${{ github.event.pull_request.id != '' }} + run: | + gh pr close $PULL_REQUEST --comment "This repository is a mirror. Please open PRs on https://codeberg.org/superseriousbusiness/gotosocial." + gh pr lock $PULL_REQUEST + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PULL_REQUEST: ${{ github.event.pull_request.html_url }}