aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_test.go
Commit message (Collapse)AuthorAgeFilesLines
* refactor: rename github test repository: test-github-bridge (#1256)sudoforge2024-08-251-10/+10
| | | | | | | | This change renames references to the repository used to test the github bridge from `git-bug-test-github-bridge` to `test-github-bridge`, dropping the `git-bug` prefix as it is extraneous now that it is under the `git-bug` organization. Change-Id: I5795bd39cc3b2e81774c4d9676ae5cbabfba8f1c
* core: make label a common type, in a similar fashion as for status (#1252)Michael Muré2024-08-251-3/+3
| | | This will be useful for Board, and likely code review support later
* feat: update references to the git-bug organization (#1249)sudoforge2024-08-241-21/+52
| | | | | | | | The repository was recently moved to the git-bug organization on github. This change refactors references to the repository to ensure that they use the updated owner URI. Closes: #1243 Change-Id: I799712354c6ba25cdd8b06286275850c52efe6ff
* CI: ignore spelling mistake in repo to be imported from githubMichael Muré2023-03-041-1/+1
|
* [DATALAD RUNCMD] Run codespell -wYaroslav Halchenko2023-01-231-2/+2
| | | | | | | | | | | | | | === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
* cache: fix some bugs after refactorMichael Muré2022-12-231-4/+1
|
* cache: tie up the refactor up to compilingMichael Muré2022-12-211-3/+6
|
* move bug.Status in entities/common for reuseMichael Muré2022-08-201-2/+3
|
* move {bug,identity} to /entities, move input to /commandsMichael Muré2022-08-181-2/+2
|
* entity/dag: proper base operation for simplified implementationMichael Muré2022-07-251-9/+10
| | | | | | | | - reduce boilerplace necessary to implement an operation - consolidate what an operation is in the core, which in turn pave the way for a generic cache layer mechanism - avoid the previously complex unmarshalling process - support operation metadata from the core - simplified testing
* refactor(809): eliminate need to defer CleanupTestRepos()Steve Moyer2022-06-161-2/+1
|
* bug: migrate to the DAG entity structure!Michael Muré2021-02-141-16/+11
|
* identity: PR fixesMichael Muré2021-02-141-1/+1
|
* deal with the previous changesMichael Muré2021-02-141-32/+32
|
* repo: use go-git in more places, fix pushMichael Muré2020-10-041-1/+1
|
* repository: remove tie to Bug, improved and reusable testingMichael Muré2020-06-261-1/+1
| | | | | | | | | - allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code. - generalize the memory-only and persisted Lamport clocks behind a common interface - rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily - test previously untested components with those new tests Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
* bridge: record the login used during the configure and use it as default ↵Michael Muré2020-02-231-2/+3
| | | | | | credential fix #338
* bridges: pass the context to Init for when a client build process needs itMichael Muré2020-02-151-2/+3
|
* bridges: massive refactorMichael Muré2020-02-151-2/+2
| | | | | | - automatic flag validation and warning - generalized prompt - cleanups
* auth: refactor and introduce Login and LoginPassword, salt IDsMichael Muré2020-02-121-1/+1
|
* it compiles \o/Michael Muré2020-02-081-1/+1
|
* gitlab also compileMichael Muré2020-02-081-0/+5
|
* more wipMichael Muré2020-02-081-7/+1
|
* bridge: allow to configure and pull without having set a user firstMichael Muré2019-12-251-0/+3
| | | | | | | | | | - init() only the importer or exporter as required - assign a "default user" user Id to credentials at creation if no user has been set - "bridge auth": also display the user - "bridge auth show": adapt to a potential "default user" user Id - "bridge configure": allow to run without a user set - "bridge pull": allow to run without a user set - "user adopt": replace "default user" by the actual user id when run
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-4/+11
|
* bridge/launchpad: add missing metadataamine2019-11-191-1/+1
| | | | bridge: use a specific key for origin metadata
* bridge/core: add context.Context to ImportAll and ExportAll signaturesAmine Hilaly2019-08-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bridge/core: add ImportResult objects to stream import events bridge/core: launchpad support asynchronous import bridge/github: cancellable export and import functions bridge/gitlab: cancellable export and import functions commands: bridge pull/push gracefull kill bridge/github: fix github import bridge/github: use simple context for imports bridge/core: name parameters in interfaces github/core: Add EventError to export and import events types bridge/gitlab: add context support in gitlab requests functions bridge/gitlab: remove imported events count from importer logic bridge/github: remove imported events count from importer logic bridge/github: add context support in query and muration requets bridge/github: fix bug duplicate editions after multiple calls bridge/core: import import and export events String methods bridge/gitlab: fix error handling in note import events commands/bridge: Add statistics about imports and exports bridge/gitlab: properly handle context cancellation bridge/github: improve error handling bridge: break iterators on context cancel or timeout bridge: add context timeout support bridge: improve event formating and error handling commands: handle interrupt and switch cases bridge/github: add export mutation timeouts bridge: fix race condition bug in the github and gitlab importers bridge/github: improve context error handling
* [bridge/github] cache user tokenAmine Hilaly2019-06-241-1/+1
| | | | | | | | fix import typo init tests verify issue
* rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKENAmine Hilaly2019-06-071-2/+2
|
* Change keyUser to keyOwner in Github bridgeAmine Hilaly2019-05-291-3/+3
|
* repo: refactor how test repo are created/cleanedMichael Muré2019-05-271-2/+3
|
* introduce `nextValidIssueEdit` and `nextValidCommentEdit` to escape empty ↵Amine Hilaly2019-05-231-1/+1
| | | | | | `Diff`objects calling nextValidEdit functions directly after a new query (Fixing a bug where capacity=2)
* Add unicode control characters test caseAmine Hilaly2019-05-051-17/+27
| | | | | | | | | | | Move `cleanupText` to utils/text/transform.go `text.Cleanup`: removing unicode control characters except for those allowed by `text.Safe` Add golang.org/x/text dependencies fix text.Cleanup Fix import panic
* Add old importer comments in the iteratorAmine Hilaly2019-05-051-10/+17
| | | | | Test operation authors Fix typo in test repo url
* github: simplify and improve the import testMichael Muré2019-05-051-58/+25
|
* Improve naming and functions signaturesAmine Hilaly2019-05-051-79/+69
| | | | | | expose `NewIterator` in `github` package remove `exist` in tests cases skip tests when env var GITHUB_TOKEN is not given
* Add importer testsAmine Hilaly2019-05-051-0/+223
Changes to Importer and exporter interface Improve importer Fix extra edits bug