diff --git a/.github/scripts/vacuum.py b/.github/scripts/vacuum.py index f926fb4..511efca 100644 --- a/.github/scripts/vacuum.py +++ b/.github/scripts/vacuum.py @@ -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 = {} diff --git a/.github/workflows/vacuum.yml b/.github/workflows/vacuum.yml index cf5172c..4ecaa0f 100644 --- a/.github/workflows/vacuum.yml +++ b/.github/workflows/vacuum.yml @@ -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