Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure GraphQL Peloton update script #16

Merged
merged 31 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fed0aa8
New update script using all GraphQL via sgqlc.
trexfeathers Nov 28, 2023
a0d1b1a
Shebang.
trexfeathers Dec 8, 2023
6ffb199
Docstrings and type hints.
trexfeathers Dec 8, 2023
d845ebe
Coding standards.
trexfeathers Dec 8, 2023
2649919
Reference new script in GHA.
trexfeathers Dec 8, 2023
cb067d9
Add supporting schema and update instructions.
trexfeathers Dec 8, 2023
0c8a3f6
Remove old files.
trexfeathers Dec 8, 2023
1187941
Top level docstring.
trexfeathers Dec 8, 2023
e4252c4
Record project settings in a MD file.
trexfeathers Dec 8, 2023
1a585f8
Merge remote-tracking branch 'upstream/main' into new_peloton
trexfeathers Dec 8, 2023
187966a
Rename debug to verbose.
trexfeathers Dec 11, 2023
79356fe
Demonstrate GHA.
trexfeathers Dec 12, 2023
2b63802
Remove pygithub from dependencies.
trexfeathers Dec 12, 2023
0d37bfe
Demonstrate GHA.
trexfeathers Dec 12, 2023
72049a1
Demonstrate GHA.
trexfeathers Dec 12, 2023
2ede920
Correct invocation of update_loop_minutes.
trexfeathers Dec 12, 2023
47dc253
Default for update_loop_minutes.
trexfeathers Dec 12, 2023
4f84a5c
Avoid rate limiting from GitHub.
trexfeathers Dec 12, 2023
849e2a7
Revert "Demonstrate GHA."
trexfeathers Dec 12, 2023
1cc8011
Revert "Demonstrate GHA."
trexfeathers Dec 12, 2023
703a758
Revert "Demonstrate GHA."
trexfeathers Dec 12, 2023
6ee4342
Demonstrate GHA.
trexfeathers Dec 12, 2023
8e4c483
Restore defaulting of update_loop_minutes.
trexfeathers Dec 12, 2023
7372354
Revert "Demonstrate GHA."
trexfeathers Dec 12, 2023
ba3089d
Use curly braces for parameter expansion.
trexfeathers Dec 14, 2023
2faf260
Use curly braces for parameter expansion.
trexfeathers Dec 14, 2023
65ed1b3
Move some strings to constants.
trexfeathers Dec 14, 2023
888860a
Better string formatting.
trexfeathers Dec 14, 2023
2b4dd92
Comment about negating GH search syntax.
trexfeathers Dec 14, 2023
e311cc1
Convenience for converting dt to date strings.
trexfeathers Dec 14, 2023
aff11f2
Make mutation result a read-only property.
trexfeathers Dec 14, 2023
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
26 changes: 17 additions & 9 deletions .github/workflows/peloton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Peloton
on:
schedule:
- cron: "50 02 * * *"
workflow_dispatch:
inputs:
update_loop_minutes:
description: "Number of minutes to keep updating for, after full refresh."
required: true
default: 0

jobs:
update_peloton_project:
Expand All @@ -27,12 +33,14 @@ jobs:
- name: "Set up environment"
run: conda install -c conda-forge --file peloton/requirements.txt

- name: "Query GitHub"
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: $CONDA/bin/python peloton/query.py

- name: "Populate Peloton Project"
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: $CONDA/bin/python peloton/populate.py
- name: "Update the Peloton Project"
run: |
if [ -z "${{ github.event.inputs.update_loop_minutes }}" ]; then
update_loop_minutes=0
else
update_loop_minutes=${{ github.event.inputs.update_loop_minutes }}
fi
$CONDA/bin/python peloton/update_project.py \
--verbose \
--bearer_token "${{ steps.generate_token.outputs.token }}" \
bjlittle marked this conversation as resolved.
Show resolved Hide resolved
-- update_loop_minutes $update_loop_minutes
1 change: 0 additions & 1 deletion peloton/.gitignore

This file was deleted.

67 changes: 0 additions & 67 deletions peloton/common.py

This file was deleted.

Loading