Skip to content

Commit 2e96a9e

Browse files
committed
.github: add actions and issue templates
1 parent 4df8b9c commit 2e96a9e

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Bug report
3+
about: If something is definitely wrong in the bridge (rather than just a setup issue),
4+
file a bug report. Remember to include relevant logs. Asking in the Matrix room first
5+
is strongly recommended.
6+
type: Bug
7+
8+
---
9+
10+
<!--
11+
Remember to include relevant logs, the bridge version and any other details.
12+
13+
It's always best to ask in the Matrix room first, especially if you aren't sure
14+
what details are needed. Issues with insufficient detail will likely just be
15+
ignored or closed immediately.
16+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
contact_links:
2+
- name: Troubleshooting docs & FAQ
3+
url: https://docs.mau.fi/bridges/general/troubleshooting.html
4+
about: Check this first if you're having problems setting up the bridge.
5+
- name: Support room
6+
url: https://matrix.to/#/#zulip:maunium.net
7+
about: For setup issues not answered by the troubleshooting docs, ask in the Matrix room.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
name: Enhancement request
3+
about: Submit a feature request or other suggestion
4+
type: Feature
5+
6+
---

.github/workflows/go.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Go
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
GOTOOLCHAIN: local
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
go-version: ["1.25"]
15+
name: Lint ${{ matrix.go-version == '1.25' && '(latest)' || '(old)' }}
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: ${{ matrix.go-version }}
24+
cache: true
25+
26+
- name: Install libolm
27+
run: sudo apt-get install libolm-dev libolm3
28+
29+
- name: Install dependencies
30+
run: |
31+
go install golang.org/x/tools/cmd/goimports@latest
32+
go install honnef.co/go/tools/cmd/staticcheck@latest
33+
export PATH="$HOME/go/bin:$PATH"
34+
35+
- name: Run pre-commit
36+
uses: pre-commit/action@v3.0.1

.github/workflows/stale.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Lock old issues'
2+
3+
on:
4+
schedule:
5+
- cron: '0 9 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
# pull-requests: write
11+
# discussions: write
12+
13+
concurrency:
14+
group: lock-threads
15+
16+
jobs:
17+
lock-stale:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: dessant/lock-threads@v5
21+
id: lock
22+
with:
23+
issue-inactive-days: 90
24+
process-only: issues
25+
- name: Log processed threads
26+
run: |
27+
if [ '${{ steps.lock.outputs.issues }}' ]; then
28+
echo "Issues:" && echo '${{ steps.lock.outputs.issues }}' | jq -r '.[] | "https://github.com/\(.owner)/\(.repo)/issues/\(.issue_number)"'
29+
fi

0 commit comments

Comments
 (0)