Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
7c8fb69
chore(deps): update poetry-deps (#415)
renovate[bot] Apr 12, 2024
287d9ab
enable to run tox with specific python version
myakove Apr 14, 2024
05dd70c
[pre-commit.ci] pre-commit autoupdate (#416)
pre-commit-ci[bot] Apr 16, 2024
3b6ea59
Release 1.0.28
myakove Apr 16, 2024
915d431
chore(deps): update poetry-deps (#417)
renovate[bot] Apr 16, 2024
ff91b26
welcome msg: add not supported retest in repository do not have any
myakove Apr 17, 2024
1c826de
Merge branch 'main' of github.com:myk-org/github-webhook-server
myakove Apr 17, 2024
6506348
poetry update
myakove Apr 17, 2024
36fe9ad
chore(deps): update poetry-deps (#419)
renovate[bot] Apr 19, 2024
326a9b0
chore(deps): update poetry-deps (#420)
renovate[bot] Apr 20, 2024
aab1115
Release 1.0.29
myakove Apr 21, 2024
ba89df8
chore(deps): update poetry-deps (#421)
renovate[bot] Apr 21, 2024
5c294eb
[pre-commit.ci] pre-commit autoupdate (#422)
pre-commit-ci[bot] Apr 23, 2024
57c60cc
do not block merge if PR merked as mergable by github
myakove Apr 23, 2024
bfd6b9d
Merge branch 'main' of github.com:myk-org/github-webhook-server
myakove Apr 23, 2024
bf6c2fd
User can set extra required labels to set PR as ca be merged (#424)
myakove Apr 24, 2024
ccb2a18
Release 1.0.30
myakove Apr 24, 2024
7f907ee
dockerfile add
myakove Apr 24, 2024
495892e
Release 1.0.31
myakove Apr 24, 2024
de63e8a
chore(deps): update poetry-deps (#426)
renovate[bot] Apr 25, 2024
c377adf
can-be-mrged: check if pr mergeable_state is clean
myakove Apr 25, 2024
42b6f0f
can-be-mrged: check if pr mergeable_state is clean
myakove Apr 25, 2024
e11c784
can-be-mrged: remove check if pr mergeable_state is clean
myakove Apr 25, 2024
79f08c1
chore(deps): update poetry-deps (#430)
renovate[bot] Apr 26, 2024
16d6182
Fix reviewers per folders
myakove Apr 26, 2024
7666eb8
chore(deps): update poetry-deps (#433)
renovate[bot] Apr 30, 2024
b1ef864
[pre-commit.ci] pre-commit autoupdate (#432)
pre-commit-ci[bot] Apr 30, 2024
7a72392
Support create jira issues to track PR lifecycle (#428)
myakove Apr 30, 2024
304f469
jira: add repo name to title
myakove Apr 30, 2024
050b302
Release 1.0.32
myakove Apr 30, 2024
648d0e0
parent_commiter should be commiter of last commit
myakove Apr 30, 2024
201dbce
chore(deps): update poetry-deps (#435)
renovate[bot] Apr 30, 2024
bedd26a
chore(deps): update dependency pyhelper-utils to ^0.0.14 (#434)
renovate[bot] Apr 30, 2024
def46a8
Release 1.0.33
myakove Apr 30, 2024
cdb1d61
chore(deps): update poetry-deps (#437)
renovate[bot] May 1, 2024
75928c0
add last_commiter var
myakove May 1, 2024
e9a9b85
set jira assignee only if user in jira mapping
myakove May 1, 2024
5a46b4b
chore(deps): update dependency pyhelper-utils to ^0.0.15 (#436)
renovate[bot] May 1, 2024
9ea1fde
Fix return in init
myakove May 2, 2024
3f7ff95
Merge branch 'main' of github.com:myk-org/github-webhook-server
myakove May 3, 2024
244afb7
Release 1.0.34
myakove May 3, 2024
f5d3247
chore(deps): update poetry-deps (#438)
renovate[bot] May 4, 2024
91e3cac
set labels on private repos
myakove May 5, 2024
4cf452f
Merge branch 'main' of github.com:myk-org/github-webhook-server
myakove May 5, 2024
f17e9bb
set labels on private repos
myakove May 5, 2024
1f75657
set labels on private repos
myakove May 5, 2024
c3d9892
Release 1.0.35
myakove May 5, 2024
ae31b3a
check_if_can_be_merged: check only required runs (#439)
myakove May 6, 2024
983b2de
[pre-commit.ci] pre-commit autoupdate (#441)
pre-commit-ci[bot] May 7, 2024
2a2a095
Release 1.0.36
myakove May 7, 2024
f452292
Fix fstring
myakove May 7, 2024
721a0a2
Release 1.0.37
myakove May 7, 2024
bd07bc1
chore(deps): update poetry-deps (#442)
renovate[bot] May 10, 2024
911b7fd
[pre-commit.ci] pre-commit autoupdate (#443)
pre-commit-ci[bot] May 15, 2024
e587596
Release 1.0.38
myakove May 15, 2024
0ce4719
fix push to pypi
myakove May 15, 2024
6b27b70
poetry update
myakove May 15, 2024
433c0cb
chore(deps): update dependency pyhelper-utils to ^0.0.17 (#444)
renovate[bot] May 16, 2024
25f9953
Release 1.0.39
myakove May 16, 2024
ad27133
pypi: save dist dir as arg
myakove May 16, 2024
a48ff6a
Release 1.0.40
myakove May 19, 2024
fa10735
chore(deps): update dependency pyhelper-utils to ^0.0.18 (#445)
renovate[bot] May 19, 2024
609f8dd
fix when no jira issue label
myakove May 19, 2024
cd4914f
chore(deps): update dependency requests to v2.32.0 (#446)
renovate[bot] May 20, 2024
d45577a
chore(deps): update dependency requests to v2.32.1 (#447)
renovate[bot] May 21, 2024
c16f1bd
Release 1.0.41
myakove May 21, 2024
0021a6a
set self.all_required_status_checks to [] in init
myakove May 21, 2024
ac59377
chore(deps): update dependency requests to v2.32.2 (#449)
renovate[bot] May 22, 2024
5cb0723
chore(deps): update dependency pyhelper-utils to ^0.0.19 (#448)
renovate[bot] May 22, 2024
0bcff03
chore(deps): update poetry-deps (#450)
renovate[bot] May 22, 2024
cf49680
Release 1.0.42
myakove May 22, 2024
51d602a
chore(deps): update poetry-deps (#452)
renovate[bot] May 22, 2024
aa232ee
chore(deps): update dependency pyhelper-utils to ^0.0.20 (#451)
renovate[bot] May 22, 2024
df2fdd6
Release 1.0.43
myakove May 22, 2024
0f5cf8e
chore(deps): update poetry-deps (#454)
renovate[bot] May 23, 2024
d1aa6d5
chore(deps): update dependency pyhelper-utils to ^0.0.21 (#453)
renovate[bot] May 23, 2024
879e09d
Release 1.0.44
myakove May 27, 2024
573a501
[pre-commit.ci] pre-commit autoupdate (#455)
pre-commit-ci[bot] May 28, 2024
320e201
Release 1.0.45
myakove May 28, 2024
23ed2e9
chore(deps): update poetry-deps (#457)
renovate[bot] May 28, 2024
3c278c7
update renovate.json
myakove May 28, 2024
0c4f790
chore(deps): update poetry-deps (#458)
renovate[bot] May 28, 2024
cca9be2
chore(deps): update poetry-deps (#459)
renovate[bot] May 29, 2024
30cffe1
chore(deps): update poetry-deps (#460)
renovate[bot] May 29, 2024
1da2ea7
do not comment when unsuported label passed from the user
myakove May 30, 2024
d09ea7c
push container: push from main branch if pull request was merged
myakove May 30, 2024
8886761
chore(deps): update poetry-deps (#461)
renovate[bot] Jun 2, 2024
2b4280a
build container: checkout the right branch if PR is merged (#462)
myakove Jun 2, 2024
be97e46
Use uwsgi to run the app (#464)
myakove Jun 2, 2024
23781ea
[pre-commit.ci] pre-commit autoupdate (#466)
pre-commit-ci[bot] Jun 4, 2024
ddcb4b5
chore(deps): update poetry-deps (#467)
renovate[bot] Jun 6, 2024
c4d013c
Release 1.0.46
myakove Jun 6, 2024
0b0d93f
Fix upload to pypi
myakove Jun 6, 2024
9cedccb
Fix upload to pypi
myakove Jun 6, 2024
a6521d5
Fix upload to pypi
myakove Jun 6, 2024
6bc9387
Release 1.0.47
myakove Jun 6, 2024
2e97f2f
remove unused function skip_repo
myakove Jun 6, 2024
0c3e5a5
Tox add unused-code check
myakove Jun 6, 2024
7dd7cc6
remove commented lines
myakove Jun 6, 2024
6a8be06
Release 1.0.48
myakove Jun 6, 2024
59f988b
[pre-commit.ci] pre-commit autoupdate (#468)
pre-commit-ci[bot] Jun 11, 2024
0849020
Release 1.0.49
myakove Jun 11, 2024
5d3c6d7
Fix container release push
myakove Jun 13, 2024
3db5816
chore(deps): update poetry-deps (#469)
renovate[bot] Jun 13, 2024
dee9e3f
Update poetry
myakove Jun 14, 2024
ad5baaa
update renovate file
myakove Jun 14, 2024
e409726
chore(deps): update poetry-deps (#471)
renovate[bot] Jun 14, 2024
2522dae
[pre-commit.ci] pre-commit autoupdate (#472)
pre-commit-ci[bot] Jun 18, 2024
4830b87
chore(deps): update poetry-deps (#473)
renovate[bot] Jun 18, 2024
96d1d2b
log success when test run success (#474)
myakove Jun 18, 2024
f6f3829
Release 1.0.50
myakove Jun 18, 2024
dfb6c00
chore(deps): update poetry-deps (#476)
renovate[bot] Jun 18, 2024
a24025e
chore(deps): update poetry-deps (#477)
renovate[bot] Jun 21, 2024
5981e00
delete pr tag on merge/close of a pr (#478)
dbasunag Jun 24, 2024
19469b7
[pre-commit.ci] pre-commit autoupdate (#479)
pre-commit-ci[bot] Jun 24, 2024
9ae9c67
Release 1.0.51
myakove Jun 25, 2024
be53eb4
remove sonarcload workflow
myakove Jun 26, 2024
6b196c3
Move to using FastAPI (#480)
myakove Jun 27, 2024
a12d93e
delete_remote_tag_for_merged_or_closed_pr: run only when repo have co…
myakove Jun 27, 2024
16c41fa
Fix delete pr cintainer tag when merged/closed
myakove Jun 27, 2024
8fbfb6a
Fix delete pr container tag when merged/closed
myakove Jun 27, 2024
da28bdd
Release 1.0.52
myakove Jun 27, 2024
8a4f1c2
support log file
myakove Jun 28, 2024
94f02db
add some typing, fix delete tag
myakove Jun 28, 2024
093d954
chore(deps): update poetry-deps (#482)
renovate[bot] Jun 28, 2024
19c013c
Release 1.0.53
myakove Jun 28, 2024
6f861ff
Fix delete tag
myakove Jun 28, 2024
55530e8
create webhhok: remove duplicate log
myakove Jul 2, 2024
2c2f15d
[pre-commit.ci] pre-commit autoupdate (#483)
pre-commit-ci[bot] Jul 2, 2024
7a86137
Add more typing
myakove Jul 2, 2024
4c7785f
Add future in branch protection (#484)
rnetser Jul 2, 2024
abc50ea
chore(deps): update poetry-deps (#488)
renovate[bot] Jul 7, 2024
e74389b
Release 1.0.54
myakove Jul 8, 2024
1bd0762
Add Typing (#486)
rnetser Jul 8, 2024
d768833
Release 1.0.55
myakove Jul 8, 2024
2832853
move process to function (#490)
myakove Jul 8, 2024
7079290
chore(deps): update poetry-deps (#489)
renovate[bot] Jul 8, 2024
acd05d1
[pre-commit.ci] pre-commit autoupdate (#492)
pre-commit-ci[bot] Jul 9, 2024
22f37ac
Add comment when reviewer failed to be added (#493)
myakove Jul 9, 2024
d128af6
Add command arguments to the build-and-push-container (#495)
jpeimer Jul 11, 2024
6c81941
chore(deps): update poetry-deps (#496)
renovate[bot] Jul 15, 2024
0771c37
[pre-commit.ci] pre-commit autoupdate (#499)
pre-commit-ci[bot] Jul 16, 2024
eb839f5
Set approve label only if reviewer is part of approvers (#497)
myakove Jul 16, 2024
4464636
Fix missing {} in fstring
myakove Jul 16, 2024
eba3d94
Fix missing {} in fstring
myakove Jul 16, 2024
f89f22e
fix can be merged check
myakove Jul 16, 2024
e944294
Add support to pass log level
myakove Jul 16, 2024
65d385e
Fix where is no last commiter in commit (#501)
myakove Jul 20, 2024
b500036
chore(deps): update poetry-deps (#500)
renovate[bot] Jul 21, 2024
9395932
Release 1.0.56
myakove Jul 22, 2024
8239f66
chore(deps): update poetry-deps (#505)
renovate[bot] Jul 22, 2024
2d38dfe
[pre-commit.ci] pre-commit autoupdate (#506)
pre-commit-ci[bot] Jul 23, 2024
ef08c5f
ProcessGithubWehook: do not use @ignore_exceptions (#503)
myakove Jul 23, 2024
203016c
Improve logging (#507)
myakove Jul 23, 2024
732979b
set wip label based on title (#509)
rnetser Jul 23, 2024
a91aab7
wip label - add missing f-string (#511)
rnetser Jul 23, 2024
c692e47
Release 1.0.57
myakove Jul 24, 2024
2985254
chore(deps): update poetry-deps (#513)
renovate[bot] Jul 24, 2024
2a2b374
chore(deps): update poetry-deps (#514)
renovate[bot] Jul 26, 2024
1bd4a5d
Release 1.0.58
myakove Jul 28, 2024
088ab6f
chore(deps): update poetry-deps (#515)
renovate[bot] Jul 28, 2024
58374d6
Update tox configuration to run tests based on pull request parent br…
myakove Jul 29, 2024
f043115
Merge branch 'main' of github.com:myk-org/github-webhook-server
myakove Jul 29, 2024
b2dfeb1
Release 1.0.59
myakove Jul 29, 2024
e4d74da
chore(deps): update poetry-deps (#516)
renovate[bot] Jul 29, 2024
56cf62b
Fix remove lgtm by on pr sync
myakove Jul 29, 2024
3644924
Set log file zise to 10mb
myakove Jul 29, 2024
57c11dd
Merge branch 'main' of github.com:myk-org/github-webhook-server
myakove Jul 29, 2024
63db15b
[pre-commit.ci] pre-commit autoupdate (#517)
pre-commit-ci[bot] Jul 29, 2024
f84f6d0
Extract some code to function (#518)
myakove Jul 30, 2024
0db23ff
Rename _process_verified to more clrean name
myakove Jul 30, 2024
d2a7852
log file, no size limi
myakove Jul 31, 2024
f066e10
Improve no ready to merged output
myakove Jul 31, 2024
f52f1ba
Use one logger for all
myakove Jul 31, 2024
86bd9c0
Fix BUILD_AND_PUSH_CONTAINER_STR user command
myakove Jul 31, 2024
800cbb4
Fix BUILD_AND_PUSH_CONTAINER_STR user command
myakove Jul 31, 2024
39b1b6e
Fix BUILD_AND_PUSH_CONTAINER_STR user command
myakove Jul 31, 2024
b27dc04
chore(deps): update poetry-deps (#520)
renovate[bot] Aug 1, 2024
fb37b3b
chore(deps): update poetry-deps (#522)
renovate[bot] Aug 2, 2024
ed4fa33
chore(deps): update poetry-deps (#523)
renovate[bot] Aug 2, 2024
9a59106
Extract to functions, run in parallel (#524)
myakove Aug 5, 2024
b80c954
[pre-commit.ci] pre-commit autoupdate (#526)
pre-commit-ci[bot] Aug 6, 2024
3ca531b
chore(deps): update poetry-deps (#527)
renovate[bot] Aug 7, 2024
712ae55
Fix mypy pre-commit types deps issues
myakove Aug 7, 2024
e2090ae
chore(deps): update poetry-deps (#528)
renovate[bot] Aug 9, 2024
36e3548
Remove unused code (#529)
myakove Aug 10, 2024
a0b1819
Release 1.0.60
myakove Aug 12, 2024
4be94e8
chore(deps): update poetry-deps (#531)
renovate[bot] Aug 12, 2024
59ee3cd
[pre-commit.ci] pre-commit autoupdate (#532)
pre-commit-ci[bot] Aug 13, 2024
4a7c9f5
chore(deps): update poetry-deps (#533)
renovate[bot] Aug 13, 2024
33ed16e
chore(deps): update poetry-deps (#534)
renovate[bot] Aug 15, 2024
b7c23cd
Release 1.0.61
myakove Aug 15, 2024
d93a68a
chore(deps): update poetry-deps (#535)
renovate[bot] Aug 16, 2024
1d609fb
Release 1.0.62
myakove Aug 16, 2024
d861b5b
chore(deps): update poetry-deps (#536)
renovate[bot] Aug 18, 2024
f4433f8
chore(deps): update poetry-deps (#538)
renovate[bot] Aug 20, 2024
589489c
[pre-commit.ci] pre-commit autoupdate (#537)
pre-commit-ci[bot] Aug 20, 2024
a3da1ab
run rm -rf /run/containers/storage /run/libpod on server start
myakove Aug 20, 2024
94c596b
chore(deps): update poetry-deps (#539)
renovate[bot] Aug 22, 2024
47c0081
add back k3d to the container
myakove Aug 23, 2024
4293f7c
Merge branch 'main' of github.com:myk-org/github-webhook-server
myakove Aug 23, 2024
9456f30
Add docker to the container (#540)
myakove Aug 25, 2024
234f47e
chore(deps): update poetry-deps (#542)
renovate[bot] Aug 25, 2024
9bb6c00
chore(deps): update poetry-deps (#543)
renovate[bot] Aug 26, 2024
1f3ac91
chore(deps): update poetry-deps (#544)
renovate[bot] Aug 26, 2024
203e58e
[pre-commit.ci] pre-commit autoupdate (#545)
pre-commit-ci[bot] Aug 27, 2024
ab56f6d
Release 1.0.63
myakove Aug 29, 2024
bf72bd0
chore(deps): update poetry-deps (#546)
renovate[bot] Aug 30, 2024
ea62969
Release 1.0.64
myakove Aug 30, 2024
f50555b
chore(deps): update poetry-deps (#547)
renovate[bot] Aug 30, 2024
ef05047
Release 1.0.65
myakove Aug 30, 2024
f8ed504
[pre-commit.ci] pre-commit autoupdate (#548)
pre-commit-ci[bot] Sep 3, 2024
0798c19
chore(deps): update poetry-deps (#549)
renovate[bot] Sep 5, 2024
a90a209
chore(deps): update poetry-deps (#550)
renovate[bot] Sep 6, 2024
3be52c3
chore(deps): update poetry-deps (#551)
renovate[bot] Sep 7, 2024
6303a9a
[pre-commit.ci] pre-commit autoupdate (#552)
pre-commit-ci[bot] Sep 10, 2024
cd60774
chore(deps): update poetry-deps (#553)
renovate[bot] Sep 11, 2024
13616c8
chore(deps): update poetry-deps (#554)
renovate[bot] Sep 12, 2024
b441710
chore(deps): update poetry-deps (#556)
renovate[bot] Sep 13, 2024
a1a9ef3
chore(deps): update poetry-deps (#557)
renovate[bot] Sep 14, 2024
3236fc2
Only approvers should be able to set `hold` lable on PR (#558)
myakove Sep 15, 2024
e089b4f
Release 1.0.66
myakove Sep 16, 2024
f1a5507
chore(deps): update poetry-deps (#560)
renovate[bot] Sep 16, 2024
44c9e85
[pre-commit.ci] pre-commit autoupdate (#561)
pre-commit-ci[bot] Sep 17, 2024
e12284e
chore(deps): update poetry-deps (#562)
renovate[bot] Sep 18, 2024
92c077a
Release 1.0.67
myakove Sep 18, 2024
22b48ff
chore(deps): update poetry-deps (#563)
renovate[bot] Sep 19, 2024
053b9b2
update poetry
myakove Sep 19, 2024
386ffd2
chore(deps): update poetry-deps (#564)
renovate[bot] Sep 21, 2024
d7471a2
feat(github_api): refactor size label calculation (#565)
myakove Sep 22, 2024
cfd8e5f
chore(deps): update poetry-deps (#567)
renovate[bot] Sep 22, 2024
c97b04d
chore(deps): update poetry-deps (#569)
renovate[bot] Sep 24, 2024
8655a59
[pre-commit.ci] pre-commit autoupdate (#568)
pre-commit-ci[bot] Sep 24, 2024
2d96524
Add simple test for `get_size` (#570)
myakove Sep 26, 2024
06580f0
chore(deps): update poetry-deps (#572)
renovate[bot] Sep 26, 2024
b5afdf7
chore(deps): update poetry-deps (#573)
renovate[bot] Sep 28, 2024
f2927c2
remove k3d from dockerfile
myakove Sep 28, 2024
08206cc
Set PR as auto-merge when commiter is part of auth-merged users (#574)
myakove Sep 30, 2024
d932185
fix pre-commit mypy exlude regex
myakove Sep 30, 2024
f56809b
[pre-commit.ci] pre-commit autoupdate (#576)
pre-commit-ci[bot] Oct 1, 2024
d35dc79
Release 1.0.68
myakove Oct 1, 2024
bf9bb90
chore(deps): update poetry-deps (#577)
renovate[bot] Oct 1, 2024
9b4958a
chore(deps): update poetry-deps (#578)
renovate[bot] Oct 6, 2024
841b14e
[pre-commit.ci] pre-commit autoupdate (#581)
pre-commit-ci[bot] Oct 8, 2024
575aea3
Run check if can be merged when hold label is add/removed (#582)
myakove Oct 8, 2024
4620885
check if pr is already set to auto merge before enable (#586)
myakove Oct 8, 2024
57be48d
use `uv` instead of `poetry` (#579)
myakove Oct 9, 2024
2b1a517
remove poetry.lock
myakove Oct 9, 2024
ca09384
Add YAML $schema file
myakove Oct 12, 2024
06dcab2
Add YAML $schema file to example config
myakove Oct 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/build.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ dmypy.json
cython_debug/

# App
config.yaml
/config.yaml
docker-compose.yaml
github-webhook-server.json
config-dev.yaml
/config-dev.yaml
local-run.sh
.scannerwork/
webhook-server.private-key.pem
log-colors.json
92 changes: 50 additions & 42 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,59 @@
---
default_language_version:
python: python3
python: python3

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: mixed-line-ending
- id: debug-statements
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
- id: end-of-file-fixer
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-toml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: mixed-line-ending
- id: debug-statements
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
- id: end-of-file-fixer
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-toml

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--config=.flake8]
additional_dependencies: [git+https://github.com/RedHatQE/flake8-plugins.git, flake8-mutable]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args: [--config=.flake8]
additional_dependencies:
[git+https://github.com/RedHatQE/flake8-plugins.git, flake8-mutable]

- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.2
hooks:
- id: gitleaks
- repo: https://github.com/gitleaks/gitleaks
rev: v8.20.0
hooks:
- id: gitleaks

- repo: https://github.com/iamthefij/docker-pre-commit
rev: v3.0.1
hooks:
- id: docker-compose-check
- repo: https://github.com/iamthefij/docker-pre-commit
rev: v3.0.1
hooks:
- id: docker-compose-check

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
exclude: (tests/)
additional_dependencies: [types-requests, types-PyYAML]
53 changes: 42 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,48 @@
FROM quay.io/podman/stable:latest
EXPOSE 5000

RUN dnf -y update \
&& dnf -y install python3.8 python3.9 python3.10 python3.11 python3.12 python3-pip git hub unzip libcurl-devel \
RUN dnf -y install dnf-plugins-core \
&& dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
&& dnf -y update \
&& dnf -y install python3.8 \
python3.9 \
python3.10 \
python3.11 \
python3.12 \
python3-pip \
git \
hub \
unzip \
libcurl-devel \
gcc \
python3-devel \
libffi-devel \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin \
&& dnf clean all \
&& rm -rf /var/cache /var/log/dnf* /var/log/yum.*

ENV USER_BIN_DIR="/root/.local/bin"
ENV UV_INSTALL_DIR="/root/.local"
ENV PATH="$PATH:$USER_BIN_DIR"

ENV DATA_DIR=/webhook_server
ENV APP_DIR=/github-webhook-server
ENV PATH="$USER_BIN_DIR:$PATH"

RUN mkdir -p $USER_BIN_DIR \
&& mkdir -p $DATA_DIR \
&& mkdir -p $DATA_DIR/logs \
&& mkdir -p /tmp/containers

# Download the latest uv installer
RUN curl -sSL https://astral.sh/uv/install.sh -o /tmp/uv-installer.sh \
&& sh /tmp/uv-installer.sh \
&& rm /tmp/uv-installer.sh

RUN set -x \
&& curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash \
&& curl https://mirror.openshift.com/pub/openshift-v4/clients/rosa/latest/rosa-linux.tar.gz --output /tmp/rosa-linux.tar.gz \
&& tar xvf /tmp/rosa-linux.tar.gz --no-same-owner \
&& mv rosa $USER_BIN_DIR/rosa \
Expand All @@ -29,15 +54,21 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
RUN python -m pip install --no-cache-dir pip --upgrade \
&& python -m pip install --no-cache-dir poetry tox twine pre-commit

COPY pyproject.toml poetry.lock README.md $APP_DIR/
RUN python3.8 -m ensurepip \
&& python3.9 -m ensurepip \
&& python3.10 -m ensurepip \
&& python3.11 -m ensurepip \
&& python3.12 -m ensurepip \
&& python3.8 -m pip install tox \
&& python3.9 -m pip install tox \
&& python3.10 -m pip install tox \
&& python3.11 -m pip install tox \
&& python3.12 -m pip install tox

COPY entrypoint.sh pyproject.toml uv.lock README.md $APP_DIR/
COPY webhook_server_container $APP_DIR/webhook_server_container/

WORKDIR $APP_DIR

RUN poetry config cache-dir $APP_DIR \
&& poetry config virtualenvs.in-project true \
&& poetry config installer.max-workers 10 \
&& poetry install

HEALTHCHECK CMD curl --fail http://127.0.0.1:5000/webhook_server/healthcheck || exit 1
ENTRYPOINT ["poetry", "run", "python3", "webhook_server_container/app.py"]
ENTRYPOINT ["./entrypoint.sh"]
Loading