-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c5e5773
Showing
31 changed files
with
2,458 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{yaml,yml,sql}] | ||
indent_style = space | ||
|
||
[.gitlab-ci.yml] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Bug report | ||
about: If something is definitely wrong in the bridge (rather than just a setup issue), | ||
file a bug report. Remember to include relevant logs. | ||
labels: bug | ||
|
||
--- | ||
|
||
<!-- | ||
Remember to include relevant logs, the bridge version and any other details. | ||
If you aren't sure what's needed, ask in the Matrix room rather than opening an | ||
incomplete issue. Issues with insufficient detail will likely just be ignored. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
contact_links: | ||
- name: Troubleshooting docs & FAQ | ||
url: https://docs.mau.fi/bridges/general/troubleshooting.html | ||
about: Check this first if you're having problems setting up the bridge. | ||
- name: Support room | ||
url: https://matrix.to/#/#bluesky:maunium.net | ||
about: For setup issues not answered by the troubleshooting docs, ask in the Matrix room. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
name: Enhancement request | ||
about: Submit a feature request or other suggestion | ||
labels: enhancement | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Go | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
GOTOOLCHAIN: local | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: ["1.23"] | ||
name: Lint ${{ matrix.go-version == '1.23' && '(latest)' || '(old)' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
cache: true | ||
|
||
- name: Install libolm | ||
run: sudo apt-get install libolm-dev libolm3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
go install golang.org/x/tools/cmd/goimports@latest | ||
go install honnef.co/go/tools/cmd/staticcheck@latest | ||
export PATH="$HOME/go/bin:$PATH" | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 'Lock old issues' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 17 * * *' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
# pull-requests: write | ||
# discussions: write | ||
|
||
concurrency: | ||
group: lock-threads | ||
|
||
jobs: | ||
lock-stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v5 | ||
id: lock | ||
with: | ||
issue-inactive-days: 90 | ||
process-only: issues | ||
- name: Log processed threads | ||
run: | | ||
if [ '${{ steps.lock.outputs.issues }}' ]; then | ||
echo "Issues:" && echo '${{ steps.lock.outputs.issues }}' | jq -r '.[] | "https://github.com/\(.owner)/\(.repo)/issues/\(.issue_number)"' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.idea | ||
|
||
*.yaml | ||
!.pre-commit-config.yaml | ||
!example-config.yaml | ||
|
||
*.json | ||
*.db | ||
*.log | ||
*.bak | ||
|
||
/mautrix-bluesky | ||
/start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include: | ||
- project: 'mautrix/ci' | ||
file: '/gov2-as-default.yml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude_types: [markdown] | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
|
||
- repo: https://github.com/tekwizely/pre-commit-golang | ||
rev: v1.0.0-rc.1 | ||
hooks: | ||
- id: go-imports-repo | ||
args: | ||
- "-local" | ||
- "go.mau.fi/mautrix-bluesky" | ||
- "-w" | ||
- id: go-vet-repo-mod | ||
- id: go-staticcheck-repo-mod | ||
- id: go-mod-tidy | ||
|
||
- repo: https://github.com/beeper/pre-commit-go | ||
rev: v0.4.2 | ||
hooks: | ||
- id: zerolog-ban-msgf | ||
- id: zerolog-use-stringer | ||
- id: prevent-literal-http-methods | ||
- id: zerolog-ban-global-log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# v0.1.0 (unreleased) | ||
|
||
Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM golang:1-alpine3.20 AS builder | ||
|
||
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev | ||
|
||
COPY . /build | ||
WORKDIR /build | ||
RUN ./build.sh | ||
|
||
FROM alpine:3.20 | ||
|
||
ENV UID=1337 \ | ||
GID=1337 | ||
|
||
RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq curl | ||
|
||
COPY --from=builder /build/mautrix-bluesky /usr/bin/mautrix-bluesky | ||
COPY --from=builder /build/docker-run.sh /docker-run.sh | ||
VOLUME /data | ||
|
||
CMD ["/docker-run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM alpine:3.20 | ||
|
||
ENV UID=1337 \ | ||
GID=1337 | ||
|
||
RUN apk add --no-cache ffmpeg su-exec ca-certificates bash jq curl yq-go | ||
|
||
ARG EXECUTABLE=./mautrix-bluesky | ||
COPY $EXECUTABLE /usr/bin/mautrix-bluesky | ||
COPY ./docker-run.sh /docker-run.sh | ||
ENV BRIDGEV2=1 | ||
VOLUME /data | ||
WORKDIR /data | ||
|
||
CMD ["/docker-run.sh"] |
Oops, something went wrong.