Compare commits

...

9 Commits

Author SHA1 Message Date
2790eb1370 chore(deps): update docker/build-push-action action to v6
Some checks failed
Enforce Conventional Commit PR Title / Validate PR Title (pull_request) Failing after 5s
CI / ci (pull_request) Successful in 1m12s
2025-01-02 21:01:09 +00:00
490e961397
fix(ci): switch back to previous module
Some checks failed
Enforce Conventional Commit PR Title / Validate PR Title (pull_request) Failing after 4s
2025-01-02 20:43:17 +00:00
d69ad8920c revert: 71d2a971059d9700e1f22ce4ead6a8d4abf67ad4
revert bye
2025-01-02 21:42:11 +01:00
71d2a97105 bye 2025-01-02 21:41:52 +01:00
bb889af36e
fix(ci): switch back to previous module 2025-01-02 20:41:39 +00:00
a48d7d9ae5
fix(ci): switch conventional commit PR title module 2025-01-02 20:35:36 +00:00
96a836cc17
feat(ci): enforce conventional commit PR titles
All checks were successful
CI / ci (pull_request) Successful in 59s
2025-01-02 20:25:07 +00:00
89c1f64386
fix(ci): use the conventionalcommits preset instead of angular 2025-01-02 20:19:37 +00:00
62643c1621 chore(deps): update dependency pylint to v3.3.3
All checks were successful
CI / ci (pull_request) Successful in 1m0s
2025-01-02 21:06:57 +01:00
4 changed files with 42 additions and 37 deletions

View File

@ -0,0 +1,34 @@
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,6 +77,8 @@ jobs:
with:
git-url: ${{ steps.set_srvurl.outputs.srvurl }}
github-token: ${{ gitea.token }}
preset: "conventionalcommits"
# preset: "angular" # This is the default
skip-commit: true
release-count: 1
output-file: false
@ -149,7 +151,7 @@ jobs:
printf "Tags:\n${{ steps.meta.outputs.tags }}"
- name: Build images
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: false
@ -157,24 +159,7 @@ jobs:
annotations: ${{ steps.meta.outputs.annotations }}
labels: ${{ steps.meta.outputs.labels }}
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
run: |
strtags="${{ steps.meta.outputs.tags }}"

View File

@ -1,14 +0,0 @@
# 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]]
name = "pylint"
version = "3.3.2"
version = "3.3.3"
description = "python code static checker"
optional = false
python-versions = ">=3.9.0"
files = [
{file = "pylint-3.3.2-py3-none-any.whl", hash = "sha256:77f068c287d49b8683cd7c6e624243c74f92890f767f106ffa1ddf3c0a54cb7a"},
{file = "pylint-3.3.2.tar.gz", hash = "sha256:9ec054ec992cd05ad30a6df1676229739a73f8feeabf3912c995d17601052b01"},
{file = "pylint-3.3.3-py3-none-any.whl", hash = "sha256:26e271a2bc8bce0fc23833805a9076dd9b4d5194e2a02164942cb3cdc37b4183"},
{file = "pylint-3.3.3.tar.gz", hash = "sha256:07c607523b17e6d16e2ae0d7ef59602e332caa762af64203c24b41c27139f36a"},
]
[package.dependencies]
astroid = ">=3.3.5,<=3.4.0-dev0"
astroid = ">=3.3.8,<=3.4.0-dev0"
colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""}
dill = [
{version = ">=0.3.7", markers = "python_version >= \"3.12\""},