Skip to content

Commit ef5393e

Browse files
authored
Initial setup (#1)
Sets up the initial layout and CI for publishing. All the content is currently set to `draft: true` untill it can be reviewed before release. Some of the required content (changelog, search, faq) has been set to `draft: false` for the site to work.
1 parent d31e9aa commit ef5393e

File tree

632 files changed

+24207
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

632 files changed

+24207
-6
lines changed

.github/dependabot.yml

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
---
2+
##################################################
3+
#
4+
# Name: dependabot.yml
5+
# Description: Dependabot configuration for GitHub native version
6+
# Reference: https://git.io/JJhjE
7+
#
8+
##################################################
9+
10+
version: 2
11+
12+
updates:
13+
#########################
14+
# GitHub Actions
15+
#########################
16+
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "weekly"
21+
day: "sunday"
22+
time: "00:00"
23+
timezone: "Australia/Sydney"
24+
assignees:
25+
- "MAHDTech"
26+
reviewers:
27+
- "MAHDTech"
28+
labels:
29+
- "dependencies"
30+
- "dependabot"
31+
- "actions"
32+
target-branch: "trunk"
33+
commit-message:
34+
prefix: "github-actions"
35+
rebase-strategy: "auto"
36+
open-pull-requests-limit: 5
37+
38+
#########################
39+
# Git Submodules
40+
#########################
41+
42+
- package-ecosystem: "gitsubmodule"
43+
directory: "/"
44+
schedule:
45+
interval: "weekly"
46+
day: "sunday"
47+
time: "00:00"
48+
timezone: "Australia/Sydney"
49+
assignees:
50+
- "MAHDTech"
51+
reviewers:
52+
- "MAHDTech"
53+
labels:
54+
- "dependencies"
55+
- "dependabot"
56+
- "submodules"
57+
target-branch: "trunk"
58+
commit-message:
59+
prefix: "gitsubmodules"
60+
rebase-strategy: "auto"
61+
open-pull-requests-limit: 5
62+
63+
#########################
64+
# Docker
65+
#########################
66+
67+
- package-ecosystem: "docker"
68+
directory: "/"
69+
schedule:
70+
interval: "weekly"
71+
day: "sunday"
72+
time: "00:00"
73+
timezone: "Australia/Sydney"
74+
assignees:
75+
- "MAHDTech"
76+
reviewers:
77+
- "MAHDTech"
78+
labels:
79+
- "dependencies"
80+
- "dependabot"
81+
- "docker"
82+
target-branch: "trunk"
83+
commit-message:
84+
prefix: "docker"
85+
rebase-strategy: "auto"
86+
open-pull-requests-limit: 5
87+
88+
#########################
89+
# Go Modules
90+
#########################
91+
92+
- package-ecosystem: "gomod"
93+
directory: "/"
94+
schedule:
95+
interval: "weekly"
96+
day: "sunday"
97+
time: "00:00"
98+
timezone: "Australia/Sydney"
99+
assignees:
100+
- "MAHDTech"
101+
reviewers:
102+
- "MAHDTech"
103+
labels:
104+
- "dependencies"
105+
- "dependabot"
106+
- "gomod"
107+
target-branch: "trunk"
108+
commit-message:
109+
prefix: "gomodules"
110+
rebase-strategy: "auto"
111+
open-pull-requests-limit: 5
112+
113+
#########################
114+
# Cargo crates
115+
#########################
116+
117+
- package-ecosystem: "cargo"
118+
directory: "/"
119+
schedule:
120+
interval: "weekly"
121+
day: "sunday"
122+
time: "00:00"
123+
timezone: "Australia/Sydney"
124+
assignees:
125+
- "MAHDTech"
126+
reviewers:
127+
- "MAHDTech"
128+
labels:
129+
- "dependencies"
130+
- "dependabot"
131+
- "cargo"
132+
target-branch: "trunk"
133+
commit-message:
134+
prefix: "cargo"
135+
rebase-strategy: "auto"
136+
open-pull-requests-limit: 5

.github/workflows/comments.yaml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
##################################################
2+
# Name: comments.yaml
3+
# Description:
4+
# A Workflow that triggers on issue comments so
5+
# they can be reviewed for spam.
6+
##################################################
7+
8+
name: Comments
9+
10+
on:
11+
12+
issue_comment:
13+
types:
14+
- created
15+
- edited
16+
17+
defaults:
18+
19+
run:
20+
shell: bash
21+
22+
permissions:
23+
contents: read
24+
issues: write
25+
26+
jobs:
27+
28+
##################################################
29+
# Posts Giphy comments on '/giphy search_term'
30+
##################################################
31+
32+
giphy:
33+
34+
name: Giphy
35+
36+
runs-on: ${{ matrix.os }}
37+
38+
timeout-minutes: 5
39+
40+
strategy:
41+
fail-fast: true
42+
matrix:
43+
os:
44+
- ubuntu-latest
45+
46+
steps:
47+
48+
- id: giphy
49+
name: Giphy image search
50+
uses: IAmHughes/[email protected]
51+
env:
52+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
53+
GIPHY_TOKEN: "${{ secrets.GIPHY_TOKEN }}"
54+
with:
55+
rating: 'PG-13' # G, PG, PG-13, R
56+
lang: 'en'
57+
58+
##################################################
59+
# Send a notification to Discord
60+
##################################################
61+
62+
discord:
63+
64+
name: Discord
65+
66+
runs-on: ${{ matrix.os }}
67+
68+
timeout-minutes: 5
69+
70+
strategy:
71+
fail-fast: true
72+
matrix:
73+
os:
74+
- ubuntu-latest
75+
steps:
76+
77+
- name: Post message to Discord
78+
id: discord_message
79+
env:
80+
WEBHOOK_URL: ${{ secrets.WEBHOOK_DISCORD }}
81+
PING: "@MAHDTech"
82+
MESSAGE: >
83+
The ${{ github.event_name }} event was triggered in the ${{ github.repository }} repository.
84+
The comment is available to view [here](${{ github.event.comment.html_url }})
85+
run: |
86+
sudo apt install jq --yes
87+
JSON_CONTENT=$(jq -n --arg 'content' "${PING} ${MESSAGE}" '$ARGS.named')
88+
curl \
89+
--verbose \
90+
--request POST \
91+
--header "Content-Type: application/json" \
92+
--data "${JSON_CONTENT}" \
93+
$WEBHOOK_URL

0 commit comments

Comments
 (0)