Skip to content

Commit 6c53865

Browse files
committed
event logger insulation
1 parent a81e5df commit 6c53865

File tree

4 files changed

+213
-7
lines changed

4 files changed

+213
-7
lines changed

.github/workflows/Pipfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
gitcommitlogger = "*"
8+
requests = "*"
9+
pytz = "*"
10+
python-dateutil = "*"
11+
12+
[dev-packages]
13+
14+
[requires]
15+
python_version = "3"

.github/workflows/Pipfile.lock

+184
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/event-logger.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: log github events
22
on:
33
push:
4-
branches: [main, master]
4+
branches: [main, master, pipfile-experiment]
55
pull_request:
66
types: [opened, closed]
7-
branches: [main, master]
7+
branches: [main, master, pipfile-experiment]
88
jobs:
99
log:
1010
runs-on: ubuntu-latest
1111
env:
12+
PIPENV_PIPFILE: .github/workflows/Pipfile # so this script doesn't use the Pipfile in the root directory
1213
COMMIT_LOG_API: ${{ secrets.COMMIT_LOG_API }}
1314
GITHUB_LOGIN: ${{ github.actor }} # github login also available in github.triggering_actor, github.event.sender.login
1415
COMMITS: ${{ toJSON(github.event.commits) }}
@@ -30,11 +31,7 @@ jobs:
3031
python -m pip install --upgrade pip
3132
pip install --user pipenv
3233
pipenv --python $(which python)
33-
pipenv install pytz
34-
pipenv install python-dateutil
35-
pipenv install build
36-
pipenv install requests
37-
pipenv install gitcommitlogger
34+
pipenv install
3835
- name: Log pull request opened
3936
if: github.event_name == 'pull_request' && github.event.action == 'opened'
4037
run: |

.github/workflows/requirements.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-i https://pypi.org/simple
2+
certifi==2024.2.2; python_version >= '3.6'
3+
charset-normalizer==3.3.2; python_full_version >= '3.7.0'
4+
gitcommitlogger==1.2.5; python_version >= '3.7'
5+
idna==3.6; python_version >= '3.5'
6+
python-dateutil==2.9.0.post0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
7+
pytz==2024.1
8+
requests==2.31.0; python_version >= '3.7'
9+
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
10+
urllib3==2.2.1; python_version >= '3.8'

0 commit comments

Comments
 (0)