Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1a80c9b
Bump the actions group with 4 updates
dependabot[bot] Sep 8, 2025
436471d
Initial plan
Copilot Sep 9, 2025
8d31b53
Add sync-back automation for Dependabot action version updates
Copilot Sep 10, 2025
f77ed60
Improve sync-back automation with automatic action detection, comment…
Copilot Sep 10, 2025
5d79536
Remove regular workflow file updates from sync-back script
Copilot Sep 10, 2025
f537110
Add sync-back script execution to rebuild workflow
Copilot Sep 10, 2025
d9bc711
Rename script for consistency
henrymercer Sep 10, 2025
d08f929
Run test script in CI
henrymercer Sep 10, 2025
cde0d79
Run sync back script separately
henrymercer Sep 10, 2025
1343eba
Remove unused imports
henrymercer Sep 10, 2025
d0f02ad
Simplify import
henrymercer Sep 10, 2025
c9d2739
Use more generic regexp for `sync.py` changes
henrymercer Sep 10, 2025
5df1d6e
Remove redundant check
henrymercer Sep 22, 2025
ee37081
Remove docs about sync back workflow
henrymercer Sep 22, 2025
5065ea8
Improve comment
henrymercer Sep 22, 2025
86ed211
Note limitation of looking for `uses: ` in pattern
henrymercer Sep 22, 2025
bb07e07
Remove trailing whitespace
henrymercer Sep 22, 2025
8df0043
Remove half baked dry run functionality
henrymercer Sep 22, 2025
fbe415d
Remove misleading test case
henrymercer Sep 22, 2025
d9ad6a3
Error if `sync.py` not found
henrymercer Sep 22, 2025
e9d7b2d
Remove unnecessary test cases
henrymercer Sep 22, 2025
2885255
Only sync back versions on Dependabot update PRs
henrymercer Sep 23, 2025
c656a25
Merge pull request #3094 from github/copilot/stack-pr-3088
henrymercer Sep 23, 2025
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
Prev Previous commit
Next Next commit
Rename script for consistency
  • Loading branch information
henrymercer committed Sep 10, 2025
commit d9bc711b1c9fe8f539aa0d1ae7e5e82fd807cf63
2 changes: 1 addition & 1 deletion .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
cd pr-checks
python -m pip install --upgrade pip
pip install ruamel.yaml==0.17.31
python3 sync-back.py
python3 sync_back.py
python3 sync.py

- name: "Merge in progress: Finish merge and push"
Expand Down
4 changes: 2 additions & 2 deletions pr-checks/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ To sync action versions from generated workflows back to source templates:

```bash
# Dry run to see what would be changed
python3 pr-checks/sync-back.py --dry-run --verbose
python3 pr-checks/sync_back.py --dry-run --verbose

# Actually apply the changes
python3 pr-checks/sync-back.py
python3 pr-checks/sync_back.py
```

The sync-back script automatically updates:
Expand Down
File renamed without changes.
10 changes: 4 additions & 6 deletions pr-checks/test_sync_back.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
#!/usr/bin/env python3
"""
Tests for the sync-back.py script
Tests for the sync_back.py script
"""

import os
import tempfile
import shutil
import unittest
from pathlib import Path
from unittest.mock import patch
import sys
import tempfile
import unittest

# Add the current directory to sys.path and import the sync_back module
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

# Import the sync-back module
import importlib.util
spec = importlib.util.spec_from_file_location("sync_back", os.path.join(os.path.dirname(__file__), "sync-back.py"))
spec = importlib.util.spec_from_file_location("sync_back", os.path.join(os.path.dirname(__file__), "sync_back.py"))
sync_back = importlib.util.module_from_spec(spec)
spec.loader.exec_module(sync_back)

Expand Down