-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from interactions
Interactions + CI/CD + Pagination
- Loading branch information
Showing
23 changed files
with
1,339 additions
and
652 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,3 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = E203 |
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,42 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json | ||
|
||
name: ModMail CD | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["ModMail CI"] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint-playbook: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run ansible-lint | ||
uses: ansible-community/ansible-lint-action@main | ||
run-ansible-playbook: | ||
runs-on: ubuntu-latest | ||
needs: [lint-playbook] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Ansible via Apt | ||
run: > | ||
sudo apt update && | ||
sudo apt install software-properties-common && | ||
sudo apt-add-repository --yes --update ppa:ansible/ansible && | ||
sudo apt install ansible | ||
- name: Write Inventory to File | ||
env: | ||
INVENTORY: ${{ secrets.INVENTORY }} | ||
run: 'echo "$INVENTORY" > inventory' | ||
- name: Install SSH Key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.ANSIBLE_KEY }} | ||
name: ansible | ||
known_hosts: ${{ secrets.KNOWN_HOSTS }} | ||
- name: Run Ansible Playbook | ||
run: | | ||
ansible-playbook -i inventory playbook.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,39 @@ | ||
name: ModMail CI | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-publish-latest: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set Up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest |
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
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 @@ | ||
If you are reading this page, then thank you for your interest in contributing towards the bot. | ||
We are grateful for any help, however, please ensure you follow the guidelines laid out below | ||
and ensure that any code you produce for modmail.py is licensed with the GNU GPL v3. | ||
|
||
# Contributions | ||
|
||
Not all contribution PRs (read below) will be accepted. | ||
For ideas as to what to contribute, please refer to the GitHub issues or contact a member of the development team. | ||
|
||
Bug fixes and optimisations are also greatly appreciated! | ||
|
||
# VCS | ||
|
||
1. Create a new branch (and fork if applicable). Label it appropriately. | ||
2. Make the changes on that branch. | ||
3. Commit to and push the changes. | ||
4. Create a PR from your branch to `main`. | ||
5. A maintainer will then review your PR. | ||
|
||
If you have questions, please ask a maintainer. |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.