Skip to content

Commit

Permalink
add header to all files; update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
remico committed Nov 1, 2020
1 parent dde3044 commit 8b88642
Show file tree
Hide file tree
Showing 22 changed files with 260 additions and 6 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# actions
custom actions and helper stuff
# actions GUI

:information_source: This is rather a demo app.

Simple GUI for a very limited set of github actions.

Implemented in python and QML mostly for exploring such Github features like REST API, workflows, webhooks, etc.

Depends on PySide2 (Qt for Python) project.
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

import platform
from pathlib import Path
Expand Down Expand Up @@ -70,7 +81,7 @@ def finalize_options(self):
'gui_scripts': ['ghactions = actions_gui.main:main']
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
Expand Down
14 changes: 13 additions & 1 deletion src/actions_gui/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico
14 changes: 14 additions & 0 deletions src/actions_gui/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

from .main import main

if __name__ == '__main__':
Expand Down
11 changes: 11 additions & 0 deletions src/actions_gui/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

import sys

Expand Down
11 changes: 11 additions & 0 deletions src/actions_gui/path.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

from os import getenv
from pathlib import Path
Expand Down
12 changes: 11 additions & 1 deletion src/actions_gui/pyside2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

from PySide2.QtCore import Property as PS2Property
from PySide2.QtCore import Signal as PS2Signal
Expand Down
11 changes: 11 additions & 0 deletions src/actions_gui/rest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

import sys
from os import getenv
Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/ApplicationWindow.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/Button2.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/ButtonColumn.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import QtQuick 2.15
import QtQuick.Layouts 1.15

Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/RunsListView.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.XmlListModel 2.15
Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/Settings.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import Qt.labs.settings 1.0

Settings {
Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/WorkflowRunsDelegate.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import QtQuick 2.15
import QtQuick.Controls 2.15
import "utils.js" as Utils
Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/draft/TestDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import QtQuick 2.15
import QtQuick.Controls 2.15

Expand Down
12 changes: 12 additions & 0 deletions src/actions_gui/ui/draft/TestWindow.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/
import QtQuick 2.15
import QtQuick.Window 2.15

Expand Down
11 changes: 11 additions & 0 deletions src/actions_gui/ui/qmldir
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

module remico.ui

ApplicationWindow 1.0 ApplicationWindow.qml
Expand Down
15 changes: 14 additions & 1 deletion src/actions_gui/ui/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
function format_timestamp(datetime, format) {
/*
* This file is part of "github actions gui" project
*
* Author: Roman Gladyshev <[email protected]>
* License: MIT License
*
* SPDX-License-Identifier: MIT
* License text is available in the LICENSE file and online:
* http://www.opensource.org/licenses/MIT
*
* Copyright (c) 2020 remico
*/

function format_timestamp(datetime, format) {
if (typeof format == 'undefined') {
format = "[ ddd ] MMM dd, yyyy hh:mm:ss"
}
Expand Down
11 changes: 11 additions & 0 deletions src/actions_gui/uifactory.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

from .pyside2 import *

Expand Down
11 changes: 11 additions & 0 deletions src/actions_gui/webhooklistener.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

import hmac
import json
Expand Down
14 changes: 14 additions & 0 deletions src/actions_gui/worker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

from threading import Thread
from .pyside2 import *

Expand Down
11 changes: 11 additions & 0 deletions src/actions_gui/workflowrun.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "github actions gui" project
#
# Author: Roman Gladyshev <[email protected]>
# License: MIT License
#
# SPDX-License-Identifier: MIT
# License text is available in the LICENSE file and online:
# http://www.opensource.org/licenses/MIT
#
# Copyright (c) 2020 remico

from functools import wraps
from pathlib import Path
Expand Down

0 comments on commit 8b88642

Please sign in to comment.