196 Commits

Author SHA1 Message Date
Philip Gai
8d10c36b44 feat: add --batch-size flag to push refs in batches (#173)
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
licenses check / licensed check (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
Close inactive issues / close-issues (push) Has been cancelled
* feat: add --batch-size flag to push refs in batches

Add support for pushing refs in smaller batches to avoid server-side
limits and timeouts when syncing large repositories with many tags/branches.

- Add --batch-size flag (default 0 = no batching, original behavior)
- Add References() method to GitRepository interface
- Implement collectRefs() and pushRefsInBatches() helpers
- Add MinBatchSize validation (must be 0 or >= 10)

This addresses issues where repositories with 1000+ refs fail to sync
to GHES with 'command error on refs/heads/<branch>: failed' errors.

* test: add tests for batch-size flag and push batching functionality

* fix: pin tool dependencies to versions compatible with Go 1.21

* ci: fix docker compose v2 syntax and update setup-ruby action

* refactor: address PR review feedback

- Remove unused RefInfo struct from git.go
- Remove redundant pushedAny variable tracking in pushRefsInBatches
- Remove incomplete TestPushRefsInBatches_PartialUpToDate test (already covered by existing test case)

* docs: add --batch-size flag to README
v202601271539
2026-01-27 15:19:55 -06:00
Philip Gai
e809e36ab5 chore: update CODEOWNERS with active teams (#174) 2026-01-27 15:17:06 -06:00
Francesco Renzi
b87b406210 Merge pull request #169 from boxofyellow/patch-1
Update contribution note in README.md
2025-09-15 10:21:27 +02:00
boxofyellow
766ee9a4e6 Update contribution note in README.md
Clarified the status of contributions to the GitHub action and provided guidance on following the public roadmap for updates.
2025-09-05 16:10:19 -04:00
Ben De St Paer-Gotch
350af00459 Merge pull request #166 from actions/nebuk89-patch-1
Update README.md
2025-06-09 18:20:10 +01:00
Ben De St Paer-Gotch
6f241797e1 Update README.md 2025-06-06 11:51:27 +01:00
Shawn Hartsell
9141ea72f2 Merge pull request #126 from actions/dependabot/github_actions/ruby/setup-ruby-1.174.0
Bump ruby/setup-ruby from 1.173.0 to 1.174.0
2024-04-25 10:33:50 -05:00
Shawn Hartsell
6df9de5468 Merge pull request #125 from actions/dependabot/github_actions/actions/stale-9
Bump actions/stale from 5 to 9
2024-04-25 10:33:24 -05:00
Shawn Hartsell
206dd07aca Merge pull request #127 from actions/sh/cgo_0
Some checks failed
goreleaser / goreleaser (push) Has been cancelled
Explicitly set CGO_ENABLED=0
v202404231422
2024-04-23 14:19:39 -05:00
Shawn Hartsell
dc02275ad7 fixing typo 2024-04-23 11:21:44 -05:00
Shawn Hartsell
e6d6bca5cc simplifying goreleaser config. explicitly set CGO_ENABLED=0 2024-04-23 11:05:23 -05:00
dependabot[bot]
19a0a6e383 Bump ruby/setup-ruby from 1.173.0 to 1.174.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.173.0 to 1.174.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](5f19ec79ce...6bd3d993c6)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 20:22:05 +00:00
dependabot[bot]
fe7ea535a8 Bump actions/stale from 5 to 9
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 20:22:03 +00:00
Shawn Hartsell
17ffd6eca4 Merge pull request #123 from actions/dependabot/go_modules/golang.org/x/net-0.23.0
Bump golang.org/x/net from 0.22.0 to 0.23.0
2024-04-22 09:41:32 -05:00
Shawn Hartsell
170aaa216c Merge pull request #122 from actions/dependabot/github_actions/goreleaser/goreleaser-action-f09f1a7bee7ae6b5153daf4e8c63cc8ce8c7e7d5
Bump goreleaser/goreleaser-action from 9937f9bad91e089c6c6fe1d43dfa7b896ad6da21 to f09f1a7bee7ae6b5153daf4e8c63cc8ce8c7e7d5
2024-04-22 09:12:35 -05:00
Shawn Hartsell
3f87ce728d Merge pull request #124 from actions/dependabot/go_modules/golang.org/x/net-0.23.0-licenses
License updates for dependabot/go_modules/golang.org/x/net-0.23.0
2024-04-22 09:10:53 -05:00
licensed-ci
8f29ed31f6 Auto-update license files 2024-04-19 13:27:39 +00:00
dependabot[bot]
98e0fe33bf Bump golang.org/x/net from 0.22.0 to 0.23.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 13:26:21 +00:00
Shawn Hartsell
10589ff6ff Merge pull request #121 from actions/susanzhang27-patch-1
Create close-stale-issues.yml
2024-04-18 10:08:50 -05:00
dependabot[bot]
bc23fd2876 Bump goreleaser/goreleaser-action
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 9937f9bad91e089c6c6fe1d43dfa7b896ad6da21 to f09f1a7bee7ae6b5153daf4e8c63cc8ce8c7e7d5.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](9937f9bad9...f09f1a7bee)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 20:42:03 +00:00
Susan Zhang
0e4f1b0152 Merge pull request #118 from actions/dependabot/go_modules/golang.org/x/oauth2-0.19.0
Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0
2024-04-09 14:11:06 -07:00
Susan Zhang
8003ecae4b Create close-stale-issues.yml 2024-04-09 13:07:09 -07:00
Susan Zhang
02ac40391b Merge pull request #119 from actions/dependabot/go_modules/golang.org/x/oauth2-0.19.0-licenses
License updates for dependabot/go_modules/golang.org/x/oauth2-0.19.0
2024-04-08 17:20:57 -07:00
Susan Zhang
a55f3d6117 Merge pull request #120 from actions/dependabot/github_actions/goreleaser/goreleaser-action-9937f9bad91e089c6c6fe1d43dfa7b896ad6da21
Bump goreleaser/goreleaser-action from c21f56a7bc891b5f73bec61233c4102ef8273150 to 9937f9bad91e089c6c6fe1d43dfa7b896ad6da21
2024-04-08 17:20:40 -07:00
dependabot[bot]
0b993e4035 Bump goreleaser/goreleaser-action
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from c21f56a7bc891b5f73bec61233c4102ef8273150 to 9937f9bad91e089c6c6fe1d43dfa7b896ad6da21.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](c21f56a7bc...9937f9bad9)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 20:35:50 +00:00
licensed-ci
5cb887292d Auto-update license files 2024-04-08 20:20:42 +00:00
dependabot[bot]
bcaaa755fb Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 20:19:17 +00:00
Shawn Hartsell
cd1939e72d Merge pull request #117 from actions/sh/fix-test-flake
Fix flakey E2E tests
2024-04-08 09:35:25 -05:00
Shawn Hartsell
ea5bded901 refactoring test script to use ps instead of lsof when checking for git daemon 2024-04-05 13:03:43 -05:00
Shawn Hartsell
11bc18f47a Merge pull request #107 from bhundven/filter_comments
Some checks failed
goreleaser / goreleaser (push) Has been cancelled
Filter comments in the list file as well as empty lines.
v202404051308
2024-04-05 13:01:23 -05:00
Shawn Hartsell
09d0eed117 checking that the git daemons are set up before running integration tests 2024-04-05 12:51:58 -05:00
Shawn Hartsell
23ff827d24 formatting test-build 2024-04-05 12:50:29 -05:00
Bryan Hundven
67d84229a3 Filter comments in the list file as well as empty lines.
It's handy to have comments in the list file so that you describe to
other teams that may have different destination repos where to put
actions to sync.

