Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
2790eb1370 | |||
490e961397 | |||
d69ad8920c | |||
71d2a97105 | |||
bb889af36e | |||
a48d7d9ae5 | |||
96a836cc17 | |||
89c1f64386 | |||
62643c1621 |
34
.gitea/workflows/pr-title-semantic.yml
Normal file
34
.gitea/workflows/pr-title-semantic.yml
Normal 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
|
@ -77,6 +77,8 @@ 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
|
||||||
@ -149,7 +151,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@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: false
|
push: false
|
||||||
@ -157,24 +159,7 @@ jobs:
|
|||||||
annotations: ${{ steps.meta.outputs.annotations }}
|
annotations: ${{ steps.meta.outputs.annotations }}
|
||||||
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
14
README.md
@ -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
8
poetry.lock
generated
@ -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.2"
|
version = "3.3.3"
|
||||||
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.2-py3-none-any.whl", hash = "sha256:77f068c287d49b8683cd7c6e624243c74f92890f767f106ffa1ddf3c0a54cb7a"},
|
{file = "pylint-3.3.3-py3-none-any.whl", hash = "sha256:26e271a2bc8bce0fc23833805a9076dd9b4d5194e2a02164942cb3cdc37b4183"},
|
||||||
{file = "pylint-3.3.2.tar.gz", hash = "sha256:9ec054ec992cd05ad30a6df1676229739a73f8feeabf3912c995d17601052b01"},
|
{file = "pylint-3.3.3.tar.gz", hash = "sha256:07c607523b17e6d16e2ae0d7ef59602e332caa762af64203c24b41c27139f36a"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[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\""}
|
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\""},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user