Compare commits

..

No commits in common. "v0.38.0" and "v0.37.0" have entirely different histories.

4 changed files with 37 additions and 42 deletions

View File

@ -1,34 +0,0 @@
name: "Enforce Conventional Commit PR Title"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- labeled
- unlabeled
jobs:
validate:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
# - name: PR Conventional Commit Validation
# uses: ytanikin/pr-conventional-commits@1.4.0
# with:
# task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
# add_label: 'false'
# DOES NOT WORK WITH GITEA
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ gitea.token }}
with:
requireScope: true
wip: true
validateSingleCommit: true
validateSingleCommitMatchesPrTitle: true
githubBaseUrl: https://git.tainton.uk/api/v1
ignoreLabels: ignore/semantic-pr-title

View File

@ -77,8 +77,6 @@ jobs:
with: with:
git-url: ${{ steps.set_srvurl.outputs.srvurl }} git-url: ${{ steps.set_srvurl.outputs.srvurl }}
github-token: ${{ gitea.token }} github-token: ${{ gitea.token }}
preset: "conventionalcommits"
# preset: "angular" # This is the default
skip-commit: true skip-commit: true
release-count: 1 release-count: 1
output-file: false output-file: false
@ -151,7 +149,7 @@ jobs:
printf "Tags:\n${{ steps.meta.outputs.tags }}" printf "Tags:\n${{ steps.meta.outputs.tags }}"
- name: Build images - name: Build images
uses: docker/build-push-action@v6 uses: docker/build-push-action@v5
with: with:
context: . context: .
push: false push: false
@ -160,6 +158,23 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
# - name: Build images
# run: |
# bldcmd="docker buildx build --load"
# strtags="${{ steps.meta.outputs.tags }}"
# strlabels="${{ steps.meta.outputs.labels }}"
# strannotations="${{ steps.meta.outputs.annotations }}"
# readarray -t tags <<<"$strtags"
# readarray -t labels <<<"$strlabels"
# readarray -t annotations <<<"$strannotations"
# for element in "${tags[@]}"; do bldcmd="$bldcmd --tag \"$element\""; done
# for element in "${labels[@]}"; do bldcmd="$bldcmd --label \"$element\""; done
# for element in "${annotations[@]}"; do bldcmd="$bldcmd --annotation \"$element\""; done
# bldcmd="$bldcmd ${{ gitea.workspace }}"
# echo "$bldcmd"
# echo ""
# sh -c "$bldcmd"
- name: Push images - name: Push images
run: | run: |
strtags="${{ steps.meta.outputs.tags }}" strtags="${{ steps.meta.outputs.tags }}"

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# webexmemebot
## Description
Webex-based meme generation bot using memegen.link.
## How to install
1. Clone the repository
2. Copy `.env.default` to `.env`
3. Edit `.env` as required:
- `WEBEX_API_KEY` - Webex API key
## How to use
1. Install Docker and Docker Compose
2. Run `docker-compose up -d`

8
poetry.lock generated
View File

@ -636,17 +636,17 @@ tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"]
[[package]] [[package]]
name = "pylint" name = "pylint"
version = "3.3.3" version = "3.3.2"
description = "python code static checker" description = "python code static checker"
optional = false optional = false
python-versions = ">=3.9.0" python-versions = ">=3.9.0"
files = [ files = [
{file = "pylint-3.3.3-py3-none-any.whl", hash = "sha256:26e271a2bc8bce0fc23833805a9076dd9b4d5194e2a02164942cb3cdc37b4183"}, {file = "pylint-3.3.2-py3-none-any.whl", hash = "sha256:77f068c287d49b8683cd7c6e624243c74f92890f767f106ffa1ddf3c0a54cb7a"},
{file = "pylint-3.3.3.tar.gz", hash = "sha256:07c607523b17e6d16e2ae0d7ef59602e332caa762af64203c24b41c27139f36a"}, {file = "pylint-3.3.2.tar.gz", hash = "sha256:9ec054ec992cd05ad30a6df1676229739a73f8feeabf3912c995d17601052b01"},
] ]
[package.dependencies] [package.dependencies]
astroid = ">=3.3.8,<=3.4.0-dev0" astroid = ">=3.3.5,<=3.4.0-dev0"
colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""}
dill = [ dill = [
{version = ">=0.3.7", markers = "python_version >= \"3.12\""}, {version = ">=0.3.7", markers = "python_version >= \"3.12\""},