closes #106

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2024-04-04 12:40:48 -07:00
Shawn Hartsell
4e4319202b Merge pull request #115 from actions/dependabot/go_modules/github.com/go-git/go-git/v5-5.12.0
Bump github.com/go-git/go-git/v5 from 5.11.0 to 5.12.0
2024-04-04 14:31:19 -05:00
Shawn Hartsell
8216488f08 running licensed cache command 2024-04-04 14:26:39 -05:00
dependabot[bot]
81d347b257 Bump github.com/go-git/go-git/v5 from 5.11.0 to 5.12.0
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.11.0 to 5.12.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.11.0...v5.12.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-04 19:22:39 +00:00
Shawn Hartsell
87de1e31a2 Merge pull request #108 from actions/dependabot/go_modules/github.com/stretchr/testify-1.9.0
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
2024-04-04 14:09:43 -05:00
Shawn Hartsell
3281952099 Merge branch 'main' into dependabot/go_modules/github.com/stretchr/testify-1.9.0 2024-04-04 14:07:30 -05:00
Shawn Hartsell
15c13d6241 Merge pull request #113 from actions/dependabot/github_actions/goreleaser/goreleaser-action-c21f56a7bc891b5f73bec61233c4102ef8273150
Bump goreleaser/goreleaser-action from 696b757ee8f3742e68b261173b9eeeb96306a57f to c21f56a7bc891b5f73bec61233c4102ef8273150
2024-04-04 14:03:32 -05:00
Shawn Hartsell
81bc5489b9 Merge pull request #109 from actions/dependabot/go_modules/golang.org/x/oauth2-0.18.0
Bump golang.org/x/oauth2 from 0.17.0 to 0.18.0
2024-04-04 13:50:15 -05:00
Shawn Hartsell
0943db01e6 Merge pull request #110 from actions/dependabot/go_modules/golang.org/x/oauth2-0.18.0-licenses
License updates for dependabot/go_modules/golang.org/x/oauth2-0.18.0
2024-04-04 13:46:32 -05:00
Shawn Hartsell
e8902ce792 Merge pull request #112 from actions/dependabot/github_actions/ruby/setup-ruby-1.173.0
Bump ruby/setup-ruby from 1.172.0 to 1.173.0
2024-04-04 13:37:36 -05:00
Shawn Hartsell
2a58084d83 Merge pull request #111 from actions/dependabot/go_modules/google.golang.org/protobuf-1.33.0
Bump google.golang.org/protobuf from 1.31.0 to 1.33.0
2024-04-04 13:36:06 -05:00
dependabot[bot]
4a955b56ad Bump goreleaser/goreleaser-action
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 696b757ee8f3742e68b261173b9eeeb96306a57f to c21f56a7bc891b5f73bec61233c4102ef8273150.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](696b757ee8...c21f56a7bc)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 20:30:01 +00:00
dependabot[bot]
ede2273643 Bump ruby/setup-ruby from 1.172.0 to 1.173.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.172.0 to 1.173.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](d4526a5553...5f19ec79ce)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 20:29:57 +00:00
dependabot[bot]
bbb3ac388b Bump google.golang.org/protobuf from 1.31.0 to 1.33.0
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 23:18:53 +00:00
licensed-ci
9f4fb3fbda Auto-update license files 2024-03-11 20:59:10 +00:00
dependabot[bot]
17ba369b37 Bump golang.org/x/oauth2 from 0.17.0 to 0.18.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11 20:57:51 +00:00
dependabot[bot]
3e5210b7a1 Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 20:44:40 +00:00
Eric Ostrowski
652e420618 Merge pull request #104 from actions/dependabot/github_actions/ruby/setup-ruby-1.172.0
Bump ruby/setup-ruby from 1.171.0 to 1.172.0
2024-02-29 16:54:11 -06:00