modify PAT in vacuum.yml workflow and change organization reference as well as time window of searched events

This commit is contained in:
jessiebroke 2023-11-29 21:56:44 -05:00
parent 84c911879f
commit 18393eb80b
No known key found for this signature in database
GPG Key ID: D901DC638A938F8C
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ from datetime import datetime, timedelta
# Replace with your GitHub username, organization, and personal access token
username = "JessieBroke"
organization = "TheBasedmint"
organization = "codex-storage"
token = os.getenv("GH_PAT")
# GitHub API endpoint for listing repositories in the organization
@ -18,8 +18,8 @@ repositories_data = response.json()
# Extract repository names from the response
repositories = [repo["name"] for repo in repositories_data]
# Calculate the datetime 48 hours ago from now
time_threshold = datetime.utcnow() - timedelta(hours=48)
# Calculate the datetime 72 hours ago from now
time_threshold = datetime.utcnow() - timedelta(hours=72)
# Create a dictionary to store unique issues based on the combination of issue URL and label name
unique_issues = {}

View File

@ -27,7 +27,7 @@ jobs:
run: |
python .github/scripts/vacuum.py
env:
GH_PAT: ${{ secrets.GH_PAT }}
GH_PAT: ${{ secrets.SYNC_LABELS2 }}
working-directory: ${{ github.workspace }}
- name: Upload issue events as artifact