You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2022/05/23 04:56:53 UTC
[incubator-devlake] branch main updated: feat: add go header and other golint check (#1940)
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 22395871 feat: add go header and other golint check (#1940)
22395871 is described below
commit 22395871cb0b87f54e9d6f2835695bd5b69aa23d
Author: likyh <l...@likyh.com>
AuthorDate: Mon May 23 12:56:49 2022 +0800
feat: add go header and other golint check (#1940)
* feat: add go header and other golint check
* feat: replace package name for apache
* fix: fix some go lint bug
* feat: append apache header
* fix: try to fix golangci-lint bug
Co-authored-by: linyh <ya...@meri.co>
---
.github/workflows/golangci-lint.yml | 5 +-
.golangci-goheader.template | 14 +++++
.golangci.yaml | 65 ++++++++++++++++++++++
Dockerfile | 15 +++++
Makefile | 19 ++++++-
api/api.go | 22 +++++++-
api/blueprints/blueprints.go | 23 +++++++-
api/domainlayer/repos.go | 21 ++++++-
api/ping/ping.go | 17 ++++++
api/pipelines/pipelines.go | 23 +++++++-
api/push/push.go | 21 ++++++-
api/router.go | 37 ++++++++----
api/shared/api_output.go | 21 ++++++-
api/task/task.go | 21 ++++++-
api/version/version.go | 19 ++++++-
.../fixtures/new-gitextractor-pipeline-tasks.json | 2 +-
.../fixtures/new-gitextractor-pipeline.json | 2 +-
config-ui/cypress/fixtures/pipelines.json | 4 +-
.../integration/1-application/navbar.spec.js | 2 +-
.../integration/3-pipelines/create-new.spec.js | 2 +-
config-ui/src/components/Nav.jsx | 2 +-
.../src/components/Sidebar/MenuConfiguration.jsx | 2 +-
config-ui/src/components/Sidebar/SidebarMenu.jsx | 4 +-
.../src/components/pipelines/ProviderSettings.jsx | 2 +-
.../data/pipeline-config-samples/gitextractor.js | 2 +-
config-ui/src/index-production.html | 2 +-
config-ui/src/pages/offline/index.jsx | 4 +-
config-ui/src/pages/pipelines/create.jsx | 6 +-
config-ui/src/pages/triggers/index.jsx | 2 +-
config/config.go | 17 ++++++
devops/lake-builder/Dockerfile | 16 ++++++
docker-compose-temporal.yml | 15 +++++
docker-compose.yml | 15 +++++
e2e/config.go | 17 ++++++
e2e/database.go | 17 ++++++
e2e/domain_board_issues_test.go | 19 ++++++-
e2e/domain_board_sprints_test.go | 19 ++++++-
e2e/domain_boards_test.go | 19 ++++++-
e2e/domain_builds_test.go | 19 ++++++-
e2e/domain_changelogs_test.go | 19 ++++++-
e2e/domain_commits_test.go | 19 ++++++-
e2e/domain_issue_asignee_history_test.go | 19 ++++++-
e2e/domain_issue_sprints_history_test.go | 19 ++++++-
e2e/domain_issue_status_history_test.go | 19 ++++++-
e2e/domain_issues_test.go | 19 ++++++-
e2e/domain_jobs_test.go | 17 ++++++
e2e/domain_notes_test.go | 19 ++++++-
e2e/domain_prs_test.go | 19 ++++++-
e2e/domain_repo_commits_test.go | 17 ++++++
e2e/domain_repos_test.go | 17 ++++++
e2e/domain_sprint_issues_test.go | 17 ++++++
e2e/domain_sprints_test.go | 17 ++++++
e2e/domain_users_test.go | 17 ++++++
e2e/domain_worklogs_test.go | 17 ++++++
e2e/github_commits_test.go | 17 ++++++
e2e/github_issue_comments_test.go | 17 ++++++
e2e/github_issue_events_test.go | 17 ++++++
e2e/github_issue_labels.go | 17 ++++++
e2e/github_issues_label_issue_test.go | 17 ++++++
e2e/github_issues_test.go | 17 ++++++
e2e/github_pull_request_comments_test.go | 17 ++++++
...ithub_pull_request_commit_pull_requests_test.go | 17 ++++++
e2e/github_pull_request_commits_test.go | 17 ++++++
e2e/github_pull_requests_test.go | 17 ++++++
e2e/github_repo_commits_test.go | 17 ++++++
e2e/github_repo_test.go | 17 ++++++
e2e/github_users_test.go | 17 ++++++
e2e/gitlab_commits_test.go | 17 ++++++
...ab_merge_request_commits_merge_requests_test.go | 17 ++++++
e2e/gitlab_merge_request_commits_test.go | 17 ++++++
e2e/gitlab_merge_request_notes_test.go | 17 ++++++
e2e/gitlab_mrs_test.go | 17 ++++++
e2e/gitlab_pipelines_test.go | 17 ++++++
e2e/gitlab_project_commits_test.go | 19 ++++++-
e2e/gitlab_projects_test.go | 17 ++++++
e2e/gitlab_reviewers_test.go | 17 ++++++
e2e/gitlab_users_test.go | 17 ++++++
e2e/jenkins_builds_test.go | 17 ++++++
e2e/jenkins_jobs_test.go | 17 ++++++
e2e/jira_board_issues_test.go | 17 ++++++
e2e/jira_board_sprints_test.go | 19 ++++++-
e2e/jira_boards_test.go | 17 ++++++
e2e/jira_changelog_items_test.go | 17 ++++++
e2e/jira_changelogs_test.go | 17 ++++++
e2e/jira_issues_test.go | 17 ++++++
e2e/jira_projects_test.go | 19 ++++++-
e2e/jira_remote_links_test.go | 17 ++++++
e2e/jira_sprint_issues_test.go | 17 ++++++
e2e/jira_sprints_test.go | 17 ++++++
e2e/jira_users_test.go | 17 ++++++
e2e/jira_worklogs_test.go | 17 ++++++
errors/errors.go | 17 ++++++
errors/sub_task_error.go | 17 ++++++
go.mod | 8 +--
.../DeliveryQuality(RequireJiraAndGitlabData).json | 2 +-
logger/log.go | 23 +++++++-
main.go | 21 ++++++-
migration/interface.go | 17 ++++++
migration/migrator.go | 17 ++++++
migration/models.go | 17 ++++++
models/blueprint.go | 19 ++++++-
models/common/base.go | 17 ++++++
models/domainlayer/code/commit.go | 19 ++++++-
models/domainlayer/code/commit_parent.go | 17 ++++++
models/domainlayer/code/note.go | 19 ++++++-
models/domainlayer/code/pull_request.go | 19 ++++++-
models/domainlayer/code/pull_request_comment.go | 19 ++++++-
models/domainlayer/code/pull_request_commit.go | 19 ++++++-
models/domainlayer/code/pull_request_labels.go | 19 ++++++-
models/domainlayer/code/ref.go | 19 ++++++-
models/domainlayer/code/refs_commits_diff.go | 17 ++++++
models/domainlayer/code/refs_pr_cherry_pick.go | 19 ++++++-
models/domainlayer/code/repo.go | 19 ++++++-
models/domainlayer/code/repo_commit.go | 19 ++++++-
models/domainlayer/crossdomain/board_repo.go | 17 ++++++
models/domainlayer/crossdomain/issue_commit.go | 19 ++++++-
.../domainlayer/crossdomain/issue_repo_commits.go | 19 ++++++-
.../domainlayer/crossdomain/pull_request_issue.go | 19 ++++++-
models/domainlayer/crossdomain/refs_issues_diff.go | 19 ++++++-
models/domainlayer/devops/build.go | 19 ++++++-
models/domainlayer/devops/job.go | 19 ++++++-
models/domainlayer/didgen/domain_id_generator.go | 19 ++++++-
.../domainlayer/didgen/domain_id_generator_test.go | 21 ++++++-
models/domainlayer/domainlayer.go | 19 ++++++-
models/domainlayer/ticket/board.go | 21 ++++++-
models/domainlayer/ticket/board_issue.go | 19 ++++++-
models/domainlayer/ticket/changelog.go | 19 ++++++-
models/domainlayer/ticket/issue.go | 19 ++++++-
models/domainlayer/ticket/issue_comment.go | 19 ++++++-
models/domainlayer/ticket/issue_history.go | 19 ++++++-
models/domainlayer/ticket/issue_label.go | 19 ++++++-
models/domainlayer/ticket/sprint.go | 21 ++++++-
models/domainlayer/ticket/worklog.go | 19 ++++++-
models/domainlayer/user/user.go | 19 ++++++-
models/migrationscripts/archived/base.go | 17 ++++++
models/migrationscripts/archived/blueprint.go | 17 ++++++
models/migrationscripts/archived/board.go | 17 ++++++
models/migrationscripts/archived/build.go | 17 ++++++
models/migrationscripts/archived/changelog.go | 17 ++++++
models/migrationscripts/archived/commit.go | 17 ++++++
models/migrationscripts/archived/issue.go | 23 +++++++-
models/migrationscripts/archived/issue_history.go | 17 ++++++
.../archived/issue_repo_commits.go | 17 ++++++
models/migrationscripts/archived/job.go | 17 ++++++
models/migrationscripts/archived/note.go | 17 ++++++
models/migrationscripts/archived/notification.go | 17 ++++++
models/migrationscripts/archived/pipeline.go | 17 ++++++
models/migrationscripts/archived/pull_request.go | 17 ++++++
models/migrationscripts/archived/ref.go | 17 ++++++
models/migrationscripts/archived/repo.go | 17 ++++++
models/migrationscripts/archived/sprint.go | 17 ++++++
models/migrationscripts/archived/task.go | 17 ++++++
models/migrationscripts/archived/user.go | 17 ++++++
models/migrationscripts/archived/worklog.go | 17 ++++++
models/migrationscripts/init_schema.go | 19 ++++++-
models/migrationscripts/register.go | 21 ++++++-
models/migrationscripts/updateSchemas20220505.go | 19 ++++++-
models/migrationscripts/updateSchemas20220507.go | 21 ++++++-
models/migrationscripts/updateSchemas20220510.go | 19 ++++++-
models/migrationscripts/updateSchemas20220513.go | 24 +++++++-
models/notification.go | 22 +++++++-
models/pipeline.go | 19 ++++++-
models/task.go | 19 ++++++-
plugins/ae/ae.go | 31 ++++++++---
plugins/ae/api/connection.go | 25 +++++++--
plugins/ae/models/commit.go | 19 ++++++-
plugins/ae/models/connection.go | 17 ++++++
.../ae/models/migrationscripts/archived/commit.go | 19 ++++++-
.../ae/models/migrationscripts/archived/project.go | 19 ++++++-
plugins/ae/models/migrationscripts/init_schema.go | 19 ++++++-
plugins/ae/models/project.go | 19 ++++++-
plugins/ae/tasks/api_client.go | 21 ++++++-
plugins/ae/tasks/commits_collector.go | 21 ++++++-
plugins/ae/tasks/commits_convertor.go | 23 +++++++-
plugins/ae/tasks/commits_extractor.go | 23 +++++++-
plugins/ae/tasks/project_collector.go | 21 ++++++-
plugins/ae/tasks/project_extractor.go | 23 +++++++-
plugins/ae/tasks/task_data.go | 19 ++++++-
plugins/core/hub.go | 17 ++++++
plugins/core/hub_test.go | 17 ++++++
plugins/core/logger.go | 17 ++++++
plugins/core/plugin_api.go | 17 ++++++
plugins/core/plugin_db_migration.go | 19 ++++++-
plugins/core/plugin_init.go | 17 ++++++
plugins/core/plugin_meta.go | 17 ++++++
plugins/core/plugin_task.go | 17 ++++++
plugins/core/plugin_utils.go | 17 ++++++
plugins/core/plugin_utils_test.go | 17 ++++++
plugins/dbt/dbt.go | 29 ++++++++--
plugins/dbt/tasks/convertor.go | 33 ++++++++---
plugins/dbt/tasks/task_data.go | 17 ++++++
.../apimodels/meeting_top_user_item_result.go | 17 ++++++
plugins/feishu/feishu.go | 29 ++++++++--
plugins/feishu/models/meeting_top_user_item.go | 19 ++++++-
.../archived/meeting_top_user_item.go | 19 ++++++-
.../feishu/models/migrationscripts/init_schema.go | 19 ++++++-
plugins/feishu/tasks/api_client.go | 23 +++++++-
.../tasks/meeting_top_user_item_collector.go | 30 +++++++---
.../tasks/meeting_top_user_item_extractor.go | 51 +++++++++++------
plugins/feishu/tasks/task_data.go | 22 +++++++-
plugins/gitextractor/README-zh-CN.md | 4 +-
plugins/gitextractor/README.md | 4 +-
plugins/gitextractor/gitextractor.go | 23 +++++++-
plugins/gitextractor/main.go | 29 ++++++++--
plugins/gitextractor/models/interface.go | 19 ++++++-
plugins/gitextractor/parser/clone.go | 17 ++++++
plugins/gitextractor/parser/libgit2.go | 25 +++++++--
plugins/gitextractor/store/csv.go | 19 ++++++-
plugins/gitextractor/store/csv_test.go | 19 ++++++-
plugins/gitextractor/store/database.go | 23 +++++++-
plugins/gitextractor/tasks/git_repo_collector.go | 23 +++++++-
plugins/github/api/connection.go | 25 +++++++--
plugins/github/github.go | 31 ++++++++---
plugins/github/models/commit.go | 20 ++++++-
plugins/github/models/commit_stats.go | 20 ++++++-
plugins/github/models/connection.go | 17 ++++++
plugins/github/models/issue.go | 19 ++++++-
plugins/github/models/issue_comment.go | 22 +++++++-
plugins/github/models/issue_event.go | 22 +++++++-
plugins/github/models/issue_label.go | 22 +++++++-
.../models/migrationscripts/archived/commit.go | 19 ++++++-
.../migrationscripts/archived/commit_stat.go | 19 ++++++-
.../models/migrationscripts/archived/issue.go | 19 ++++++-
.../migrationscripts/archived/issue_comment.go | 19 ++++++-
.../migrationscripts/archived/issue_event.go | 19 ++++++-
.../migrationscripts/archived/issue_label.go | 19 ++++++-
.../migrationscripts/archived/pull_request.go | 19 ++++++-
.../archived/pull_request_comment.go | 19 ++++++-
.../archived/pull_request_commit.go | 19 ++++++-
.../archived/pull_request_issue.go | 19 ++++++-
.../archived/pull_request_label.go | 19 ++++++-
.../models/migrationscripts/archived/repo.go | 19 ++++++-
.../migrationscripts/archived/repo_commit.go | 19 ++++++-
.../models/migrationscripts/archived/reviewer.go | 19 ++++++-
.../models/migrationscripts/archived/user.go | 19 ++++++-
.../github/models/migrationscripts/init_schema.go | 19 ++++++-
.../migrationscripts/updateSchemas20220509.go | 19 ++++++-
plugins/github/models/pr.go | 20 ++++++-
plugins/github/models/pr_comment.go | 22 +++++++-
plugins/github/models/pr_commit.go | 22 +++++++-
plugins/github/models/pr_issue.go | 19 ++++++-
plugins/github/models/pr_label.go | 22 +++++++-
plugins/github/models/repo.go | 22 +++++++-
plugins/github/models/repo_commit.go | 20 ++++++-
plugins/github/models/reviewer.go | 22 +++++++-
plugins/github/models/user.go | 22 +++++++-
plugins/github/tasks/api_client.go | 23 +++++++-
plugins/github/tasks/comment_collector.go | 23 +++++++-
plugins/github/tasks/comment_extractor.go | 25 +++++++--
plugins/github/tasks/commit_collector.go | 23 +++++++-
plugins/github/tasks/commit_convertor.go | 27 +++++++--
plugins/github/tasks/commit_extractor.go | 23 +++++++-
plugins/github/tasks/commit_stats_collector.go | 23 +++++++-
plugins/github/tasks/commit_stats_extractor.go | 23 +++++++-
plugins/github/tasks/event_collector.go | 23 +++++++-
plugins/github/tasks/event_extractor.go | 23 +++++++-
plugins/github/tasks/issue_collector.go | 23 +++++++-
plugins/github/tasks/issue_comment_convertor.go | 29 ++++++++--
plugins/github/tasks/issue_convertor.go | 29 ++++++++--
plugins/github/tasks/issue_extractor.go | 26 +++++++--
plugins/github/tasks/issue_label_convertor.go | 27 +++++++--
plugins/github/tasks/pr_collector.go | 23 +++++++-
plugins/github/tasks/pr_comment_convertor.go | 29 ++++++++--
plugins/github/tasks/pr_commit_collector.go | 23 +++++++-
plugins/github/tasks/pr_commit_convertor.go | 27 +++++++--
plugins/github/tasks/pr_commit_extractor.go | 24 ++++++--
plugins/github/tasks/pr_convertor.go | 29 ++++++++--
plugins/github/tasks/pr_extractor.go | 23 +++++++-
plugins/github/tasks/pr_issue_convertor.go | 27 +++++++--
plugins/github/tasks/pr_issue_enricher.go | 23 +++++++-
plugins/github/tasks/pr_label_convertor.go | 27 +++++++--
plugins/github/tasks/pr_review_collector.go | 23 +++++++-
plugins/github/tasks/pr_review_extractor.go | 24 ++++++--
plugins/github/tasks/repo_collector.go | 29 ++++++++--
plugins/github/tasks/repo_convertor.go | 31 ++++++++---
plugins/github/tasks/repositorie_extractor.go | 23 +++++++-
plugins/github/tasks/shared.go | 21 ++++++-
plugins/github/tasks/task_data.go | 21 ++++++-
plugins/github/tasks/user_convertor.go | 29 ++++++++--
plugins/github/utils/utils.go | 17 ++++++
plugins/github/utils/utils_test.go | 17 ++++++
plugins/gitlab/api/connection.go | 25 +++++++--
plugins/gitlab/e2e/project_test.go | 23 +++++++-
plugins/gitlab/gitlab.go | 21 ++++++-
plugins/gitlab/impl/impl.go | 31 ++++++++---
plugins/gitlab/models/commit.go | 19 ++++++-
plugins/gitlab/models/connection.go | 17 ++++++
.../models/migrationscripts/archived/commit.go | 19 ++++++-
.../migrationscripts/archived/merge_request.go | 19 ++++++-
.../archived/merge_request_comment.go | 19 ++++++-
.../archived/merge_request_commit.go | 19 ++++++-
.../archived/merge_request_note.go | 19 ++++++-
.../models/migrationscripts/archived/pipeline.go | 19 ++++++-
.../models/migrationscripts/archived/project.go | 19 ++++++-
.../migrationscripts/archived/project_commits.go | 19 ++++++-
.../models/migrationscripts/archived/reviewer.go | 19 ++++++-
.../gitlab/models/migrationscripts/archived/tag.go | 19 ++++++-
.../models/migrationscripts/archived/user.go | 19 ++++++-
.../gitlab/models/migrationscripts/init_schema.go | 19 ++++++-
.../migrationscripts/updateSchemas20220510.go | 21 ++++++-
plugins/gitlab/models/mr.go | 19 ++++++-
plugins/gitlab/models/mr_comment.go | 19 ++++++-
plugins/gitlab/models/mr_commit.go | 19 ++++++-
plugins/gitlab/models/mr_note.go | 19 ++++++-
plugins/gitlab/models/pipeline.go | 19 ++++++-
plugins/gitlab/models/project.go | 19 ++++++-
plugins/gitlab/models/project_commit.go | 19 ++++++-
plugins/gitlab/models/reviewer.go | 19 ++++++-
plugins/gitlab/models/tag.go | 19 ++++++-
plugins/gitlab/models/user.go | 19 ++++++-
plugins/gitlab/tasks/api_client.go | 23 +++++++-
plugins/gitlab/tasks/commit_collector.go | 21 ++++++-
plugins/gitlab/tasks/commit_convertor.go | 27 +++++++--
plugins/gitlab/tasks/commit_extractor.go | 23 +++++++-
plugins/gitlab/tasks/mr_collector.go | 21 ++++++-
plugins/gitlab/tasks/mr_comment_convertor.go | 29 ++++++++--
plugins/gitlab/tasks/mr_commit_collector.go | 21 ++++++-
plugins/gitlab/tasks/mr_commit_convertor.go | 27 +++++++--
plugins/gitlab/tasks/mr_commit_extractor.go | 23 +++++++-
plugins/gitlab/tasks/mr_convertor.go | 29 ++++++++--
plugins/gitlab/tasks/mr_enricher.go | 21 ++++++-
plugins/gitlab/tasks/mr_extractor.go | 23 +++++++-
plugins/gitlab/tasks/mr_note_collector.go | 21 ++++++-
plugins/gitlab/tasks/mr_note_extractor.go | 23 +++++++-
plugins/gitlab/tasks/note_convertor.go | 29 ++++++++--
plugins/gitlab/tasks/pipeline_collector.go | 21 ++++++-
plugins/gitlab/tasks/pipeline_extractor.go | 23 +++++++-
plugins/gitlab/tasks/project_collector.go | 21 ++++++-
plugins/gitlab/tasks/project_convertor.go | 29 ++++++++--
plugins/gitlab/tasks/project_extractor.go | 21 ++++++-
plugins/gitlab/tasks/shared.go | 23 +++++++-
plugins/gitlab/tasks/tag_collector.go | 21 ++++++-
plugins/gitlab/tasks/tag_extractor.go | 23 +++++++-
plugins/gitlab/tasks/task_data.go | 21 ++++++-
plugins/helper/api_async_client.go | 21 ++++++-
plugins/helper/api_async_client_test.go | 19 ++++++-
plugins/helper/api_client.go | 21 ++++++-
plugins/helper/api_client_test.go | 17 ++++++
plugins/helper/api_collector.go | 20 ++++++-
plugins/helper/api_collector_test.go | 19 ++++++-
plugins/helper/api_extractor.go | 21 ++++++-
plugins/helper/api_extractor_test.go | 17 ++++++
plugins/helper/api_ratelimit_calc.go | 17 ++++++
plugins/helper/api_rawdata.go | 19 ++++++-
plugins/helper/batch_save.go | 17 ++++++
plugins/helper/batch_save_divider.go | 17 ++++++
plugins/helper/batch_save_divider_test.go | 17 ++++++
plugins/helper/batch_save_test.go | 21 ++++++-
plugins/helper/config_util.go | 17 ++++++
plugins/helper/config_util_test.go | 20 ++++++-
plugins/helper/cst_time.go | 20 +++++++
plugins/helper/cst_time_test.go | 17 ++++++
plugins/helper/data_convertor.go | 21 ++++++-
plugins/helper/default_logger.go | 19 ++++++-
plugins/helper/default_task_context.go | 19 ++++++-
plugins/helper/default_task_logger.go | 19 ++++++-
plugins/helper/iso8601time.go | 17 ++++++
plugins/helper/iso8601time_test.go | 17 ++++++
plugins/helper/iterator.go | 17 ++++++
plugins/helper/subtask_flow_test_helper.go | 17 ++++++
plugins/helper/worker_scheduler.go | 22 +++++++-
plugins/helper/worker_scheduler_test.go | 17 ++++++
plugins/jenkins/api/connection.go | 27 +++++++--
plugins/jenkins/jenkins.go | 31 ++++++++---
plugins/jenkins/models/build.go | 19 ++++++-
plugins/jenkins/models/connection.go | 17 ++++++
plugins/jenkins/models/job.go | 19 ++++++-
.../models/migrationscripts/archived/build.go | 19 ++++++-
.../models/migrationscripts/archived/job.go | 19 ++++++-
.../jenkins/models/migrationscripts/init_schema.go | 19 ++++++-
plugins/jenkins/models/response.go | 17 ++++++
plugins/jenkins/tasks/build_collector.go | 23 +++++++-
plugins/jenkins/tasks/build_convertor.go | 29 ++++++++--
plugins/jenkins/tasks/build_extractor.go | 23 +++++++-
plugins/jenkins/tasks/client.go | 23 +++++++-
plugins/jenkins/tasks/job_collector.go | 21 ++++++-
plugins/jenkins/tasks/job_convertor.go | 29 ++++++++--
plugins/jenkins/tasks/job_extractor.go | 23 +++++++-
plugins/jenkins/tasks/task_data.go | 19 ++++++-
plugins/jira/README.md | 2 +-
plugins/jira/api/connection.go | 34 ++++++++---
plugins/jira/api/init.go | 19 ++++++-
plugins/jira/api/issue_status_mapping.go | 23 +++++++-
plugins/jira/api/issue_type_mapping.go | 23 +++++++-
plugins/jira/api/proxy.go | 23 +++++++-
plugins/jira/jira.go | 33 ++++++++---
plugins/jira/models/board.go | 19 ++++++-
plugins/jira/models/board_issue.go | 19 ++++++-
plugins/jira/models/changelog.go | 19 ++++++-
plugins/jira/models/connection.go | 19 ++++++-
plugins/jira/models/issue.go | 19 ++++++-
plugins/jira/models/issue_comment.go | 17 ++++++
plugins/jira/models/issue_commit.go | 19 ++++++-
.../jira/models/migrationscripts/archived/board.go | 19 ++++++-
.../models/migrationscripts/archived/changelog.go | 19 ++++++-
.../jira/models/migrationscripts/archived/issue.go | 19 ++++++-
.../models/migrationscripts/archived/project.go | 19 ++++++-
.../models/migrationscripts/archived/remotelink.go | 19 ++++++-
.../models/migrationscripts/archived/source.go | 19 ++++++-
.../models/migrationscripts/archived/sprint.go | 19 ++++++-
.../jira/models/migrationscripts/archived/user.go | 19 ++++++-
.../models/migrationscripts/archived/worklog.go | 19 ++++++-
.../jira/models/migrationscripts/init_schema.go | 19 ++++++-
.../migrationscripts/updateSchemas20220505.go | 23 +++++++-
.../migrationscripts/updateSchemas20220507.go | 21 ++++++-
.../migrationscripts/update_schemas20220518.go | 19 ++++++-
plugins/jira/models/project.go | 19 ++++++-
plugins/jira/models/remotelink.go | 19 ++++++-
plugins/jira/models/response_type.go | 17 ++++++
plugins/jira/models/sprint.go | 19 ++++++-
plugins/jira/models/user.go | 19 ++++++-
plugins/jira/models/worklog.go | 19 ++++++-
plugins/jira/tasks/api_client.go | 23 +++++++-
plugins/jira/tasks/apiv2models/board.go | 19 ++++++-
plugins/jira/tasks/apiv2models/changelog.go | 22 +++++++-
plugins/jira/tasks/apiv2models/input.go | 17 ++++++
plugins/jira/tasks/apiv2models/issue.go | 22 +++++++-
plugins/jira/tasks/apiv2models/project.go | 19 ++++++-
plugins/jira/tasks/apiv2models/remotelink.go | 19 ++++++-
plugins/jira/tasks/apiv2models/sprint.go | 19 ++++++-
plugins/jira/tasks/apiv2models/user.go | 19 ++++++-
plugins/jira/tasks/apiv2models/user_test.go | 17 ++++++
plugins/jira/tasks/apiv2models/worklog.go | 21 ++++++-
plugins/jira/tasks/board_collector.go | 21 ++++++-
plugins/jira/tasks/board_convertor.go | 29 ++++++++--
plugins/jira/tasks/board_extractor.go | 23 +++++++-
plugins/jira/tasks/changelog_collector.go | 25 +++++++--
plugins/jira/tasks/changelog_convertor.go | 29 ++++++++--
plugins/jira/tasks/changelog_extractor.go | 25 +++++++--
plugins/jira/tasks/issue_collector.go | 25 +++++++--
plugins/jira/tasks/issue_commit_convertor.go | 27 +++++++--
plugins/jira/tasks/issue_convertor.go | 29 ++++++++--
plugins/jira/tasks/issue_convertor_test.go | 17 ++++++
plugins/jira/tasks/issue_extractor.go | 27 +++++++--
plugins/jira/tasks/issue_repo_commit_convertor.go | 27 +++++++--
plugins/jira/tasks/project_collector.go | 21 ++++++-
plugins/jira/tasks/project_extractor.go | 23 +++++++-
plugins/jira/tasks/remotelink_collector.go | 25 +++++++--
plugins/jira/tasks/remotelink_extractor.go | 25 +++++++--
plugins/jira/tasks/shared.go | 19 ++++++-
plugins/jira/tasks/sprint_collector.go | 21 ++++++-
plugins/jira/tasks/sprint_convertor.go | 29 ++++++++--
plugins/jira/tasks/sprint_extractor.go | 25 +++++++--
plugins/jira/tasks/sprint_issues_convertor.go | 25 +++++++--
plugins/jira/tasks/task_data.go | 21 ++++++-
plugins/jira/tasks/user_collector.go | 23 +++++++-
plugins/jira/tasks/user_convertor.go | 29 ++++++++--
plugins/jira/tasks/user_extractor.go | 23 +++++++-
plugins/jira/tasks/worklog_collector.go | 23 +++++++-
plugins/jira/tasks/worklog_convertor.go | 29 ++++++++--
plugins/jira/tasks/worklog_extractor.go | 25 +++++++--
plugins/refdiff/refdiff.go | 25 +++++++--
.../refdiff/tasks/ref_commit_diff_calculator.go | 23 +++++++-
plugins/refdiff/tasks/ref_issue_diff_calculator.go | 23 +++++++-
plugins/refdiff/tasks/refdiff_task_data.go | 17 ++++++
.../tasks/refs_pr_cherry_pick_calculator.go | 21 ++++++-
plugins/refdiff/utils/commit_node_graph.go | 17 ++++++
plugins/tapd/api/connection.go | 27 +++++++--
plugins/tapd/api/init.go | 19 ++++++-
plugins/tapd/api/proxy.go | 23 +++++++-
plugins/tapd/models/bug.go | 21 ++++++-
plugins/tapd/models/bug_changelog.go | 21 ++++++-
plugins/tapd/models/bug_commit.go | 21 ++++++-
plugins/tapd/models/bug_label.go | 19 ++++++-
plugins/tapd/models/bug_status.go | 19 ++++++-
plugins/tapd/models/changelog.go | 19 ++++++-
plugins/tapd/models/connection.go | 19 ++++++-
plugins/tapd/models/issue.go | 17 ++++++
plugins/tapd/models/iteration.go | 21 ++++++-
plugins/tapd/models/iteration_bug.go | 21 ++++++-
plugins/tapd/models/iteration_story.go | 21 ++++++-
plugins/tapd/models/iteration_task.go | 21 ++++++-
.../tapd/models/migrationscripts/archived/bug.go | 21 ++++++-
.../migrationscripts/archived/bug_changelog.go | 21 ++++++-
.../models/migrationscripts/archived/bug_commit.go | 21 ++++++-
.../models/migrationscripts/archived/bug_label.go | 19 ++++++-
.../models/migrationscripts/archived/bug_status.go | 19 ++++++-
.../tapd/models/migrationscripts/archived/issue.go | 17 ++++++
.../models/migrationscripts/archived/iteration.go | 21 ++++++-
.../migrationscripts/archived/iteration_bug.go | 21 ++++++-
.../migrationscripts/archived/iteration_story.go | 21 ++++++-
.../migrationscripts/archived/iteration_task.go | 21 ++++++-
.../tapd/models/migrationscripts/archived/story.go | 21 ++++++-
.../migrationscripts/archived/story_changelog.go | 21 ++++++-
.../migrationscripts/archived/story_commits.go | 21 ++++++-
.../migrationscripts/archived/story_label.go | 19 ++++++-
.../migrationscripts/archived/story_status.go | 19 ++++++-
.../migrationscripts/archived/tapd_connection.go | 19 ++++++-
.../tapd/models/migrationscripts/archived/task.go | 21 ++++++-
.../migrationscripts/archived/task_changelog.go | 21 ++++++-
.../migrationscripts/archived/task_commits.go | 21 ++++++-
.../models/migrationscripts/archived/task_label.go | 19 ++++++-
.../tapd/models/migrationscripts/archived/user.go | 19 ++++++-
.../models/migrationscripts/archived/worklog.go | 21 ++++++-
.../models/migrationscripts/archived/workspace.go | 21 ++++++-
.../migrationscripts/archived/workspace_bug.go | 19 ++++++-
.../migrationscripts/archived/workspace_story.go | 19 ++++++-
.../migrationscripts/archived/workspace_task.go | 19 ++++++-
.../tapd/models/migrationscripts/init_schema.go | 19 ++++++-
plugins/tapd/models/story.go | 21 ++++++-
plugins/tapd/models/story_changelog.go | 22 +++++++-
plugins/tapd/models/story_commits.go | 21 ++++++-
plugins/tapd/models/story_label.go | 19 ++++++-
plugins/tapd/models/story_status.go | 19 ++++++-
plugins/tapd/models/task.go | 21 ++++++-
plugins/tapd/models/task_changelog.go | 21 ++++++-
plugins/tapd/models/task_commits.go | 21 ++++++-
plugins/tapd/models/task_label.go | 19 ++++++-
plugins/tapd/models/user.go | 19 ++++++-
plugins/tapd/models/worklog.go | 21 ++++++-
plugins/tapd/models/workspace.go | 21 ++++++-
plugins/tapd/models/workspace_bug.go | 19 ++++++-
plugins/tapd/models/workspace_story.go | 19 ++++++-
plugins/tapd/models/workspace_task.go | 19 ++++++-
plugins/tapd/tapd.go | 35 +++++++++---
plugins/tapd/tasks/api_client.go | 23 +++++++-
plugins/tapd/tasks/bug_changelog_collector.go | 23 +++++++-
plugins/tapd/tasks/bug_changelog_converter.go | 31 ++++++++---
plugins/tapd/tasks/bug_changelog_extractor.go | 23 +++++++-
plugins/tapd/tasks/bug_collector.go | 23 +++++++-
plugins/tapd/tasks/bug_commit_collector.go | 23 +++++++-
plugins/tapd/tasks/bug_commit_converter.go | 25 +++++++--
plugins/tapd/tasks/bug_commit_extractor.go | 23 +++++++-
plugins/tapd/tasks/bug_converter.go | 27 +++++++--
plugins/tapd/tasks/bug_extractor.go | 25 +++++++--
plugins/tapd/tasks/bug_label_convertor.go | 25 +++++++--
plugins/tapd/tasks/bug_status_collector.go | 21 ++++++-
plugins/tapd/tasks/bug_status_extractor.go | 23 +++++++-
.../tapd/tasks/issue_assign_history_converter.go | 25 +++++++--
.../tapd/tasks/issue_sprint_history_converter.go | 27 +++++++--
.../tapd/tasks/issue_status_history_converter.go | 25 +++++++--
plugins/tapd/tasks/iteration_collector.go | 23 +++++++-
plugins/tapd/tasks/iteration_converter.go | 29 ++++++++--
plugins/tapd/tasks/iteration_extractor.go | 23 +++++++-
plugins/tapd/tasks/iteration_issue_enricher.go | 19 ++++++-
plugins/tapd/tasks/shared.go | 25 +++++++--
plugins/tapd/tasks/story_changelog_collector.go | 23 +++++++-
plugins/tapd/tasks/story_changelog_converter.go | 31 ++++++++---
plugins/tapd/tasks/story_changelog_extractor.go | 23 +++++++-
plugins/tapd/tasks/story_collector.go | 23 +++++++-
plugins/tapd/tasks/story_commit_collector.go | 23 +++++++-
plugins/tapd/tasks/story_commit_converter.go | 25 +++++++--
plugins/tapd/tasks/story_commit_extractor.go | 23 +++++++-
plugins/tapd/tasks/story_converter.go | 27 +++++++--
plugins/tapd/tasks/story_extractor.go | 25 +++++++--
plugins/tapd/tasks/story_label_convertor.go | 25 +++++++--
plugins/tapd/tasks/story_status_collector.go | 21 ++++++-
plugins/tapd/tasks/story_status_extractor.go | 23 +++++++-
plugins/tapd/tasks/task_changelog_collector.go | 23 +++++++-
plugins/tapd/tasks/task_changelog_converter.go | 31 ++++++++---
plugins/tapd/tasks/task_changelog_extractor.go | 23 +++++++-
plugins/tapd/tasks/task_collector.go | 23 +++++++-
plugins/tapd/tasks/task_commit_collector.go | 23 +++++++-
plugins/tapd/tasks/task_commit_converter.go | 25 +++++++--
plugins/tapd/tasks/task_commit_extractor.go | 23 +++++++-
plugins/tapd/tasks/task_converter.go | 27 +++++++--
plugins/tapd/tasks/task_data.go | 21 ++++++-
plugins/tapd/tasks/task_extractor.go | 25 +++++++--
plugins/tapd/tasks/task_label_convertor.go | 25 +++++++--
plugins/tapd/tasks/user_collector.go | 21 ++++++-
plugins/tapd/tasks/user_converter.go | 27 +++++++--
plugins/tapd/tasks/user_extractor.go | 23 +++++++-
plugins/tapd/tasks/worklog_collector.go | 23 +++++++-
plugins/tapd/tasks/worklog_converter.go | 32 ++++++++---
plugins/tapd/tasks/worklog_extractor.go | 23 +++++++-
plugins/tapd/tasks/workspace_collector.go | 21 ++++++-
plugins/tapd/tasks/workspace_converter.go | 27 +++++++--
plugins/tapd/tasks/workspace_extractor.go | 23 +++++++-
releases/lake-v0.10.0-beta1/docker-compose.yml | 15 +++++
releases/lake-v0.10.0/docker-compose.yml | 15 +++++
releases/lake-v0.10.1/docker-compose.yml | 15 +++++
releases/lake-v0.7.0/docker-compose.yml | 15 +++++
releases/lake-v0.8.0/docker-compose.yml | 15 +++++
releases/lake-v0.9.0/docker-compose.yml | 15 +++++
runner/db.go | 19 ++++++-
runner/directrun.go | 28 ++++++++--
runner/loader.go | 21 ++++++-
runner/run_pipeline.go | 21 ++++++-
runner/run_task.go | 31 ++++++++---
scripts/api.sh | 16 ++++++
scripts/compile-plugins.sh | 16 ++++++
scripts/export-env.sh | 16 ++++++
scripts/pm.sh | 16 ++++++
services/blueprint.go | 23 +++++++-
services/dm_code.go | 19 ++++++-
services/init.go | 27 +++++++--
services/notification.go | 19 ++++++-
services/pipeline.go | 27 +++++++--
services/pluginapi.go | 19 ++++++-
services/pushapi.go | 17 ++++++
services/task.go | 27 +++++++--
test/api/task/task_test.go | 21 ++++++-
test/example/greetings.go | 25 +++++++--
test/example/greetings_test.go | 35 +++++++++---
testhelper/csv_file_iterator.go | 17 ++++++
testhelper/csv_file_iterator_test.go | 32 ++++++++---
testhelper/data_flow_tester.go | 37 +++++++++---
testhelper/data_flow_tester_test.go | 21 ++++++-
utils/callframes.go | 17 ++++++
utils/network_helper.go | 17 ++++++
utils/network_helper_test.go | 17 ++++++
utils/strconv.go | 17 ++++++
utils/token.go | 17 ++++++
version/version.go | 17 ++++++
worker/app/logger.go | 19 ++++++-
worker/app/pipeline_workflow.go | 19 ++++++-
worker/app/shared.go | 23 +++++++-
worker/app/task_activity.go | 23 +++++++-
worker/main.go | 27 +++++++--
609 files changed, 11213 insertions(+), 1191 deletions(-)
diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
index 23555c93..acf1580b 100644
--- a/.github/workflows/golangci-lint.yml
+++ b/.github/workflows/golangci-lint.yml
@@ -25,7 +25,4 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.43.0
- args: "--out-${NO_FUTURE}format colored-line-number --timeout=3m12s"
- skip-go-installation: true
- skip-pkg-cache: true
- skip-build-cache: true
+ args: ""
diff --git a/.golangci-goheader.template b/.golangci-goheader.template
new file mode 100644
index 00000000..1745cfe6
--- /dev/null
+++ b/.golangci-goheader.template
@@ -0,0 +1,14 @@
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/.golangci.yaml b/.golangci.yaml
new file mode 100644
index 00000000..4aa61338
--- /dev/null
+++ b/.golangci.yaml
@@ -0,0 +1,65 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# https://golangci-lint.run/usage/linters/
+linters:
+ disable-all: true
+ enable:
+ - deadcode
+ - errcheck
+ - gosimple
+ - govet
+ - ineffassign
+ - staticcheck
+ - structcheck
+ - typecheck
+ - unused
+ - varcheck
+# - exhaustive
+# - funlen
+# - goconst
+ - goheader
+# - goimports
+# - gomnd
+# - gosec
+ - importas
+# - lll
+# - misspell
+# - nestif
+# - prealloc
+# - tagliatelle
+# - revive
+# - dupl
+ - makezero
+# - stylecheck
+
+linters-settings:
+ goheader:
+ template-path: .golangci-goheader.template
+
+# Options for analysis running.
+run:
+ # The default concurrency value is the number of available CPU.
+ concurrency: 4
+ # Timeout for analysis, e.g. 30s, 5m.
+ # Default: 1m
+ timeout: 5m
+ # Exit code when at least one issue was found.
+ # Default: 1
+ issues-exit-code: 2
+ # Include test files or not.
+ # Default: true
+ tests: false
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index c79fce98..6060ac25 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
FROM mericodev/lake-builder:0.0.4 as builder
# docker build --build-arg GOPROXY=https://goproxy.io,direct -t mericodev/lake .
diff --git a/Makefile b/Makefile
index 811d1669..d662033f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
# NOTE: you have to use tabs in this file for make. Not spaces.
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/
@@ -10,10 +25,10 @@ build-plugin:
@sh scripts/compile-plugins.sh
build-worker:
- go build -ldflags "-X 'github.com/merico-dev/lake/version.Version=$(VERSION)'" -o bin/lake-worker ./worker/
+ go build -ldflags "-X 'github.com/apache/incubator-devlake/version.Version=$(VERSION)'" -o bin/lake-worker ./worker/
build-server:
- go build -ldflags "-X 'github.com/merico-dev/lake/version.Version=$(VERSION)'" -o bin/lake
+ go build -ldflags "-X 'github.com/apache/incubator-devlake/version.Version=$(VERSION)'" -o bin/lake
build: build-plugin build-server
diff --git a/api/api.go b/api/api.go
index ce5fe10d..2c664911 100644
--- a/api/api.go
+++ b/api/api.go
@@ -1,13 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package api
import (
+ _ "github.com/apache/incubator-devlake/api/docs"
"time"
- _ "github.com/merico-dev/lake/api/docs"
-
+ "github.com/apache/incubator-devlake/config"
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/config"
ginSwagger "github.com/swaggo/gin-swagger"
"github.com/swaggo/gin-swagger/swaggerFiles"
)
diff --git a/api/blueprints/blueprints.go b/api/blueprints/blueprints.go
index eb26531e..28463cb3 100644
--- a/api/blueprints/blueprints.go
+++ b/api/blueprints/blueprints.go
@@ -1,14 +1,31 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package blueprints
import (
"net/http"
"strconv"
- "github.com/merico-dev/lake/api/shared"
+ "github.com/apache/incubator-devlake/api/shared"
+ "github.com/apache/incubator-devlake/models"
+ "github.com/apache/incubator-devlake/services"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/models"
- "github.com/merico-dev/lake/services"
)
// @Summary post blueprints
diff --git a/api/domainlayer/repos.go b/api/domainlayer/repos.go
index a81fae11..5b6e88c6 100644
--- a/api/domainlayer/repos.go
+++ b/api/domainlayer/repos.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package domainlayer
import (
"net/http"
+ "github.com/apache/incubator-devlake/api/shared"
+ "github.com/apache/incubator-devlake/services"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/api/shared"
- "github.com/merico-dev/lake/services"
)
/*
diff --git a/api/ping/ping.go b/api/ping/ping.go
index 65b54576..c7a97d19 100644
--- a/api/ping/ping.go
+++ b/api/ping/ping.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ping
import (
diff --git a/api/pipelines/pipelines.go b/api/pipelines/pipelines.go
index b6e4bad2..c1c98bb5 100644
--- a/api/pipelines/pipelines.go
+++ b/api/pipelines/pipelines.go
@@ -1,14 +1,31 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package pipelines
import (
"net/http"
"strconv"
+ "github.com/apache/incubator-devlake/api/shared"
+ "github.com/apache/incubator-devlake/models"
+ "github.com/apache/incubator-devlake/services"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
- "github.com/merico-dev/lake/api/shared"
- "github.com/merico-dev/lake/models"
- "github.com/merico-dev/lake/services"
)
/*
diff --git a/api/push/push.go b/api/push/push.go
index 1428d0c7..7bfaa0e2 100644
--- a/api/push/push.go
+++ b/api/push/push.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package push
import (
"net/http"
+ "github.com/apache/incubator-devlake/api/shared"
+ "github.com/apache/incubator-devlake/services"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/api/shared"
- "github.com/merico-dev/lake/services"
)
/*
diff --git a/api/router.go b/api/router.go
index afdc28d8..70cd94eb 100644
--- a/api/router.go
+++ b/api/router.go
@@ -1,21 +1,38 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package api
import (
"fmt"
"net/http"
- "github.com/merico-dev/lake/api/blueprints"
- "github.com/merico-dev/lake/api/domainlayer"
+ "github.com/apache/incubator-devlake/api/blueprints"
+ "github.com/apache/incubator-devlake/api/domainlayer"
+ "github.com/apache/incubator-devlake/api/ping"
+ "github.com/apache/incubator-devlake/api/pipelines"
+ "github.com/apache/incubator-devlake/api/push"
+ "github.com/apache/incubator-devlake/api/shared"
+ "github.com/apache/incubator-devlake/api/task"
+ "github.com/apache/incubator-devlake/api/version"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/services"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/api/ping"
- "github.com/merico-dev/lake/api/pipelines"
- "github.com/merico-dev/lake/api/push"
- "github.com/merico-dev/lake/api/shared"
- "github.com/merico-dev/lake/api/task"
- "github.com/merico-dev/lake/api/version"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/services"
)
func RegisterRouter(r *gin.Engine) {
diff --git a/api/shared/api_output.go b/api/shared/api_output.go
index 684aa03c..8e006acd 100644
--- a/api/shared/api_output.go
+++ b/api/shared/api_output.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package shared
import (
+ "github.com/apache/incubator-devlake/errors"
+ "github.com/apache/incubator-devlake/logger"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/errors"
- "github.com/merico-dev/lake/logger"
)
type ApiBody struct {
diff --git a/api/task/task.go b/api/task/task.go
index 9a17c472..c04922bd 100644
--- a/api/task/task.go
+++ b/api/task/task.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package task
import (
"net/http"
"strconv"
+ "github.com/apache/incubator-devlake/api/shared"
+ "github.com/apache/incubator-devlake/services"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/api/shared"
- "github.com/merico-dev/lake/services"
)
/*
diff --git a/api/version/version.go b/api/version/version.go
index d1b5783a..12618574 100644
--- a/api/version/version.go
+++ b/api/version/version.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package version
import (
"net/http"
+ "github.com/apache/incubator-devlake/version"
"github.com/gin-gonic/gin"
- "github.com/merico-dev/lake/version"
)
// @Summary Get the version of lake
diff --git a/config-ui/cypress/fixtures/new-gitextractor-pipeline-tasks.json b/config-ui/cypress/fixtures/new-gitextractor-pipeline-tasks.json
index 0f6ca021..f73251d8 100644
--- a/config-ui/cypress/fixtures/new-gitextractor-pipeline-tasks.json
+++ b/config-ui/cypress/fixtures/new-gitextractor-pipeline-tasks.json
@@ -7,7 +7,7 @@
"updatedAt": "2022-03-21T20:59:17.699Z",
"plugin": "gitextractor",
"options": {
- "url": "https://github.com/merico-dev/lake.git",
+ "url": "https://github.com/apache/incubator-devlake.git",
"repoId": "github:GithubRepo:384111310"
},
"status": "TASK_FAILED",
diff --git a/config-ui/cypress/fixtures/new-gitextractor-pipeline.json b/config-ui/cypress/fixtures/new-gitextractor-pipeline.json
index 71389170..2bf669f4 100644
--- a/config-ui/cypress/fixtures/new-gitextractor-pipeline.json
+++ b/config-ui/cypress/fixtures/new-gitextractor-pipeline.json
@@ -9,7 +9,7 @@
"plugin": "gitextractor",
"options": {
"repoId": "github:GithubRepo:384111310",
- "url": "https://github.com/merico-dev/lake.git"
+ "url": "https://github.com/apache/incubator-devlake.git"
}
}
]
diff --git a/config-ui/cypress/fixtures/pipelines.json b/config-ui/cypress/fixtures/pipelines.json
index 2edac694..dbb624e7 100644
--- a/config-ui/cypress/fixtures/pipelines.json
+++ b/config-ui/cypress/fixtures/pipelines.json
@@ -229,7 +229,7 @@
{
"plugin": "gitextractor",
"options": {
- "url": "https://github.com/merico-dev/lake.git",
+ "url": "https://github.com/apache/incubator-devlake.git",
"repoId": "github:GithubRepo:384111310"
}
}
@@ -264,7 +264,7 @@
"beganAt": "2022-02-16T03:24:46.014Z",
"finishedAt": "2022-02-16T03:25:46.184Z",
"status": "TASK_FAILED",
- "message": "run task failed with panic (github.com/merico-dev/lake/utils.(*WorkerScheduler).WaitUntilFinish:87): [Error 1364: Field 'github_repo_id' doesn't have a default value\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1:71\ngithub.com/merico-dev/lake/utils.(*WorkerScheduler).Submit.func1:79 Error 1364: Field 'github_repo_id' doesn't have a default value\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1:71\ngithub.com/merico-dev/lake/utils.(*WorkerScheduler).Submit.func1 [...]
+ "message": "run task failed with panic (github.com/apache/incubator-devlake/utils.(*WorkerScheduler).WaitUntilFinish:87): [Error 1364: Field 'github_repo_id' doesn't have a default value\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1:71\ngithub.com/apache/incubator-devlake/utils.(*WorkerScheduler).Submit.func1:79 Error 1364: Field 'github_repo_id' doesn't have a default value\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1:71\ngithub.com/apache/incubator-devlake/utils.(*Wo [...]
"spentSeconds": 60
},
{
diff --git a/config-ui/cypress/integration/1-application/navbar.spec.js b/config-ui/cypress/integration/1-application/navbar.spec.js
index c05f1740..7ed22af6 100644
--- a/config-ui/cypress/integration/1-application/navbar.spec.js
+++ b/config-ui/cypress/integration/1-application/navbar.spec.js
@@ -8,7 +8,7 @@ context('Navbar', () => {
it('shows merico github icon link', () => {
cy.get('.navbar')
.should('have.class', 'bp3-navbar')
- .find('a[href="https://github.com/merico-dev/lake"]')
+ .find('a[href="https://github.com/apache/incubator-devlake"]')
.should('be.visible')
.and('have.class', 'navIconLink')
})
diff --git a/config-ui/cypress/integration/3-pipelines/create-new.spec.js b/config-ui/cypress/integration/3-pipelines/create-new.spec.js
index 8b2ec5aa..78f26bcf 100644
--- a/config-ui/cypress/integration/3-pipelines/create-new.spec.js
+++ b/config-ui/cypress/integration/3-pipelines/create-new.spec.js
@@ -184,7 +184,7 @@ context('RUN / Trigger New Pipelines', () => {
.click()
.trigger('mouseleave')
- cy.get('input#gitextractor-url').click().type('https://github.com/merico-dev/lake.git')
+ cy.get('input#gitextractor-url').click().type('https://github.com/apache/incubator-devlake.git')
cy.get('input#gitextractor-repo-id').type('github:GithubRepo:384111310')
cy.get('button#btn-run-pipeline').click()
diff --git a/config-ui/src/components/Nav.jsx b/config-ui/src/components/Nav.jsx
index ab70bd42..a650003d 100644
--- a/config-ui/src/components/Nav.jsx
+++ b/config-ui/src/components/Nav.jsx
@@ -15,7 +15,7 @@ const Nav = () => {
return (
<Navbar className='navbar'>
<Navbar.Group align={Alignment.RIGHT}>
- <a href='https://github.com/merico-dev/lake' rel='noreferrer' target='_blank' className='navIconLink'>
+ <a href='https://github.com/apache/incubator-devlake' rel='noreferrer' target='_blank' className='navIconLink'>
<Icon icon='git-branch' size={16} />
</a>
<Navbar.Divider />
diff --git a/config-ui/src/components/Sidebar/MenuConfiguration.jsx b/config-ui/src/components/Sidebar/MenuConfiguration.jsx
index af0951c3..4744cf26 100644
--- a/config-ui/src/components/Sidebar/MenuConfiguration.jsx
+++ b/config-ui/src/components/Sidebar/MenuConfiguration.jsx
@@ -105,7 +105,7 @@ const MenuConfiguration = (activeRoute) => {
// label: 'Documentation',
// icon: 'help',
// classNames: [],
- // route: 'https://github.com/merico-dev/lake/wiki',
+ // route: 'https://github.com/apache/incubator-devlake/wiki',
// target: "_blank",
// external: true,
// active: activeRoute.url === '/documentation',
diff --git a/config-ui/src/components/Sidebar/SidebarMenu.jsx b/config-ui/src/components/Sidebar/SidebarMenu.jsx
index b639b12d..c24585c8 100644
--- a/config-ui/src/components/Sidebar/SidebarMenu.jsx
+++ b/config-ui/src/components/Sidebar/SidebarMenu.jsx
@@ -55,10 +55,10 @@ const SidebarMenu = (props) => {
icon='cog' href='/lake/api/configuration'
active={top.location.href.endsWith('/lake/api/configuration')}
/> */}
- <Menu.Item text='Documentation' icon='help' href='https://github.com/merico-dev/lake/blob/main/README.md' target='_blank' />
+ <Menu.Item text='Documentation' icon='help' href='https://github.com/apache/incubator-devlake/blob/main/README.md' target='_blank' />
<Menu.Item text='Merico Network' icon='globe-network'>
<Menu.Item text='Merico GitHub' href='https://github.com/merico-dev' target='_blank' />
- <Menu.Item text='DevLake Github' href='https://github.com/merico-dev/lake' target='_blank' />
+ <Menu.Item text='DevLake Github' href='https://github.com/apache/incubator-devlake' target='_blank' />
<Menu.Item text='Merico Enterprise' href='https://meri.co/' target='_blank' />
</Menu.Item>
</Menu>
diff --git a/config-ui/src/components/pipelines/ProviderSettings.jsx b/config-ui/src/components/pipelines/ProviderSettings.jsx
index 2402f115..5c29325f 100644
--- a/config-ui/src/components/pipelines/ProviderSettings.jsx
+++ b/config-ui/src/components/pipelines/ProviderSettings.jsx
@@ -271,7 +271,7 @@ const ProviderSettings = (props) => {
<InputGroup
id='gitextractor-url'
disabled={isRunning || !isEnabled(providerId)}
- placeholder='eg. https://github.com/merico-dev/lake.git'
+ placeholder='eg. https://github.com/apache/incubator-devlake.git'
value={gitExtractorUrl}
onChange={(e) => setGitExtractorUrl(e.target.value)}
className='input-gitextractor-url'
diff --git a/config-ui/src/data/pipeline-config-samples/gitextractor.js b/config-ui/src/data/pipeline-config-samples/gitextractor.js
index 6c2f9f2f..f0047383 100644
--- a/config-ui/src/data/pipeline-config-samples/gitextractor.js
+++ b/config-ui/src/data/pipeline-config-samples/gitextractor.js
@@ -3,7 +3,7 @@ const gitextractorConfig = [
{
Plugin: 'gitextractor',
Options: {
- url: 'https://github.com/merico-dev/lake.git',
+ url: 'https://github.com/apache/incubator-devlake.git',
repoId: 'github:GithubRepo:384111310'
}
}
diff --git a/config-ui/src/index-production.html b/config-ui/src/index-production.html
index 4de20130..5f439346 100644
--- a/config-ui/src/index-production.html
+++ b/config-ui/src/index-production.html
@@ -7,7 +7,7 @@ ____ _______ __ _ _ _ _______
CONFIGURATION-UI: Production Mode HTML
-https://github.com/merico-dev/lake/wiki
+https://github.com/apache/incubator-devlake/wiki
-->
<!DOCTYPE html>
diff --git a/config-ui/src/pages/offline/index.jsx b/config-ui/src/pages/offline/index.jsx
index 6b548e7c..2a59a208 100644
--- a/config-ui/src/pages/offline/index.jsx
+++ b/config-ui/src/pages/offline/index.jsx
@@ -219,7 +219,7 @@ const Offline = (props) => {
Open Dashboard
</Button>
<a
- href='https://github.com/merico-dev/lake/blob/main/README.md'
+ href='https://github.com/apache/incubator-devlake/blob/main/README.md'
target='_blank'
rel='noreferrer'
style={{ marginLeft: '5px' }} className='bp3-button bp3-large bp3-minimal'
@@ -241,7 +241,7 @@ const Offline = (props) => {
OFFLINE ·
</strong>
<a
- href='https://github.com/merico-dev/lake/blob/main/README.md'
+ href='https://github.com/apache/incubator-devlake/blob/main/README.md'
target='_blank'
rel='noreferrer'
style={{ fontWeight: 400, letterSpacing: 0 }}
diff --git a/config-ui/src/pages/pipelines/create.jsx b/config-ui/src/pages/pipelines/create.jsx
index 6f8ab345..21408856 100644
--- a/config-ui/src/pages/pipelines/create.jsx
+++ b/config-ui/src/pages/pipelines/create.jsx
@@ -1176,7 +1176,7 @@ const CreatePipeline = (props) => {
className='bp3-button bp3-small'
rel='noreferrer'
target='_blank'
- href='https://github.com/merico-dev/lake/tree/main/plugins/gitextractor'
+ href='https://github.com/apache/incubator-devlake/tree/main/plugins/gitextractor'
>Learn More
</a>
</>
@@ -1191,7 +1191,7 @@ const CreatePipeline = (props) => {
className='bp3-button bp3-small'
rel='noreferrer'
target='_blank'
- href='https://github.com/merico-dev/lake/tree/main/plugins/refdiff'
+ href='https://github.com/apache/incubator-devlake/tree/main/plugins/refdiff'
>Learn More
</a>
</>
@@ -1337,7 +1337,7 @@ const CreatePipeline = (props) => {
Trigger a manual Pipeline with <a href='#'><strong>JSON Configuration</strong></a>.<br />
Please review the{' '}
<a
- href='https://github.com/merico-dev/lake/wiki/How-to-use-the-triggers-page' target='_blank'
+ href='https://github.com/apache/incubator-devlake/wiki/How-to-use-the-triggers-page' target='_blank'
rel='noreferrer'
style={{
fontWeight:
diff --git a/config-ui/src/pages/triggers/index.jsx b/config-ui/src/pages/triggers/index.jsx
index 0ebf6610..13d728f5 100644
--- a/config-ui/src/pages/triggers/index.jsx
+++ b/config-ui/src/pages/triggers/index.jsx
@@ -184,7 +184,7 @@ export default function Triggers () {
<p className='description' style={{ fontSize: '13px' }}>
<span style={{ fontWeight: 'bold' }}>Detailed configuration guide:</span>
<a
- href='https://github.com/merico-dev/lake/wiki/How-to-use-the-triggers-page' target='_blank'
+ href='https://github.com/apache/incubator-devlake/wiki/How-to-use-the-triggers-page' target='_blank'
rel='noreferrer' style={{ fontWeight: 'bold', color: '#E8471C', textDecoration: 'underline' }}
>
How to use the Triggers page
diff --git a/config/config.go b/config/config.go
index 6a1c4ca9..450d685e 100644
--- a/config/config.go
+++ b/config/config.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package config
import (
diff --git a/devops/lake-builder/Dockerfile b/devops/lake-builder/Dockerfile
index ee9a4d25..6eed8a2f 100644
--- a/devops/lake-builder/Dockerfile
+++ b/devops/lake-builder/Dockerfile
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# current tag: mericodev/lake-builder:0.0.4
FROM golang:1.17-alpine3.15 as builder
#RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
diff --git a/docker-compose-temporal.yml b/docker-compose-temporal.yml
index ac33342f..d6dc618d 100644
--- a/docker-compose-temporal.yml
+++ b/docker-compose-temporal.yml
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
version: "3"
services:
mysql:
diff --git a/docker-compose.yml b/docker-compose.yml
index 1ef0a01f..4c4ee4c1 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
version: "3"
services:
mysql:
diff --git a/e2e/config.go b/e2e/config.go
index 99742e62..59002f7a 100644
--- a/e2e/config.go
+++ b/e2e/config.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import "github.com/spf13/viper"
diff --git a/e2e/database.go b/e2e/database.go
index 67ff7444..42aecb29 100644
--- a/e2e/database.go
+++ b/e2e/database.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/domain_board_issues_test.go b/e2e/domain_board_issues_test.go
index e3182d29..684506f5 100644
--- a/e2e/domain_board_issues_test.go
+++ b/e2e/domain_board_issues_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainBoardIssues(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT board_id FROM lake.issues i JOIN board_issues bi on i.id = bi.issue_id where resolution_date < '2021-10-25 17:00:58.000';"
+ sqlCommand := "SELECT board_id FROM lake.issues i JOIN board_issues bi ON i.id = bi.issue_id WHERE resolution_date < '2021-10-25 17:00:58.000';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_board_sprints_test.go b/e2e/domain_board_sprints_test.go
index 8ec7a6b0..723fe1dc 100644
--- a/e2e/domain_board_sprints_test.go
+++ b/e2e/domain_board_sprints_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainBoardSprints(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT bs.board_id FROM lake.board_sprints bs join sprints s ON bs.sprint_id = s.id where ended_date < '2022-01-14 14:10:00.000';"
+ sqlCommand := "SELECT bs.board_id FROM lake.board_sprints bs JOIN sprints s ON bs.sprint_id = s.id WHERE ended_date < '2022-01-14 14:10:00.000';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_boards_test.go b/e2e/domain_boards_test.go
index 37696de4..22e2b4cd 100644
--- a/e2e/domain_boards_test.go
+++ b/e2e/domain_boards_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainBoards(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT id FROM lake.builds where started_date < '2021-04-09 09:49:07.000';"
+ sqlCommand := "SELECT id FROM lake.builds WHERE started_date < '2021-04-09 09:49:07.000';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_builds_test.go b/e2e/domain_builds_test.go
index 08e64a69..f6177fad 100644
--- a/e2e/domain_builds_test.go
+++ b/e2e/domain_builds_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainBuilds(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT id FROM lake.builds where started_date < '2021-05-14 15:06:50.000';;"
+ sqlCommand := "SELECT id FROM lake.builds WHERE started_date < '2021-05-14 15:06:50.000';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_changelogs_test.go b/e2e/domain_changelogs_test.go
index d549d8cc..e3dec350 100644
--- a/e2e/domain_changelogs_test.go
+++ b/e2e/domain_changelogs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainChangelogs(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT id FROM lake.changelogs where created_date < '2020-06-20 06:18:24.880';"
+ sqlCommand := "SELECT id FROM lake.changelogs WHERE created_date < '2020-06-20 06:18:24.880';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_commits_test.go b/e2e/domain_commits_test.go
index 89368691..e76ae650 100644
--- a/e2e/domain_commits_test.go
+++ b/e2e/domain_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainCommits(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- rows, err := db.Query("SELECT sha FROM commits where authored_date < '2021-11-24 19:22:29.000'")
+ rows, err := db.Query("SELECT sha FROM commits WHERE authored_date < '2021-11-24 19:22:29.000'")
if err != nil {
fmt.Println("ERROR: ", err)
}
diff --git a/e2e/domain_issue_asignee_history_test.go b/e2e/domain_issue_asignee_history_test.go
index b623154f..c3f2b1db 100644
--- a/e2e/domain_issue_asignee_history_test.go
+++ b/e2e/domain_issue_asignee_history_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainIssueAssigneeHistorys(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT issue_id FROM lake.issue_assignee_history where start_date < '2022-06-12 00:44:34.880';"
+ sqlCommand := "SELECT issue_id FROM lake.issue_assignee_history WHERE start_date < '2022-06-12 00:44:34.880';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_issue_sprints_history_test.go b/e2e/domain_issue_sprints_history_test.go
index eae42df8..741e22d4 100644
--- a/e2e/domain_issue_sprints_history_test.go
+++ b/e2e/domain_issue_sprints_history_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainIssueStatusHistorys(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT issue_id FROM lake.issue_sprints_history where start_date < '2020-06-17 07:29:24.052';;"
+ sqlCommand := "SELECT issue_id FROM lake.issue_sprints_history WHERE start_date < '2020-06-17 07:29:24.052';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_issue_status_history_test.go b/e2e/domain_issue_status_history_test.go
index 5faea742..a164d700 100644
--- a/e2e/domain_issue_status_history_test.go
+++ b/e2e/domain_issue_status_history_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainIssueSprintHistorys(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT sprint_id FROM lake.issue_sprints_history where start_date < '2020-06-17 07:29:24.052';;"
+ sqlCommand := "SELECT sprint_id FROM lake.issue_sprints_history WHERE start_date < '2020-06-17 07:29:24.052';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_issues_test.go b/e2e/domain_issues_test.go
index 10617d5e..c7bed558 100644
--- a/e2e/domain_issues_test.go
+++ b/e2e/domain_issues_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainIssues(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- rows, err := db.Query("SELECT id FROM lake.issues where resolution_date < '2021-10-25 17:00:58.000';")
+ rows, err := db.Query("SELECT id FROM lake.issues WHERE resolution_date < '2021-10-25 17:00:58.000';")
if err != nil {
fmt.Println("ERROR: ", err)
}
diff --git a/e2e/domain_jobs_test.go b/e2e/domain_jobs_test.go
index 515701dc..174a2328 100644
--- a/e2e/domain_jobs_test.go
+++ b/e2e/domain_jobs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/domain_notes_test.go b/e2e/domain_notes_test.go
index ef2b2eb9..bcab0077 100644
--- a/e2e/domain_notes_test.go
+++ b/e2e/domain_notes_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainNotes(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT id FROM lake.notes where created_date < '2019-10-24 02:23:43.000';"
+ sqlCommand := "SELECT id FROM lake.notes WHERE created_date < '2019-10-24 02:23:43.000';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_prs_test.go b/e2e/domain_prs_test.go
index d86e139d..49f01ac0 100644
--- a/e2e/domain_prs_test.go
+++ b/e2e/domain_prs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestDomainPullRequests(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT id FROM pull_requests where created_date < '2020-07-27 01:26:13.465';"
+ sqlCommand := "SELECT id FROM pull_requests WHERE created_date < '2020-07-27 01:26:13.465';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/domain_repo_commits_test.go b/e2e/domain_repo_commits_test.go
index 8b7c3063..62f51a45 100644
--- a/e2e/domain_repo_commits_test.go
+++ b/e2e/domain_repo_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/domain_repos_test.go b/e2e/domain_repos_test.go
index 84287e65..1679e97a 100644
--- a/e2e/domain_repos_test.go
+++ b/e2e/domain_repos_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/domain_sprint_issues_test.go b/e2e/domain_sprint_issues_test.go
index 4e3984b5..227d05ed 100644
--- a/e2e/domain_sprint_issues_test.go
+++ b/e2e/domain_sprint_issues_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/domain_sprints_test.go b/e2e/domain_sprints_test.go
index 91340882..67e100af 100644
--- a/e2e/domain_sprints_test.go
+++ b/e2e/domain_sprints_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/domain_users_test.go b/e2e/domain_users_test.go
index 0317568f..58d02372 100644
--- a/e2e/domain_users_test.go
+++ b/e2e/domain_users_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/domain_worklogs_test.go b/e2e/domain_worklogs_test.go
index b5d6032e..44ff3b6d 100644
--- a/e2e/domain_worklogs_test.go
+++ b/e2e/domain_worklogs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_commits_test.go b/e2e/github_commits_test.go
index 4c7224f3..388e4ea7 100644
--- a/e2e/github_commits_test.go
+++ b/e2e/github_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_issue_comments_test.go b/e2e/github_issue_comments_test.go
index db777c3d..e625475d 100644
--- a/e2e/github_issue_comments_test.go
+++ b/e2e/github_issue_comments_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_issue_events_test.go b/e2e/github_issue_events_test.go
index 70e2bae9..cb8202a7 100644
--- a/e2e/github_issue_events_test.go
+++ b/e2e/github_issue_events_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_issue_labels.go b/e2e/github_issue_labels.go
index d1e9452c..e96f705f 100644
--- a/e2e/github_issue_labels.go
+++ b/e2e/github_issue_labels.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_issues_label_issue_test.go b/e2e/github_issues_label_issue_test.go
index 527b2f13..709c9714 100644
--- a/e2e/github_issues_label_issue_test.go
+++ b/e2e/github_issues_label_issue_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_issues_test.go b/e2e/github_issues_test.go
index 5590222e..5972ff24 100644
--- a/e2e/github_issues_test.go
+++ b/e2e/github_issues_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_pull_request_comments_test.go b/e2e/github_pull_request_comments_test.go
index 5dc2f2a7..53d329a3 100644
--- a/e2e/github_pull_request_comments_test.go
+++ b/e2e/github_pull_request_comments_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_pull_request_commit_pull_requests_test.go b/e2e/github_pull_request_commit_pull_requests_test.go
index 37a89a2c..c51beca7 100644
--- a/e2e/github_pull_request_commit_pull_requests_test.go
+++ b/e2e/github_pull_request_commit_pull_requests_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_pull_request_commits_test.go b/e2e/github_pull_request_commits_test.go
index c3c0e704..066680eb 100644
--- a/e2e/github_pull_request_commits_test.go
+++ b/e2e/github_pull_request_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_pull_requests_test.go b/e2e/github_pull_requests_test.go
index dac6aaa7..26485588 100644
--- a/e2e/github_pull_requests_test.go
+++ b/e2e/github_pull_requests_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_repo_commits_test.go b/e2e/github_repo_commits_test.go
index e2c04198..0bf04ce8 100644
--- a/e2e/github_repo_commits_test.go
+++ b/e2e/github_repo_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_repo_test.go b/e2e/github_repo_test.go
index 3c07e82e..1de9609b 100644
--- a/e2e/github_repo_test.go
+++ b/e2e/github_repo_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/github_users_test.go b/e2e/github_users_test.go
index c459ea73..3e82104d 100644
--- a/e2e/github_users_test.go
+++ b/e2e/github_users_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_commits_test.go b/e2e/gitlab_commits_test.go
index b2c7fd5f..260aecef 100644
--- a/e2e/gitlab_commits_test.go
+++ b/e2e/gitlab_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_merge_request_commits_merge_requests_test.go b/e2e/gitlab_merge_request_commits_merge_requests_test.go
index 34b12061..4c753ee0 100644
--- a/e2e/gitlab_merge_request_commits_merge_requests_test.go
+++ b/e2e/gitlab_merge_request_commits_merge_requests_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_merge_request_commits_test.go b/e2e/gitlab_merge_request_commits_test.go
index 1a0101fd..a5589579 100644
--- a/e2e/gitlab_merge_request_commits_test.go
+++ b/e2e/gitlab_merge_request_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_merge_request_notes_test.go b/e2e/gitlab_merge_request_notes_test.go
index 2a5d80b5..660c9beb 100644
--- a/e2e/gitlab_merge_request_notes_test.go
+++ b/e2e/gitlab_merge_request_notes_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_mrs_test.go b/e2e/gitlab_mrs_test.go
index 1dfc5515..421c7a78 100644
--- a/e2e/gitlab_mrs_test.go
+++ b/e2e/gitlab_mrs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_pipelines_test.go b/e2e/gitlab_pipelines_test.go
index 77e4edff..c112ef06 100644
--- a/e2e/gitlab_pipelines_test.go
+++ b/e2e/gitlab_pipelines_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_project_commits_test.go b/e2e/gitlab_project_commits_test.go
index 4535a009..4378c84a 100644
--- a/e2e/gitlab_project_commits_test.go
+++ b/e2e/gitlab_project_commits_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -36,4 +53,4 @@ func TestGitlabProjectCommits(t *testing.T) {
commits = append(commits, commit)
}
assert.Equal(t, 1659, len(commits))
-}
\ No newline at end of file
+}
diff --git a/e2e/gitlab_projects_test.go b/e2e/gitlab_projects_test.go
index 5f71c8c5..79250c10 100644
--- a/e2e/gitlab_projects_test.go
+++ b/e2e/gitlab_projects_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_reviewers_test.go b/e2e/gitlab_reviewers_test.go
index ebee4433..e16b6425 100644
--- a/e2e/gitlab_reviewers_test.go
+++ b/e2e/gitlab_reviewers_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/gitlab_users_test.go b/e2e/gitlab_users_test.go
index 525a2070..72afa89b 100644
--- a/e2e/gitlab_users_test.go
+++ b/e2e/gitlab_users_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jenkins_builds_test.go b/e2e/jenkins_builds_test.go
index 269b4a55..a6399aa2 100644
--- a/e2e/jenkins_builds_test.go
+++ b/e2e/jenkins_builds_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jenkins_jobs_test.go b/e2e/jenkins_jobs_test.go
index 53f3287d..42042cb8 100644
--- a/e2e/jenkins_jobs_test.go
+++ b/e2e/jenkins_jobs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_board_issues_test.go b/e2e/jira_board_issues_test.go
index abd2b094..9c92c80a 100644
--- a/e2e/jira_board_issues_test.go
+++ b/e2e/jira_board_issues_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_board_sprints_test.go b/e2e/jira_board_sprints_test.go
index 645f6ca6..ded28b00 100644
--- a/e2e/jira_board_sprints_test.go
+++ b/e2e/jira_board_sprints_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -21,7 +38,7 @@ func TestJiraBoardSprints(t *testing.T) {
if err != nil {
log.Fatal(err)
}
- sqlCommand := "SELECT board_id FROM lake.jira_sprints js JOIN jira_board_sprints jbs ON jbs.sprint_id = js.sprint_id where start_date < '2020-12-27 01:22:00.000';;"
+ sqlCommand := "SELECT board_id FROM lake.jira_sprints js JOIN jira_board_sprints jbs ON jbs.sprint_id = js.sprint_id WHERE start_date < '2020-12-27 01:22:00.000';"
rows, err := db.Query(sqlCommand)
if err != nil {
fmt.Println("ERROR: ", err)
diff --git a/e2e/jira_boards_test.go b/e2e/jira_boards_test.go
index 897a7008..c02bcc77 100644
--- a/e2e/jira_boards_test.go
+++ b/e2e/jira_boards_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_changelog_items_test.go b/e2e/jira_changelog_items_test.go
index 34578099..ae26585a 100644
--- a/e2e/jira_changelog_items_test.go
+++ b/e2e/jira_changelog_items_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_changelogs_test.go b/e2e/jira_changelogs_test.go
index 628c772b..15d519b2 100644
--- a/e2e/jira_changelogs_test.go
+++ b/e2e/jira_changelogs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_issues_test.go b/e2e/jira_issues_test.go
index 31bdb2df..547ac337 100644
--- a/e2e/jira_issues_test.go
+++ b/e2e/jira_issues_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_projects_test.go b/e2e/jira_projects_test.go
index e67c151c..dea1c0f9 100644
--- a/e2e/jira_projects_test.go
+++ b/e2e/jira_projects_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
@@ -35,5 +52,5 @@ func TestJiraProjects(t *testing.T) {
}
jiraProjects = append(jiraProjects, jiraProject)
}
- assert.Equal(t, true, len(jiraProjects) > 0)
+ assert.Equal(t, true, len(jiraProjects) > 0)
}
diff --git a/e2e/jira_remote_links_test.go b/e2e/jira_remote_links_test.go
index f0804728..42d000ac 100644
--- a/e2e/jira_remote_links_test.go
+++ b/e2e/jira_remote_links_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_sprint_issues_test.go b/e2e/jira_sprint_issues_test.go
index 59036c58..0e196346 100644
--- a/e2e/jira_sprint_issues_test.go
+++ b/e2e/jira_sprint_issues_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_sprints_test.go b/e2e/jira_sprints_test.go
index a31c39e2..00a7d2e5 100644
--- a/e2e/jira_sprints_test.go
+++ b/e2e/jira_sprints_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_users_test.go b/e2e/jira_users_test.go
index efe9f7db..c8b9399f 100644
--- a/e2e/jira_users_test.go
+++ b/e2e/jira_users_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/e2e/jira_worklogs_test.go b/e2e/jira_worklogs_test.go
index b9102530..5b39ac35 100644
--- a/e2e/jira_worklogs_test.go
+++ b/e2e/jira_worklogs_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
diff --git a/errors/errors.go b/errors/errors.go
index f3a04582..2f9f526c 100644
--- a/errors/errors.go
+++ b/errors/errors.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package errors
import (
diff --git a/errors/sub_task_error.go b/errors/sub_task_error.go
index 2fe551b3..96faebc8 100644
--- a/errors/sub_task_error.go
+++ b/errors/sub_task_error.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package errors
var _ error = (*SubTaskError)(nil)
diff --git a/go.mod b/go.mod
index 1c9e7876..00d0b4ce 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/merico-dev/lake
+module github.com/apache/incubator-devlake
go 1.17
@@ -14,9 +14,12 @@ require (
github.com/panjf2000/ants/v2 v2.4.6
github.com/robfig/cron/v3 v3.0.0
github.com/sirupsen/logrus v1.8.1
+ github.com/spf13/afero v1.6.0
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.8.1
github.com/stretchr/testify v1.7.0
+ github.com/swaggo/gin-swagger v1.4.3
+ github.com/swaggo/swag v1.8.1
github.com/x-cray/logrus-prefixed-formatter v0.5.2
go.temporal.io/api v1.7.1-0.20220223032354-6e6fe738916a
go.temporal.io/sdk v1.14.0
@@ -90,14 +93,11 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
- github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.6-0.20200504143853-81378bbcd8a1 // indirect
github.com/stretchr/objx v0.3.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
- github.com/swaggo/gin-swagger v1.4.3 // indirect
- github.com/swaggo/swag v1.8.1 // indirect
github.com/ugorji/go/codec v1.2.6 // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
diff --git a/grafana/_archive/DeliveryQuality(RequireJiraAndGitlabData).json b/grafana/_archive/DeliveryQuality(RequireJiraAndGitlabData).json
index 633af3ce..94807b6f 100644
--- a/grafana/_archive/DeliveryQuality(RequireJiraAndGitlabData).json
+++ b/grafana/_archive/DeliveryQuality(RequireJiraAndGitlabData).json
@@ -1595,7 +1595,7 @@
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
- "rawSql": "with ic as (\n\tselect \n\t DATE_ADD(date(ji.created), INTERVAL -$interval(date(ji.created))+1 DAY) as time,\n\t count(*) as incident_count\n\tfrom \n\t jira_issues ji \n\t left join jira_board_issues jbi on jbi.issue_id = ji.issue_id\n\twhere \n\t jbi.board_id = $board_id\n\t and ji.type = 'Incident'\n\t and $__timeFilter(ji.created)\n\tgroup by 1\n),\nloc as (\n\tselect \n\t DATE_ADD(date(gc.authored_date), INTERVAL -$interval(date(gc.authored_date))+1 DAY) [...]
+ "rawSql": "with ic as (\n\tselect \n\t DATE_ADD(date(ji.created), INTERVAL -$interval(date(ji.created))+1 DAY) as time,\n\t count(*) as incident_count\n\tfrom \n\t jira_issues ji \n\t left join jira_board_issues jbi on jbi.issue_id = ji.issue_id\n\twhere \n\t jbi.board_id = $board_id\n\t and ji.type = 'Incident'\n\t and $__timeFilter(ji.created)\n\tgroup by 1\n),\nloc as (\n\tselect \n\t DATE_ADD(date(gc.authored_date), INTERVAL -$interval(date(gc.authored_date))+1 DAY) [...]
"refId": "A",
"select": [
[
diff --git a/logger/log.go b/logger/log.go
index 30342836..7fc466f8 100644
--- a/logger/log.go
+++ b/logger/log.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package logger
import (
"fmt"
- "github.com/merico-dev/lake/config"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/config"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
"github.com/sirupsen/logrus"
prefixed "github.com/x-cray/logrus-prefixed-formatter"
"os"
diff --git a/main.go b/main.go
index 9914dce7..918b738c 100644
--- a/main.go
+++ b/main.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main
import (
- "github.com/merico-dev/lake/api"
- _ "github.com/merico-dev/lake/version"
+ "github.com/apache/incubator-devlake/api"
+ _ "github.com/apache/incubator-devlake/version"
)
func main() {
diff --git a/migration/interface.go b/migration/interface.go
index 677d61ca..821b422a 100644
--- a/migration/interface.go
+++ b/migration/interface.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migration
import (
diff --git a/migration/migrator.go b/migration/migrator.go
index 407dad90..b143284a 100644
--- a/migration/migrator.go
+++ b/migration/migrator.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migration
import (
diff --git a/migration/models.go b/migration/models.go
index 55546014..174c4e98 100644
--- a/migration/models.go
+++ b/migration/models.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migration
import (
diff --git a/models/blueprint.go b/models/blueprint.go
index 3b95f9bb..1368645b 100644
--- a/models/blueprint.go
+++ b/models/blueprint.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"gorm.io/datatypes"
)
diff --git a/models/common/base.go b/models/common/base.go
index c4133f76..5efa2133 100644
--- a/models/common/base.go
+++ b/models/common/base.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package common
import (
diff --git a/models/domainlayer/code/commit.go b/models/domainlayer/code/commit.go
index c3c2961a..61c4d072 100644
--- a/models/domainlayer/code/commit.go
+++ b/models/domainlayer/code/commit.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
import (
"time"
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type Commit struct {
diff --git a/models/domainlayer/code/commit_parent.go b/models/domainlayer/code/commit_parent.go
index a2074781..ff9f490f 100644
--- a/models/domainlayer/code/commit_parent.go
+++ b/models/domainlayer/code/commit_parent.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
type CommitParent struct {
diff --git a/models/domainlayer/code/note.go b/models/domainlayer/code/note.go
index 3837f054..2b4d0f71 100644
--- a/models/domainlayer/code/note.go
+++ b/models/domainlayer/code/note.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
import (
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type Note struct {
diff --git a/models/domainlayer/code/pull_request.go b/models/domainlayer/code/pull_request.go
index e8f681c6..81d40443 100644
--- a/models/domainlayer/code/pull_request.go
+++ b/models/domainlayer/code/pull_request.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
import (
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type PullRequest struct {
diff --git a/models/domainlayer/code/pull_request_comment.go b/models/domainlayer/code/pull_request_comment.go
index 18fd86e9..55f9ee93 100644
--- a/models/domainlayer/code/pull_request_comment.go
+++ b/models/domainlayer/code/pull_request_comment.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
import (
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
"time"
)
diff --git a/models/domainlayer/code/pull_request_commit.go b/models/domainlayer/code/pull_request_commit.go
index 6f1ff18c..02f47905 100644
--- a/models/domainlayer/code/pull_request_commit.go
+++ b/models/domainlayer/code/pull_request_commit.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type PullRequestCommit struct {
CommitSha string `gorm:"primaryKey;type:varchar(40)"`
diff --git a/models/domainlayer/code/pull_request_labels.go b/models/domainlayer/code/pull_request_labels.go
index ee2b7f3c..118b1abd 100644
--- a/models/domainlayer/code/pull_request_labels.go
+++ b/models/domainlayer/code/pull_request_labels.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
// Please note that Issue Labels can also apply to Pull Requests.
diff --git a/models/domainlayer/code/ref.go b/models/domainlayer/code/ref.go
index 39d30391..7567d5fc 100644
--- a/models/domainlayer/code/ref.go
+++ b/models/domainlayer/code/ref.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
import (
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type Ref struct {
diff --git a/models/domainlayer/code/refs_commits_diff.go b/models/domainlayer/code/refs_commits_diff.go
index 705e1aae..009b53b0 100644
--- a/models/domainlayer/code/refs_commits_diff.go
+++ b/models/domainlayer/code/refs_commits_diff.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
type RefsCommitsDiff struct {
diff --git a/models/domainlayer/code/refs_pr_cherry_pick.go b/models/domainlayer/code/refs_pr_cherry_pick.go
index dd1dee32..dab32d76 100644
--- a/models/domainlayer/code/refs_pr_cherry_pick.go
+++ b/models/domainlayer/code/refs_pr_cherry_pick.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
// multi pk
type RefsPrCherrypick struct {
diff --git a/models/domainlayer/code/repo.go b/models/domainlayer/code/repo.go
index d2e91513..077b126a 100644
--- a/models/domainlayer/code/repo.go
+++ b/models/domainlayer/code/repo.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
import (
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type Repo struct {
diff --git a/models/domainlayer/code/repo_commit.go b/models/domainlayer/code/repo_commit.go
index 82087346..50ae4a3a 100644
--- a/models/domainlayer/code/repo_commit.go
+++ b/models/domainlayer/code/repo_commit.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package code
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type RepoCommit struct {
RepoId string `json:"repoId" gorm:"primaryKey;type:varchar(255)"`
diff --git a/models/domainlayer/crossdomain/board_repo.go b/models/domainlayer/crossdomain/board_repo.go
index d657f244..17008775 100644
--- a/models/domainlayer/crossdomain/board_repo.go
+++ b/models/domainlayer/crossdomain/board_repo.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package crossdomain
type BoardRepo struct {
diff --git a/models/domainlayer/crossdomain/issue_commit.go b/models/domainlayer/crossdomain/issue_commit.go
index d0df82c1..d2559e02 100644
--- a/models/domainlayer/crossdomain/issue_commit.go
+++ b/models/domainlayer/crossdomain/issue_commit.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package crossdomain
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type IssueCommit struct {
common.NoPKModel
diff --git a/models/domainlayer/crossdomain/issue_repo_commits.go b/models/domainlayer/crossdomain/issue_repo_commits.go
index d535d2ce..cb12044a 100644
--- a/models/domainlayer/crossdomain/issue_repo_commits.go
+++ b/models/domainlayer/crossdomain/issue_repo_commits.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package crossdomain
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type IssueRepoCommit struct {
common.NoPKModel
diff --git a/models/domainlayer/crossdomain/pull_request_issue.go b/models/domainlayer/crossdomain/pull_request_issue.go
index 2c885f59..97d6623a 100644
--- a/models/domainlayer/crossdomain/pull_request_issue.go
+++ b/models/domainlayer/crossdomain/pull_request_issue.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package crossdomain
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type PullRequestIssue struct {
PullRequestId string `json:"id" gorm:"primaryKey;type:varchar(255);comment:This key is generated based on details from the original plugin"` // format: <Plugin>:<Entity>:<PK0>:<PK1>
diff --git a/models/domainlayer/crossdomain/refs_issues_diff.go b/models/domainlayer/crossdomain/refs_issues_diff.go
index 71dce2f7..3dd4e652 100644
--- a/models/domainlayer/crossdomain/refs_issues_diff.go
+++ b/models/domainlayer/crossdomain/refs_issues_diff.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package crossdomain
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type RefsIssuesDiffs struct {
NewRefId string `gorm:"primaryKey;type:varchar(255)"`
diff --git a/models/domainlayer/devops/build.go b/models/domainlayer/devops/build.go
index dec85aca..8d289ad8 100644
--- a/models/domainlayer/devops/build.go
+++ b/models/domainlayer/devops/build.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package devops
import (
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
"time"
)
diff --git a/models/domainlayer/devops/job.go b/models/domainlayer/devops/job.go
index 3f6a8502..255ae606 100644
--- a/models/domainlayer/devops/job.go
+++ b/models/domainlayer/devops/job.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package devops
import (
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type Job struct {
diff --git a/models/domainlayer/didgen/domain_id_generator.go b/models/domainlayer/didgen/domain_id_generator.go
index ebeb8dd7..da92c4f8 100644
--- a/models/domainlayer/didgen/domain_id_generator.go
+++ b/models/domainlayer/didgen/domain_id_generator.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package didgen
import (
@@ -5,7 +22,7 @@ import (
"reflect"
"strings"
- "github.com/merico-dev/lake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/core"
)
type DomainIdGenerator struct {
diff --git a/models/domainlayer/didgen/domain_id_generator_test.go b/models/domainlayer/didgen/domain_id_generator_test.go
index 27a596ea..fec7c101 100644
--- a/models/domainlayer/didgen/domain_id_generator_test.go
+++ b/models/domainlayer/didgen/domain_id_generator_test.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package didgen
import (
"context"
"testing"
- "github.com/merico-dev/lake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/core"
"github.com/stretchr/testify/assert"
"gorm.io/gorm"
)
@@ -23,7 +40,7 @@ func (f *FooPlugin) Execute(options map[string]interface{}, progress chan<- floa
}
func (f *FooPlugin) RootPkgPath() string {
- return "github.com/merico-dev/lake"
+ return "github.com/apache/incubator-devlake"
}
func (f *FooPlugin) ApiResources() map[string]map[string]core.ApiResourceHandler {
diff --git a/models/domainlayer/domainlayer.go b/models/domainlayer/domainlayer.go
index a731f8f1..33e0b606 100644
--- a/models/domainlayer/domainlayer.go
+++ b/models/domainlayer/domainlayer.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package domainlayer
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type DomainEntity struct {
diff --git a/models/domainlayer/ticket/board.go b/models/domainlayer/ticket/board.go
index f7a0cf6b..e1b9c1d2 100644
--- a/models/domainlayer/ticket/board.go
+++ b/models/domainlayer/ticket/board.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type Board struct {
diff --git a/models/domainlayer/ticket/board_issue.go b/models/domainlayer/ticket/board_issue.go
index a96f8d46..4772cfc8 100644
--- a/models/domainlayer/ticket/board_issue.go
+++ b/models/domainlayer/ticket/board_issue.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type BoardIssue struct {
BoardId string `gorm:"primaryKey;type:varchar(255)"`
diff --git a/models/domainlayer/ticket/changelog.go b/models/domainlayer/ticket/changelog.go
index c998353f..afeaf4fe 100644
--- a/models/domainlayer/ticket/changelog.go
+++ b/models/domainlayer/ticket/changelog.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
import (
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type Changelog struct {
diff --git a/models/domainlayer/ticket/issue.go b/models/domainlayer/ticket/issue.go
index 7365c2d0..19003b1a 100644
--- a/models/domainlayer/ticket/issue.go
+++ b/models/domainlayer/ticket/issue.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
import (
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type Issue struct {
diff --git a/models/domainlayer/ticket/issue_comment.go b/models/domainlayer/ticket/issue_comment.go
index 5e30b307..8150e42a 100644
--- a/models/domainlayer/ticket/issue_comment.go
+++ b/models/domainlayer/ticket/issue_comment.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
import (
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
"time"
)
diff --git a/models/domainlayer/ticket/issue_history.go b/models/domainlayer/ticket/issue_history.go
index b15679ab..056762ec 100644
--- a/models/domainlayer/ticket/issue_history.go
+++ b/models/domainlayer/ticket/issue_history.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
import (
"time"
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type IssueStatusHistory struct {
diff --git a/models/domainlayer/ticket/issue_label.go b/models/domainlayer/ticket/issue_label.go
index 49b844d3..79be6363 100644
--- a/models/domainlayer/ticket/issue_label.go
+++ b/models/domainlayer/ticket/issue_label.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
// Please note that Issue Labels can also apply to Pull Requests.
// Pull Requests are considered Issues in GitHub.
diff --git a/models/domainlayer/ticket/sprint.go b/models/domainlayer/ticket/sprint.go
index d5383fec..189a1108 100644
--- a/models/domainlayer/ticket/sprint.go
+++ b/models/domainlayer/ticket/sprint.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
var (
diff --git a/models/domainlayer/ticket/worklog.go b/models/domainlayer/ticket/worklog.go
index f6382859..e0d4da9c 100644
--- a/models/domainlayer/ticket/worklog.go
+++ b/models/domainlayer/ticket/worklog.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package ticket
import (
"time"
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type IssueWorklog struct {
diff --git a/models/domainlayer/user/user.go b/models/domainlayer/user/user.go
index 64e06727..b10fb4b6 100644
--- a/models/domainlayer/user/user.go
+++ b/models/domainlayer/user/user.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package user
import (
- "github.com/merico-dev/lake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer"
)
type User struct {
diff --git a/models/migrationscripts/archived/base.go b/models/migrationscripts/archived/base.go
index d4037b3c..823749c7 100644
--- a/models/migrationscripts/archived/base.go
+++ b/models/migrationscripts/archived/base.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/blueprint.go b/models/migrationscripts/archived/blueprint.go
index 48bac82a..a7e18d85 100644
--- a/models/migrationscripts/archived/blueprint.go
+++ b/models/migrationscripts/archived/blueprint.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/board.go b/models/migrationscripts/archived/board.go
index 52ec4022..1f2a2473 100644
--- a/models/migrationscripts/archived/board.go
+++ b/models/migrationscripts/archived/board.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/build.go b/models/migrationscripts/archived/build.go
index 6291ecc0..12ac49f8 100644
--- a/models/migrationscripts/archived/build.go
+++ b/models/migrationscripts/archived/build.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/changelog.go b/models/migrationscripts/archived/changelog.go
index e86d50c2..fffa12e9 100644
--- a/models/migrationscripts/archived/changelog.go
+++ b/models/migrationscripts/archived/changelog.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/commit.go b/models/migrationscripts/archived/commit.go
index 1c0369c0..e05b18a7 100644
--- a/models/migrationscripts/archived/commit.go
+++ b/models/migrationscripts/archived/commit.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/issue.go b/models/migrationscripts/archived/issue.go
index b3ca583b..b0589613 100644
--- a/models/migrationscripts/archived/issue.go
+++ b/models/migrationscripts/archived/issue.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
@@ -45,8 +62,8 @@ type IssueLabel struct {
type IssueComment struct {
DomainEntity
- IssueId string `gorm:"index"`
- Body string
- UserId string `gorm:"type:varchar(255)"`
+ IssueId string `gorm:"index"`
+ Body string
+ UserId string `gorm:"type:varchar(255)"`
CreatedDate time.Time
}
diff --git a/models/migrationscripts/archived/issue_history.go b/models/migrationscripts/archived/issue_history.go
index 77cfe7b5..efe5e631 100644
--- a/models/migrationscripts/archived/issue_history.go
+++ b/models/migrationscripts/archived/issue_history.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/issue_repo_commits.go b/models/migrationscripts/archived/issue_repo_commits.go
index bc4480f7..006125b9 100644
--- a/models/migrationscripts/archived/issue_repo_commits.go
+++ b/models/migrationscripts/archived/issue_repo_commits.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
type IssueRepoCommit struct {
diff --git a/models/migrationscripts/archived/job.go b/models/migrationscripts/archived/job.go
index c9e19016..1a5b449d 100644
--- a/models/migrationscripts/archived/job.go
+++ b/models/migrationscripts/archived/job.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
type Job struct {
diff --git a/models/migrationscripts/archived/note.go b/models/migrationscripts/archived/note.go
index 6976f921..14376d3f 100644
--- a/models/migrationscripts/archived/note.go
+++ b/models/migrationscripts/archived/note.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/notification.go b/models/migrationscripts/archived/notification.go
index 26c37b3d..f9dfb125 100644
--- a/models/migrationscripts/archived/notification.go
+++ b/models/migrationscripts/archived/notification.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
type NotificationType string
diff --git a/models/migrationscripts/archived/pipeline.go b/models/migrationscripts/archived/pipeline.go
index 54bd70ae..5ecf4b23 100644
--- a/models/migrationscripts/archived/pipeline.go
+++ b/models/migrationscripts/archived/pipeline.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/pull_request.go b/models/migrationscripts/archived/pull_request.go
index ffff6b83..aaa7f9c9 100644
--- a/models/migrationscripts/archived/pull_request.go
+++ b/models/migrationscripts/archived/pull_request.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/ref.go b/models/migrationscripts/archived/ref.go
index b9a17230..8c639d1e 100644
--- a/models/migrationscripts/archived/ref.go
+++ b/models/migrationscripts/archived/ref.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/repo.go b/models/migrationscripts/archived/repo.go
index 6982064e..dba76654 100644
--- a/models/migrationscripts/archived/repo.go
+++ b/models/migrationscripts/archived/repo.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/sprint.go b/models/migrationscripts/archived/sprint.go
index b1bb9ca1..c25561c6 100644
--- a/models/migrationscripts/archived/sprint.go
+++ b/models/migrationscripts/archived/sprint.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/task.go b/models/migrationscripts/archived/task.go
index f22a63b5..8b4c6730 100644
--- a/models/migrationscripts/archived/task.go
+++ b/models/migrationscripts/archived/task.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/archived/user.go b/models/migrationscripts/archived/user.go
index 2f6a9716..302f001f 100644
--- a/models/migrationscripts/archived/user.go
+++ b/models/migrationscripts/archived/user.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
type User struct {
diff --git a/models/migrationscripts/archived/worklog.go b/models/migrationscripts/archived/worklog.go
index 6ff4c24d..f006bc03 100644
--- a/models/migrationscripts/archived/worklog.go
+++ b/models/migrationscripts/archived/worklog.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
diff --git a/models/migrationscripts/init_schema.go b/models/migrationscripts/init_schema.go
index a47e8385..30ad7558 100644
--- a/models/migrationscripts/init_schema.go
+++ b/models/migrationscripts/init_schema.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
"gorm.io/gorm"
)
diff --git a/models/migrationscripts/register.go b/models/migrationscripts/register.go
index 305d78b4..e85a293d 100644
--- a/models/migrationscripts/register.go
+++ b/models/migrationscripts/register.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
-import "github.com/merico-dev/lake/migration"
+import "github.com/apache/incubator-devlake/migration"
// RegisterAll register all the migration scripts of framework
func RegisterAll() {
migration.Register([]migration.Script{new(initSchemas), new(updateSchemas20220505), new(updateSchemas20220507),
- new(updateSchemas20220510), new(updateSchemas20220513)}, "Framework")
+ new(updateSchemas20220510), new(updateSchemas20220513)}, "Framework")
}
diff --git a/models/migrationscripts/updateSchemas20220505.go b/models/migrationscripts/updateSchemas20220505.go
index 57b9d368..b29cc2fa 100644
--- a/models/migrationscripts/updateSchemas20220505.go
+++ b/models/migrationscripts/updateSchemas20220505.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
"gorm.io/gorm"
)
diff --git a/models/migrationscripts/updateSchemas20220507.go b/models/migrationscripts/updateSchemas20220507.go
index 6a5ef73e..008e3628 100644
--- a/models/migrationscripts/updateSchemas20220507.go
+++ b/models/migrationscripts/updateSchemas20220507.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
"gorm.io/gorm"
+ "time"
)
type Issue20220507 struct {
diff --git a/models/migrationscripts/updateSchemas20220510.go b/models/migrationscripts/updateSchemas20220510.go
index 40f6270a..2114a7b2 100644
--- a/models/migrationscripts/updateSchemas20220510.go
+++ b/models/migrationscripts/updateSchemas20220510.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
"gorm.io/gorm"
)
diff --git a/models/migrationscripts/updateSchemas20220513.go b/models/migrationscripts/updateSchemas20220513.go
index d8afb0b8..883df03e 100644
--- a/models/migrationscripts/updateSchemas20220513.go
+++ b/models/migrationscripts/updateSchemas20220513.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -68,7 +85,10 @@ func (*updateSchemas20220513) Up(ctx context.Context, db *gorm.DB) error {
return err
}
// 4. rename the temporary table to the old table
- db.Migrator().RenameTable(RefsIssuesDiffs20220513{}, RefsIssuesDiffsNew{})
+ err = db.Migrator().RenameTable(RefsIssuesDiffs20220513{}, RefsIssuesDiffsNew{})
+ if err != nil {
+ return err
+ }
return nil
}
diff --git a/models/notification.go b/models/notification.go
index 1c6846c3..0d353471 100644
--- a/models/notification.go
+++ b/models/notification.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type NotificationType string
@@ -19,7 +36,6 @@ type Notification struct {
Data string
}
-func (Notification) TableName() string{
+func (Notification) TableName() string {
return "_devlake_notifications"
}
-
diff --git a/models/pipeline.go b/models/pipeline.go
index b93aa873..da1656b6 100644
--- a/models/pipeline.go
+++ b/models/pipeline.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
"time"
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"gorm.io/datatypes"
)
diff --git a/models/task.go b/models/task.go
index 0a38f244..0d77a607 100644
--- a/models/task.go
+++ b/models/task.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
"time"
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"gorm.io/datatypes"
)
diff --git a/plugins/ae/ae.go b/plugins/ae/ae.go
index d14bd83b..e2bad02f 100644
--- a/plugins/ae/ae.go
+++ b/plugins/ae/ae.go
@@ -1,14 +1,31 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main // must be main for plugin entry point
import (
"fmt"
- "github.com/merico-dev/lake/migration"
- "github.com/merico-dev/lake/plugins/ae/api"
- "github.com/merico-dev/lake/plugins/ae/models/migrationscripts"
- "github.com/merico-dev/lake/plugins/ae/tasks"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/runner"
+ "github.com/apache/incubator-devlake/migration"
+ "github.com/apache/incubator-devlake/plugins/ae/api"
+ "github.com/apache/incubator-devlake/plugins/ae/models/migrationscripts"
+ "github.com/apache/incubator-devlake/plugins/ae/tasks"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/runner"
"github.com/mitchellh/mapstructure"
"github.com/spf13/cobra"
"github.com/spf13/viper"
@@ -61,7 +78,7 @@ func (plugin AE) PrepareTaskData(taskCtx core.TaskContext, options map[string]in
}
func (plugin AE) RootPkgPath() string {
- return "github.com/merico-dev/lake/plugins/ae"
+ return "github.com/apache/incubator-devlake/plugins/ae"
}
func (plugin AE) MigrationScripts() []migration.Script {
diff --git a/plugins/ae/api/connection.go b/plugins/ae/api/connection.go
index d970b465..c66f9e11 100644
--- a/plugins/ae/api/connection.go
+++ b/plugins/ae/api/connection.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package api
import (
- "github.com/merico-dev/lake/config"
- "github.com/merico-dev/lake/plugins/ae/models"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/config"
+ "github.com/apache/incubator-devlake/plugins/ae/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
"net/http"
)
diff --git a/plugins/ae/models/commit.go b/plugins/ae/models/commit.go
index 225ec6be..c84920b8 100644
--- a/plugins/ae/models/commit.go
+++ b/plugins/ae/models/commit.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type AECommit struct {
HexSha string `gorm:"primaryKey;type:varchar(255)"`
diff --git a/plugins/ae/models/connection.go b/plugins/ae/models/connection.go
index b1807982..99624b56 100644
--- a/plugins/ae/models/connection.go
+++ b/plugins/ae/models/connection.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
type AeConnection struct {
diff --git a/plugins/ae/models/migrationscripts/archived/commit.go b/plugins/ae/models/migrationscripts/archived/commit.go
index 0d056bfe..1a391158 100644
--- a/plugins/ae/models/migrationscripts/archived/commit.go
+++ b/plugins/ae/models/migrationscripts/archived/commit.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type AECommit struct {
diff --git a/plugins/ae/models/migrationscripts/archived/project.go b/plugins/ae/models/migrationscripts/archived/project.go
index b51368c3..299462d7 100644
--- a/plugins/ae/models/migrationscripts/archived/project.go
+++ b/plugins/ae/models/migrationscripts/archived/project.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type AEProject struct {
diff --git a/plugins/ae/models/migrationscripts/init_schema.go b/plugins/ae/models/migrationscripts/init_schema.go
index ab169fa7..24d37607 100644
--- a/plugins/ae/models/migrationscripts/init_schema.go
+++ b/plugins/ae/models/migrationscripts/init_schema.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/plugins/ae/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/plugins/ae/models/migrationscripts/archived"
"gorm.io/gorm"
)
diff --git a/plugins/ae/models/project.go b/plugins/ae/models/project.go
index 227ab2a7..9ecdd913 100644
--- a/plugins/ae/models/project.go
+++ b/plugins/ae/models/project.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
"time"
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type AEProject struct {
diff --git a/plugins/ae/tasks/api_client.go b/plugins/ae/tasks/api_client.go
index 290ff4f9..da38e2c1 100644
--- a/plugins/ae/tasks/api_client.go
+++ b/plugins/ae/tasks/api_client.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -11,8 +28,8 @@ import (
"strings"
"time"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
diff --git a/plugins/ae/tasks/commits_collector.go b/plugins/ae/tasks/commits_collector.go
index d2fa914c..0864e2bb 100644
--- a/plugins/ae/tasks/commits_collector.go
+++ b/plugins/ae/tasks/commits_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -7,8 +24,8 @@ import (
"net/http"
"net/url"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
const RAW_COMMITS_TABLE = "ae_commits"
diff --git a/plugins/ae/tasks/commits_convertor.go b/plugins/ae/tasks/commits_convertor.go
index c97cbeae..8e5dc342 100644
--- a/plugins/ae/tasks/commits_convertor.go
+++ b/plugins/ae/tasks/commits_convertor.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
- "github.com/merico-dev/lake/models/domainlayer/code"
- aeModels "github.com/merico-dev/lake/plugins/ae/models"
- "github.com/merico-dev/lake/plugins/core"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ aeModels "github.com/apache/incubator-devlake/plugins/ae/models"
+ "github.com/apache/incubator-devlake/plugins/core"
)
// NOTE: This only works on Commits in the Domain layer. You need to run Github or Gitlab collection and Domain layer enrichemnt first.
diff --git a/plugins/ae/tasks/commits_extractor.go b/plugins/ae/tasks/commits_extractor.go
index 28968dd2..53dc9a55 100644
--- a/plugins/ae/tasks/commits_extractor.go
+++ b/plugins/ae/tasks/commits_extractor.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
- "github.com/merico-dev/lake/plugins/ae/models"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/ae/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
type ApiCommitsResponse []AeApiCommit
diff --git a/plugins/ae/tasks/project_collector.go b/plugins/ae/tasks/project_collector.go
index 1c53e1e6..f3af5de5 100644
--- a/plugins/ae/tasks/project_collector.go
+++ b/plugins/ae/tasks/project_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -5,8 +22,8 @@ import (
"io/ioutil"
"net/http"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
const RAW_PROJECT_TABLE = "ae_project"
diff --git a/plugins/ae/tasks/project_extractor.go b/plugins/ae/tasks/project_extractor.go
index e098bc2b..60b43c49 100644
--- a/plugins/ae/tasks/project_extractor.go
+++ b/plugins/ae/tasks/project_extractor.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -5,9 +22,9 @@ import (
"strconv"
"time"
- "github.com/merico-dev/lake/plugins/ae/models"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/ae/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
type ApiProjectResponse struct {
diff --git a/plugins/ae/tasks/task_data.go b/plugins/ae/tasks/task_data.go
index 8e7e049d..1ea21557 100644
--- a/plugins/ae/tasks/task_data.go
+++ b/plugins/ae/tasks/task_data.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
-import "github.com/merico-dev/lake/plugins/helper"
+import "github.com/apache/incubator-devlake/plugins/helper"
type AeOptions struct {
ProjectId int
diff --git a/plugins/core/hub.go b/plugins/core/hub.go
index 32151ba9..9d3416fc 100644
--- a/plugins/core/hub.go
+++ b/plugins/core/hub.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import (
diff --git a/plugins/core/hub_test.go b/plugins/core/hub_test.go
index bf0facfd..7c9c7257 100644
--- a/plugins/core/hub_test.go
+++ b/plugins/core/hub_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import (
diff --git a/plugins/core/logger.go b/plugins/core/logger.go
index 258ac398..11155bb9 100644
--- a/plugins/core/logger.go
+++ b/plugins/core/logger.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import "github.com/sirupsen/logrus"
diff --git a/plugins/core/plugin_api.go b/plugins/core/plugin_api.go
index c7230f41..a57a33d1 100644
--- a/plugins/core/plugin_api.go
+++ b/plugins/core/plugin_api.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import "net/url"
diff --git a/plugins/core/plugin_db_migration.go b/plugins/core/plugin_db_migration.go
index 9a8055d3..005aca3d 100644
--- a/plugins/core/plugin_db_migration.go
+++ b/plugins/core/plugin_db_migration.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
-import "github.com/merico-dev/lake/migration"
+import "github.com/apache/incubator-devlake/migration"
type Migratable interface {
MigrationScripts() []migration.Script
diff --git a/plugins/core/plugin_init.go b/plugins/core/plugin_init.go
index 8730f59c..93b175b0 100644
--- a/plugins/core/plugin_init.go
+++ b/plugins/core/plugin_init.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import (
diff --git a/plugins/core/plugin_meta.go b/plugins/core/plugin_meta.go
index 2ab6e4a8..9bf2e68c 100644
--- a/plugins/core/plugin_meta.go
+++ b/plugins/core/plugin_meta.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
// Minimal features a plugin should comply, should be implemented by all plugins
diff --git a/plugins/core/plugin_task.go b/plugins/core/plugin_task.go
index 2a49429c..bc1d9451 100644
--- a/plugins/core/plugin_task.go
+++ b/plugins/core/plugin_task.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import (
diff --git a/plugins/core/plugin_utils.go b/plugins/core/plugin_utils.go
index 46fb96ca..95df35b6 100644
--- a/plugins/core/plugin_utils.go
+++ b/plugins/core/plugin_utils.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import (
diff --git a/plugins/core/plugin_utils_test.go b/plugins/core/plugin_utils_test.go
index 4d65cd6e..4a84b3e3 100644
--- a/plugins/core/plugin_utils_test.go
+++ b/plugins/core/plugin_utils_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package core
import (
diff --git a/plugins/dbt/dbt.go b/plugins/dbt/dbt.go
index 14dd565c..c3ce3d3e 100644
--- a/plugins/dbt/dbt.go
+++ b/plugins/dbt/dbt.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main
import (
"fmt"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/dbt/tasks"
- "github.com/merico-dev/lake/runner"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/dbt/tasks"
+ "github.com/apache/incubator-devlake/runner"
"github.com/mitchellh/mapstructure"
"github.com/spf13/cobra"
)
@@ -50,7 +67,7 @@ func (plugin Dbt) PrepareTaskData(taskCtx core.TaskContext, options map[string]i
}
func (plugin Dbt) RootPkgPath() string {
- return "github.com/merico-dev/lake/plugins/dbt"
+ return "github.com/apache/incubator-devlake/plugins/dbt"
}
var PluginEntry Dbt
@@ -74,10 +91,10 @@ func main() {
projectVars["event_min_id"] = "7581"
projectVars["event_max_id"] = "7582"
dbtCmd.Flags().StringToStringVarP(&projectVars, "projectVars", "v", projectVars, "dbt provides variables to provide data to models for compilation.")
-
+
dbtCmd.Run = func(cmd *cobra.Command, args []string) {
projectVarsConvert := make(map[string]interface{}, len(projectVars))
- for k, v := range projectVars{
+ for k, v := range projectVars {
projectVarsConvert[k] = v
}
runner.DirectRun(cmd, args, PluginEntry, map[string]interface{}{
diff --git a/plugins/dbt/tasks/convertor.go b/plugins/dbt/tasks/convertor.go
index 4450caf2..112291f3 100644
--- a/plugins/dbt/tasks/convertor.go
+++ b/plugins/dbt/tasks/convertor.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -11,7 +28,7 @@ import (
"strconv"
"strings"
- "github.com/merico-dev/lake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/core"
"github.com/spf13/viper"
)
@@ -45,15 +62,15 @@ func DbtConverter(taskCtx core.SubTaskContext) error {
} else {
// other database
mapQuery, err := url.ParseQuery(u.RawQuery)
- if err != nil{
+ if err != nil {
return err
}
- if value, ok := mapQuery["search_path"]; ok{
- if len(value) < 1{
+ if value, ok := mapQuery["search_path"]; ok {
+ if len(value) < 1 {
return fmt.Errorf("DB_URL search_path parses error")
}
dbSchema = value[0]
- }else{
+ } else {
dbSchema = "public"
}
}
@@ -65,7 +82,7 @@ func DbtConverter(taskCtx core.SubTaskContext) error {
config := viper.New()
config.Set(projectName+".target", projectTarget)
config.Set(projectName+".outputs."+projectTarget+".type", dbType)
-
+
dbPortInt, _ := strconv.Atoi(dbPort)
config.Set(projectName+".outputs."+projectTarget+".port", dbPortInt)
config.Set(projectName+".outputs."+projectTarget+".password", dbPassword)
@@ -73,13 +90,13 @@ func DbtConverter(taskCtx core.SubTaskContext) error {
if flag == 0 {
config.Set(projectName+".outputs."+projectTarget+".server", dbServer)
config.Set(projectName+".outputs."+projectTarget+".username", dbUsername)
- config.Set(projectName+".outputs."+projectTarget+".database", dbDataBase)
+ config.Set(projectName+".outputs."+projectTarget+".database", dbDataBase)
} else {
config.Set(projectName+".outputs."+projectTarget+".host", dbServer)
config.Set(projectName+".outputs."+projectTarget+".user", dbUsername)
config.Set(projectName+".outputs."+projectTarget+".dbname", dbDataBase)
}
-
+
err = config.WriteConfigAs("profiles.yml")
if err != nil {
return err
diff --git a/plugins/dbt/tasks/task_data.go b/plugins/dbt/tasks/task_data.go
index 02751789..7733d836 100644
--- a/plugins/dbt/tasks/task_data.go
+++ b/plugins/dbt/tasks/task_data.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
type DbtOptions struct {
diff --git a/plugins/feishu/apimodels/meeting_top_user_item_result.go b/plugins/feishu/apimodels/meeting_top_user_item_result.go
index 0a3892af..a9a80afa 100644
--- a/plugins/feishu/apimodels/meeting_top_user_item_result.go
+++ b/plugins/feishu/apimodels/meeting_top_user_item_result.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package apimodels
import "encoding/json"
diff --git a/plugins/feishu/feishu.go b/plugins/feishu/feishu.go
index e67f1394..2902cd32 100644
--- a/plugins/feishu/feishu.go
+++ b/plugins/feishu/feishu.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main
import (
- "github.com/merico-dev/lake/migration"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/feishu/models/migrationscripts"
- "github.com/merico-dev/lake/plugins/feishu/tasks"
- "github.com/merico-dev/lake/runner"
+ "github.com/apache/incubator-devlake/migration"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/feishu/models/migrationscripts"
+ "github.com/apache/incubator-devlake/plugins/feishu/tasks"
+ "github.com/apache/incubator-devlake/runner"
"github.com/mitchellh/mapstructure"
"github.com/spf13/cobra"
"github.com/spf13/viper"
@@ -52,7 +69,7 @@ func (plugin Feishu) PrepareTaskData(taskCtx core.TaskContext, options map[strin
}
func (plugin Feishu) RootPkgPath() string {
- return "github.com/merico-dev/lake/plugins/feishu"
+ return "github.com/apache/incubator-devlake/plugins/feishu"
}
func (plugin Feishu) MigrationScripts() []migration.Script {
diff --git a/plugins/feishu/models/meeting_top_user_item.go b/plugins/feishu/models/meeting_top_user_item.go
index 27fa0b8e..989090e7 100644
--- a/plugins/feishu/models/meeting_top_user_item.go
+++ b/plugins/feishu/models/meeting_top_user_item.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
diff --git a/plugins/feishu/models/migrationscripts/archived/meeting_top_user_item.go b/plugins/feishu/models/migrationscripts/archived/meeting_top_user_item.go
index 53575983..149a6da9 100644
--- a/plugins/feishu/models/migrationscripts/archived/meeting_top_user_item.go
+++ b/plugins/feishu/models/migrationscripts/archived/meeting_top_user_item.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type FeishuMeetingTopUserItem struct {
diff --git a/plugins/feishu/models/migrationscripts/init_schema.go b/plugins/feishu/models/migrationscripts/init_schema.go
index af1b5ade..6f6cd06a 100644
--- a/plugins/feishu/models/migrationscripts/init_schema.go
+++ b/plugins/feishu/models/migrationscripts/init_schema.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/plugins/feishu/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/plugins/feishu/models/migrationscripts/archived"
"gorm.io/gorm"
)
diff --git a/plugins/feishu/tasks/api_client.go b/plugins/feishu/tasks/api_client.go
index 44df9cbf..d6b7b7d0 100644
--- a/plugins/feishu/tasks/api_client.go
+++ b/plugins/feishu/tasks/api_client.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"fmt"
"net/http"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
- "github.com/merico-dev/lake/utils"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
+ "github.com/apache/incubator-devlake/utils"
)
type ApiAccessTokenRequest struct {
diff --git a/plugins/feishu/tasks/meeting_top_user_item_collector.go b/plugins/feishu/tasks/meeting_top_user_item_collector.go
index 2c669fcc..4b8ce214 100644
--- a/plugins/feishu/tasks/meeting_top_user_item_collector.go
+++ b/plugins/feishu/tasks/meeting_top_user_item_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -6,9 +23,9 @@ import (
"net/url"
"strconv"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/feishu/apimodels"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/feishu/apimodels"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
const RAW_MEETING_TOP_USER_ITEM_TABLE = "feishu_meeting_top_user_item"
@@ -63,9 +80,8 @@ func CollectMeetingTopUserItem(taskCtx core.SubTaskContext) error {
}
var CollectMeetingTopUserItemMeta = core.SubTaskMeta{
- Name: "collectMeetingTopUserItem",
- EntryPoint: CollectMeetingTopUserItem,
+ Name: "collectMeetingTopUserItem",
+ EntryPoint: CollectMeetingTopUserItem,
EnabledByDefault: true,
- Description: "Collect top user meeting data from Feishu api",
+ Description: "Collect top user meeting data from Feishu api",
}
-
diff --git a/plugins/feishu/tasks/meeting_top_user_item_extractor.go b/plugins/feishu/tasks/meeting_top_user_item_extractor.go
index ddd932d0..6459447d 100644
--- a/plugins/feishu/tasks/meeting_top_user_item_extractor.go
+++ b/plugins/feishu/tasks/meeting_top_user_item_extractor.go
@@ -1,16 +1,33 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
- "github.com/merico-dev/lake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/feishu/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/feishu/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var _ core.SubTaskEntryPoint = ExtractMeetingTopUserItem
-func ExtractMeetingTopUserItem(taskCtx core.SubTaskContext) error{
-
+func ExtractMeetingTopUserItem(taskCtx core.SubTaskContext) error {
+
exetractor, err := helper.NewApiExtractor(helper.ApiExtractorArgs{
RawDataSubTaskArgs: helper.RawDataSubTaskArgs{
Ctx: taskCtx,
@@ -19,29 +36,29 @@ func ExtractMeetingTopUserItem(taskCtx core.SubTaskContext) error{
},
Table: RAW_MEETING_TOP_USER_ITEM_TABLE,
},
- Extract: func(row *helper.RawData) ([]interface{}, error){
+ Extract: func(row *helper.RawData) ([]interface{}, error) {
body := &models.FeishuMeetingTopUserItem{}
err := json.Unmarshal(row.Data, body)
- if err != nil{
+ if err != nil {
return nil, err
}
rawInput := &helper.DatePair{}
rawErr := json.Unmarshal(row.Input, rawInput)
- if rawErr != nil{
+ if rawErr != nil {
return nil, rawErr
}
results := make([]interface{}, 0)
results = append(results, &models.FeishuMeetingTopUserItem{
- StartTime: rawInput.PairStartTime.AddDate(0, 0, -1),
- MeetingCount: body.MeetingCount,
+ StartTime: rawInput.PairStartTime.AddDate(0, 0, -1),
+ MeetingCount: body.MeetingCount,
MeetingDuration: body.MeetingDuration,
- Name: body.Name,
- UserType: body.UserType,
+ Name: body.Name,
+ UserType: body.UserType,
})
return results, nil
- },
+ },
})
- if err != nil{
+ if err != nil {
return err
}
@@ -49,8 +66,8 @@ func ExtractMeetingTopUserItem(taskCtx core.SubTaskContext) error{
}
var ExtractMeetingTopUserItemMeta = core.SubTaskMeta{
- Name: "extractMeetingTopUserItem",
- EntryPoint: ExtractMeetingTopUserItem,
+ Name: "extractMeetingTopUserItem",
+ EntryPoint: ExtractMeetingTopUserItem,
EnabledByDefault: true,
- Description: "Extrat raw top user meeting data into tool layer table feishu_meeting_top_user_item",
+ Description: "Extrat raw top user meeting data into tool layer table feishu_meeting_top_user_item",
}
diff --git a/plugins/feishu/tasks/task_data.go b/plugins/feishu/tasks/task_data.go
index 77a61a57..aad0549d 100644
--- a/plugins/feishu/tasks/task_data.go
+++ b/plugins/feishu/tasks/task_data.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
- "github.com/merico-dev/lake/plugins/feishu/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/feishu/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
type FeishuApiParams struct {
@@ -19,4 +36,3 @@ type FeishuTaskData struct {
ApiClient *helper.ApiAsyncClient
FeishuMeetingTopUserItem *models.FeishuMeetingTopUserItem
}
-
diff --git a/plugins/gitextractor/README-zh-CN.md b/plugins/gitextractor/README-zh-CN.md
index c572062b..20a83b4a 100644
--- a/plugins/gitextractor/README-zh-CN.md
+++ b/plugins/gitextractor/README-zh-CN.md
@@ -17,7 +17,7 @@ curl --location --request POST 'localhost:8080/pipelines' \
{
"Plugin": "gitextractor",
"Options": {
- "url": "https://github.com/merico-dev/lake.git",
+ "url": "https://github.com/apache/incubator-devlake.git",
"repoId": "github:GithubRepos:384111310"
}
}
@@ -39,7 +39,7 @@ curl --location --request POST 'localhost:8080/pipelines' \
本插件可以作为独立于DevLake服务的命令行工具使用:
```
-go run plugins/gitextractor/main.go -url https://github.com/merico-dev/lake.git -id github:GithubRepo:384111310 -db "merico:merico@tcp(127.0.0.1:3306)/lake?charset=utf8mb4&parseTime=True"
+go run plugins/gitextractor/main.go -url https://github.com/apache/incubator-devlake.git -id github:GithubRepo:384111310 -db "merico:merico@tcp(127.0.0.1:3306)/lake?charset=utf8mb4&parseTime=True"
```
如果想了解命令行工具的更多选项,比如如何输出收集结果到csv文件,请直接阅读`plugins/gitextractor/main.go`。
\ No newline at end of file
diff --git a/plugins/gitextractor/README.md b/plugins/gitextractor/README.md
index 1fd16dd4..5866a899 100644
--- a/plugins/gitextractor/README.md
+++ b/plugins/gitextractor/README.md
@@ -22,7 +22,7 @@ curl --location --request POST 'localhost:8080/pipelines' \
{
"Plugin": "gitextractor",
"Options": {
- "url": "https://github.com/merico-dev/lake.git",
+ "url": "https://github.com/apache/incubator-devlake.git",
"repoId": "github:GithubRepo:384111310"
}
}
@@ -45,7 +45,7 @@ curl --location --request POST 'localhost:8080/pipelines' \
You call also run this plugin in a standalone mode without any DevLake service running using the following command:
```
-go run plugins/gitextractor/main.go -url https://github.com/merico-dev/lake.git -id github:GithubRepo:384111310 -db "merico:merico@tcp(127.0.0.1:3306)/lake?charset=utf8mb4&parseTime=True"
+go run plugins/gitextractor/main.go -url https://github.com/apache/incubator-devlake.git -id github:GithubRepo:384111310 -db "merico:merico@tcp(127.0.0.1:3306)/lake?charset=utf8mb4&parseTime=True"
```
For more options (e.g., saving to a csv file instead of a db), please read `plugins/gitextractor/main.go`.
diff --git a/plugins/gitextractor/gitextractor.go b/plugins/gitextractor/gitextractor.go
index 7a72a702..4cf9a508 100644
--- a/plugins/gitextractor/gitextractor.go
+++ b/plugins/gitextractor/gitextractor.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main
import (
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/gitextractor/tasks"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/gitextractor/tasks"
"github.com/mitchellh/mapstructure"
)
@@ -37,7 +54,7 @@ func (plugin GitExtractor) PrepareTaskData(taskCtx core.TaskContext, options map
}
func (plugin GitExtractor) RootPkgPath() string {
- return "github.com/merico-dev/lake/plugins/gitextractor"
+ return "github.com/apache/incubator-devlake/plugins/gitextractor"
}
// Export a variable named PluginEntry for Framework to search and load
diff --git a/plugins/gitextractor/main.go b/plugins/gitextractor/main.go
index 203da0fd..7da1f30a 100644
--- a/plugins/gitextractor/main.go
+++ b/plugins/gitextractor/main.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main
import (
@@ -5,13 +22,13 @@ import (
"flag"
"strings"
- "github.com/merico-dev/lake/logger"
+ "github.com/apache/incubator-devlake/logger"
- "github.com/merico-dev/lake/config"
- "github.com/merico-dev/lake/plugins/gitextractor/models"
- "github.com/merico-dev/lake/plugins/gitextractor/parser"
- "github.com/merico-dev/lake/plugins/gitextractor/store"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/config"
+ "github.com/apache/incubator-devlake/plugins/gitextractor/models"
+ "github.com/apache/incubator-devlake/plugins/gitextractor/parser"
+ "github.com/apache/incubator-devlake/plugins/gitextractor/store"
+ "github.com/apache/incubator-devlake/plugins/helper"
"gorm.io/driver/mysql"
"gorm.io/gorm"
)
diff --git a/plugins/gitextractor/models/interface.go b/plugins/gitextractor/models/interface.go
index d116551f..4ed54d7e 100644
--- a/plugins/gitextractor/models/interface.go
+++ b/plugins/gitextractor/models/interface.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
)
type Store interface {
diff --git a/plugins/gitextractor/parser/clone.go b/plugins/gitextractor/parser/clone.go
index ed60f113..d61fcc30 100644
--- a/plugins/gitextractor/parser/clone.go
+++ b/plugins/gitextractor/parser/clone.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package parser
import (
diff --git a/plugins/gitextractor/parser/libgit2.go b/plugins/gitextractor/parser/libgit2.go
index 1d179d93..218135d8 100644
--- a/plugins/gitextractor/parser/libgit2.go
+++ b/plugins/gitextractor/parser/libgit2.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package parser
import (
@@ -6,10 +23,10 @@ import (
git "github.com/libgit2/git2go/v33"
- "github.com/merico-dev/lake/models/domainlayer"
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/gitextractor/models"
+ "github.com/apache/incubator-devlake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/gitextractor/models"
)
const (
diff --git a/plugins/gitextractor/store/csv.go b/plugins/gitextractor/store/csv.go
index ff458672..2eb8edea 100644
--- a/plugins/gitextractor/store/csv.go
+++ b/plugins/gitextractor/store/csv.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package store
import (
@@ -7,7 +24,7 @@ import (
"path/filepath"
"reflect"
- "github.com/merico-dev/lake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
)
type csvWriter struct {
diff --git a/plugins/gitextractor/store/csv_test.go b/plugins/gitextractor/store/csv_test.go
index 216dfa23..570175b7 100644
--- a/plugins/gitextractor/store/csv_test.go
+++ b/plugins/gitextractor/store/csv_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package store
import (
@@ -7,7 +24,7 @@ import (
"testing"
"time"
- "github.com/merico-dev/lake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
)
func Test_csvWriter_Write(t *testing.T) {
diff --git a/plugins/gitextractor/store/database.go b/plugins/gitextractor/store/database.go
index e1eb7332..7c872c8d 100644
--- a/plugins/gitextractor/store/database.go
+++ b/plugins/gitextractor/store/database.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package store
import (
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/plugins/helper"
"gorm.io/gorm"
"reflect"
)
@@ -10,7 +27,7 @@ import (
const BathSize = 100
type Database struct {
- db *gorm.DB
+ //db *gorm.DB
driver *helper.BatchSaveDivider
}
diff --git a/plugins/gitextractor/tasks/git_repo_collector.go b/plugins/gitextractor/tasks/git_repo_collector.go
index 5109d41b..0ee6fece 100644
--- a/plugins/gitextractor/tasks/git_repo_collector.go
+++ b/plugins/gitextractor/tasks/git_repo_collector.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"errors"
"strings"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/gitextractor/parser"
- "github.com/merico-dev/lake/plugins/gitextractor/store"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/gitextractor/parser"
+ "github.com/apache/incubator-devlake/plugins/gitextractor/store"
)
type GitExtractorOptions struct {
diff --git a/plugins/github/api/connection.go b/plugins/github/api/connection.go
index 6436bedc..170d3669 100644
--- a/plugins/github/api/connection.go
+++ b/plugins/github/api/connection.go
@@ -1,18 +1,35 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package api
import (
"fmt"
- "github.com/merico-dev/lake/config"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/config"
+ "github.com/apache/incubator-devlake/plugins/github/models"
"net/http"
"strings"
"time"
+ "github.com/apache/incubator-devlake/plugins/helper"
"github.com/go-playground/validator/v10"
- "github.com/merico-dev/lake/plugins/helper"
"github.com/mitchellh/mapstructure"
- "github.com/merico-dev/lake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/core"
)
type ApiUserPublicEmailResponse []models.PublicEmail
diff --git a/plugins/github/github.go b/plugins/github/github.go
index c9785244..0b5437f7 100644
--- a/plugins/github/github.go
+++ b/plugins/github/github.go
@@ -1,14 +1,31 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main // must be main for plugin entry point
import (
"fmt"
- "github.com/merico-dev/lake/migration"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/api"
- "github.com/merico-dev/lake/plugins/github/models/migrationscripts"
- "github.com/merico-dev/lake/plugins/github/tasks"
- "github.com/merico-dev/lake/runner"
+ "github.com/apache/incubator-devlake/migration"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/api"
+ "github.com/apache/incubator-devlake/plugins/github/models/migrationscripts"
+ "github.com/apache/incubator-devlake/plugins/github/tasks"
+ "github.com/apache/incubator-devlake/runner"
"github.com/mitchellh/mapstructure"
"github.com/spf13/cobra"
"github.com/spf13/viper"
@@ -90,7 +107,7 @@ func (plugin Github) PrepareTaskData(taskCtx core.TaskContext, options map[strin
}
func (plugin Github) RootPkgPath() string {
- return "github.com/merico-dev/lake/plugins/github"
+ return "github.com/apache/incubator-devlake/plugins/github"
}
func (plugin Github) MigrationScripts() []migration.Script {
diff --git a/plugins/github/models/commit.go b/plugins/github/models/commit.go
index 29d0a701..84366cb3 100644
--- a/plugins/github/models/commit.go
+++ b/plugins/github/models/commit.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
"time"
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type GithubCommit struct {
@@ -26,4 +43,3 @@ type GithubCommit struct {
func (GithubCommit) TableName() string {
return "_tool_github_commits"
}
-
diff --git a/plugins/github/models/commit_stats.go b/plugins/github/models/commit_stats.go
index 80e678f8..606a29b5 100644
--- a/plugins/github/models/commit_stats.go
+++ b/plugins/github/models/commit_stats.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
@@ -17,4 +34,3 @@ type GithubCommitStat struct {
func (GithubCommitStat) TableName() string {
return "_tool_github_commit_stats"
}
-
diff --git a/plugins/github/models/connection.go b/plugins/github/models/connection.go
index 1f2380a7..b100c547 100644
--- a/plugins/github/models/connection.go
+++ b/plugins/github/models/connection.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
type GithubConnection struct {
diff --git a/plugins/github/models/issue.go b/plugins/github/models/issue.go
index 77f74f46..6df07b6a 100644
--- a/plugins/github/models/issue.go
+++ b/plugins/github/models/issue.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
diff --git a/plugins/github/models/issue_comment.go b/plugins/github/models/issue_comment.go
index 9102dcc5..3dd77221 100644
--- a/plugins/github/models/issue_comment.go
+++ b/plugins/github/models/issue_comment.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
@@ -16,7 +33,6 @@ type GithubIssueComment struct {
common.NoPKModel
}
-func (GithubIssueComment) TableName() string{
+func (GithubIssueComment) TableName() string {
return "_tool_github_issue_comments"
}
-
diff --git a/plugins/github/models/issue_event.go b/plugins/github/models/issue_event.go
index 0a3d96ca..1d47ec6d 100644
--- a/plugins/github/models/issue_event.go
+++ b/plugins/github/models/issue_event.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
@@ -14,7 +31,6 @@ type GithubIssueEvent struct {
common.NoPKModel
}
-func (GithubIssueEvent) TableName() string{
+func (GithubIssueEvent) TableName() string {
return "_tool_github_issue_events"
}
-
diff --git a/plugins/github/models/issue_label.go b/plugins/github/models/issue_label.go
index 6db2ce0f..6bd74a8c 100644
--- a/plugins/github/models/issue_label.go
+++ b/plugins/github/models/issue_label.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
// Please note that Issue Labels can also apply to Pull Requests.
@@ -13,7 +30,6 @@ type GithubIssueLabel struct {
common.NoPKModel
}
-func (GithubIssueLabel) TableName() string{
+func (GithubIssueLabel) TableName() string {
return "_tool_github_issue_labels"
}
-
diff --git a/plugins/github/models/migrationscripts/archived/commit.go b/plugins/github/models/migrationscripts/archived/commit.go
index 3fee2235..d428b448 100644
--- a/plugins/github/models/migrationscripts/archived/commit.go
+++ b/plugins/github/models/migrationscripts/archived/commit.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubCommit struct {
diff --git a/plugins/github/models/migrationscripts/archived/commit_stat.go b/plugins/github/models/migrationscripts/archived/commit_stat.go
index bad53624..828d4dbc 100644
--- a/plugins/github/models/migrationscripts/archived/commit_stat.go
+++ b/plugins/github/models/migrationscripts/archived/commit_stat.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubCommitStat struct {
diff --git a/plugins/github/models/migrationscripts/archived/issue.go b/plugins/github/models/migrationscripts/archived/issue.go
index 7e7c53bc..17a49fcb 100644
--- a/plugins/github/models/migrationscripts/archived/issue.go
+++ b/plugins/github/models/migrationscripts/archived/issue.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubIssue struct {
diff --git a/plugins/github/models/migrationscripts/archived/issue_comment.go b/plugins/github/models/migrationscripts/archived/issue_comment.go
index a229a528..b17c79a7 100644
--- a/plugins/github/models/migrationscripts/archived/issue_comment.go
+++ b/plugins/github/models/migrationscripts/archived/issue_comment.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubIssueComment struct {
diff --git a/plugins/github/models/migrationscripts/archived/issue_event.go b/plugins/github/models/migrationscripts/archived/issue_event.go
index f4883657..eb2d14aa 100644
--- a/plugins/github/models/migrationscripts/archived/issue_event.go
+++ b/plugins/github/models/migrationscripts/archived/issue_event.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubIssueEvent struct {
diff --git a/plugins/github/models/migrationscripts/archived/issue_label.go b/plugins/github/models/migrationscripts/archived/issue_label.go
index 2b937504..e37b2b34 100644
--- a/plugins/github/models/migrationscripts/archived/issue_label.go
+++ b/plugins/github/models/migrationscripts/archived/issue_label.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
-import "github.com/merico-dev/lake/models/migrationscripts/archived"
+import "github.com/apache/incubator-devlake/models/migrationscripts/archived"
// Please note that Issue Labels can also apply to Pull Requests.
// Pull Requests are considered Issues in GitHub.
diff --git a/plugins/github/models/migrationscripts/archived/pull_request.go b/plugins/github/models/migrationscripts/archived/pull_request.go
index 59cae976..43895e7d 100644
--- a/plugins/github/models/migrationscripts/archived/pull_request.go
+++ b/plugins/github/models/migrationscripts/archived/pull_request.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubPullRequest struct {
diff --git a/plugins/github/models/migrationscripts/archived/pull_request_comment.go b/plugins/github/models/migrationscripts/archived/pull_request_comment.go
index b526aebe..e1fe4457 100644
--- a/plugins/github/models/migrationscripts/archived/pull_request_comment.go
+++ b/plugins/github/models/migrationscripts/archived/pull_request_comment.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubPullRequestComment struct {
diff --git a/plugins/github/models/migrationscripts/archived/pull_request_commit.go b/plugins/github/models/migrationscripts/archived/pull_request_commit.go
index 73f5adf6..ea8c6e51 100644
--- a/plugins/github/models/migrationscripts/archived/pull_request_commit.go
+++ b/plugins/github/models/migrationscripts/archived/pull_request_commit.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
-import "github.com/merico-dev/lake/models/migrationscripts/archived"
+import "github.com/apache/incubator-devlake/models/migrationscripts/archived"
type GithubPullRequestCommit struct {
CommitSha string `gorm:"primaryKey;type:varchar(40)"`
diff --git a/plugins/github/models/migrationscripts/archived/pull_request_issue.go b/plugins/github/models/migrationscripts/archived/pull_request_issue.go
index 46b191c5..67887fd2 100644
--- a/plugins/github/models/migrationscripts/archived/pull_request_issue.go
+++ b/plugins/github/models/migrationscripts/archived/pull_request_issue.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
-import "github.com/merico-dev/lake/models/migrationscripts/archived"
+import "github.com/apache/incubator-devlake/models/migrationscripts/archived"
type GithubPullRequestIssue struct {
PullRequestId int `gorm:"primaryKey"`
diff --git a/plugins/github/models/migrationscripts/archived/pull_request_label.go b/plugins/github/models/migrationscripts/archived/pull_request_label.go
index 49396bd7..73795001 100644
--- a/plugins/github/models/migrationscripts/archived/pull_request_label.go
+++ b/plugins/github/models/migrationscripts/archived/pull_request_label.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
-import "github.com/merico-dev/lake/models/migrationscripts/archived"
+import "github.com/apache/incubator-devlake/models/migrationscripts/archived"
// Please note that Issue Labels can also apply to Pull Requests.
// Pull Requests are considered Issues in GitHub.
diff --git a/plugins/github/models/migrationscripts/archived/repo.go b/plugins/github/models/migrationscripts/archived/repo.go
index 2864b955..2a514a2a 100644
--- a/plugins/github/models/migrationscripts/archived/repo.go
+++ b/plugins/github/models/migrationscripts/archived/repo.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GithubRepo struct {
diff --git a/plugins/github/models/migrationscripts/archived/repo_commit.go b/plugins/github/models/migrationscripts/archived/repo_commit.go
index e8765c9c..3f821613 100644
--- a/plugins/github/models/migrationscripts/archived/repo_commit.go
+++ b/plugins/github/models/migrationscripts/archived/repo_commit.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
-import "github.com/merico-dev/lake/models/migrationscripts/archived"
+import "github.com/apache/incubator-devlake/models/migrationscripts/archived"
type GithubRepoCommit struct {
RepoId int `gorm:"primaryKey"`
diff --git a/plugins/github/models/migrationscripts/archived/reviewer.go b/plugins/github/models/migrationscripts/archived/reviewer.go
index a42d8adf..b4ba0ee1 100644
--- a/plugins/github/models/migrationscripts/archived/reviewer.go
+++ b/plugins/github/models/migrationscripts/archived/reviewer.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
-import "github.com/merico-dev/lake/models/migrationscripts/archived"
+import "github.com/apache/incubator-devlake/models/migrationscripts/archived"
type GithubReviewer struct {
GithubId int `gorm:"primaryKey"`
diff --git a/plugins/github/models/migrationscripts/archived/user.go b/plugins/github/models/migrationscripts/archived/user.go
index 3492b830..0ce83053 100644
--- a/plugins/github/models/migrationscripts/archived/user.go
+++ b/plugins/github/models/migrationscripts/archived/user.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
-import "github.com/merico-dev/lake/models/migrationscripts/archived"
+import "github.com/apache/incubator-devlake/models/migrationscripts/archived"
type GithubUser struct {
Id int `json:"id" gorm:"primaryKey"`
diff --git a/plugins/github/models/migrationscripts/init_schema.go b/plugins/github/models/migrationscripts/init_schema.go
index b93a1481..b924cb23 100644
--- a/plugins/github/models/migrationscripts/init_schema.go
+++ b/plugins/github/models/migrationscripts/init_schema.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/plugins/github/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/plugins/github/models/migrationscripts/archived"
"gorm.io/gorm"
)
diff --git a/plugins/github/models/migrationscripts/updateSchemas20220509.go b/plugins/github/models/migrationscripts/updateSchemas20220509.go
index cda0ca1d..81dd0ad4 100644
--- a/plugins/github/models/migrationscripts/updateSchemas20220509.go
+++ b/plugins/github/models/migrationscripts/updateSchemas20220509.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
"time"
"gorm.io/gorm"
diff --git a/plugins/github/models/pr.go b/plugins/github/models/pr.go
index 7b6d8a97..a9e870a9 100644
--- a/plugins/github/models/pr.go
+++ b/plugins/github/models/pr.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
@@ -39,4 +56,3 @@ type GithubPullRequest struct {
func (GithubPullRequest) TableName() string {
return "_tool_github_pull_requests"
}
-
diff --git a/plugins/github/models/pr_comment.go b/plugins/github/models/pr_comment.go
index 8e1e1d08..e1cfdb18 100644
--- a/plugins/github/models/pr_comment.go
+++ b/plugins/github/models/pr_comment.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
@@ -16,7 +33,6 @@ type GithubPullRequestComment struct {
common.NoPKModel
}
-func (GithubPullRequestComment) TableName() string{
+func (GithubPullRequestComment) TableName() string {
return "_tool_github_pull_request_comments"
}
-
diff --git a/plugins/github/models/pr_commit.go b/plugins/github/models/pr_commit.go
index f1e474bd..fce0261d 100644
--- a/plugins/github/models/pr_commit.go
+++ b/plugins/github/models/pr_commit.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type GithubPullRequestCommit struct {
@@ -10,7 +27,6 @@ type GithubPullRequestCommit struct {
common.NoPKModel
}
-func (GithubPullRequestCommit) TableName() string{
+func (GithubPullRequestCommit) TableName() string {
return "_tool_github_pull_request_commits"
}
-
diff --git a/plugins/github/models/pr_issue.go b/plugins/github/models/pr_issue.go
index 8745252b..088065d1 100644
--- a/plugins/github/models/pr_issue.go
+++ b/plugins/github/models/pr_issue.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type GithubPullRequestIssue struct {
PullRequestId int `gorm:"primaryKey"`
diff --git a/plugins/github/models/pr_label.go b/plugins/github/models/pr_label.go
index 5b5fee60..0eb26138 100644
--- a/plugins/github/models/pr_label.go
+++ b/plugins/github/models/pr_label.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
// Please note that Issue Labels can also apply to Pull Requests.
@@ -13,7 +30,6 @@ type GithubPullRequestLabel struct {
common.NoPKModel
}
-func (GithubPullRequestLabel) TableName() string{
+func (GithubPullRequestLabel) TableName() string {
return "_tool_github_pull_request_labels"
}
-
diff --git a/plugins/github/models/repo.go b/plugins/github/models/repo.go
index f08b60f2..b52b443e 100644
--- a/plugins/github/models/repo.go
+++ b/plugins/github/models/repo.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
"time"
)
@@ -20,7 +37,6 @@ type GithubRepo struct {
common.NoPKModel
}
-func (GithubRepo) TableName() string{
+func (GithubRepo) TableName() string {
return "_tool_github_repos"
}
-
diff --git a/plugins/github/models/repo_commit.go b/plugins/github/models/repo_commit.go
index a16e6903..bb82a7c6 100644
--- a/plugins/github/models/repo_commit.go
+++ b/plugins/github/models/repo_commit.go
@@ -1,6 +1,23 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
-import "github.com/merico-dev/lake/models/common"
+import "github.com/apache/incubator-devlake/models/common"
type GithubRepoCommit struct {
RepoId int `gorm:"primaryKey"`
@@ -11,4 +28,3 @@ type GithubRepoCommit struct {
func (GithubRepoCommit) TableName() string {
return "_tool_github_repo_commits"
}
-
diff --git a/plugins/github/models/reviewer.go b/plugins/github/models/reviewer.go
index e7b2f3c2..9ce19c47 100644
--- a/plugins/github/models/reviewer.go
+++ b/plugins/github/models/reviewer.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type GithubReviewer struct {
@@ -12,7 +29,6 @@ type GithubReviewer struct {
common.NoPKModel
}
-func (GithubReviewer) TableName() string{
+func (GithubReviewer) TableName() string {
return "_tool_github_reviewers"
}
-
diff --git a/plugins/github/models/user.go b/plugins/github/models/user.go
index bc2d2e19..56d00180 100644
--- a/plugins/github/models/user.go
+++ b/plugins/github/models/user.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type GithubUser struct {
@@ -14,7 +31,6 @@ type GithubUser struct {
common.NoPKModel
}
-func (GithubUser) TableName() string{
+func (GithubUser) TableName() string {
return "_tool_github_users"
}
-
diff --git a/plugins/github/tasks/api_client.go b/plugins/github/tasks/api_client.go
index 9b420a5b..94a60e05 100644
--- a/plugins/github/tasks/api_client.go
+++ b/plugins/github/tasks/api_client.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -7,9 +24,9 @@ import (
"strings"
"time"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
- "github.com/merico-dev/lake/utils"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
+ "github.com/apache/incubator-devlake/utils"
)
func CreateApiClient(taskCtx core.TaskContext) (*helper.ApiAsyncClient, error) {
diff --git a/plugins/github/tasks/comment_collector.go b/plugins/github/tasks/comment_collector.go
index 35a7b0d2..e7c22989 100644
--- a/plugins/github/tasks/comment_collector.go
+++ b/plugins/github/tasks/comment_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -6,10 +23,10 @@ import (
"net/http"
"net/url"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_COMMENTS_TABLE = "github_api_comments"
diff --git a/plugins/github/tasks/comment_extractor.go b/plugins/github/tasks/comment_extractor.go
index 07551c1b..4627d976 100644
--- a/plugins/github/tasks/comment_extractor.go
+++ b/plugins/github/tasks/comment_extractor.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- githubUtils "github.com/merico-dev/lake/plugins/github/utils"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ githubUtils "github.com/apache/incubator-devlake/plugins/github/utils"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiCommentsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/commit_collector.go b/plugins/github/tasks/commit_collector.go
index 3c4f773c..5eab83b7 100644
--- a/plugins/github/tasks/commit_collector.go
+++ b/plugins/github/tasks/commit_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -6,10 +23,10 @@ import (
"net/http"
"net/url"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_COMMIT_TABLE = "github_api_commits"
diff --git a/plugins/github/tasks/commit_convertor.go b/plugins/github/tasks/commit_convertor.go
index 1e783cd8..076798b2 100644
--- a/plugins/github/tasks/commit_convertor.go
+++ b/plugins/github/tasks/commit_convertor.go
@@ -1,13 +1,30 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertCommitsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/commit_extractor.go b/plugins/github/tasks/commit_extractor.go
index 9f74d289..adcd8301 100644
--- a/plugins/github/tasks/commit_extractor.go
+++ b/plugins/github/tasks/commit_extractor.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiCommitsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/commit_stats_collector.go b/plugins/github/tasks/commit_stats_collector.go
index b17dd8a2..dba00728 100644
--- a/plugins/github/tasks/commit_stats_collector.go
+++ b/plugins/github/tasks/commit_stats_collector.go
@@ -1,16 +1,33 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
"fmt"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
"io/ioutil"
"net/http"
"net/url"
"reflect"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_COMMIT_STATS_TABLE = "github_api_commit_stats"
diff --git a/plugins/github/tasks/commit_stats_extractor.go b/plugins/github/tasks/commit_stats_extractor.go
index 8736cfde..90f2174d 100644
--- a/plugins/github/tasks/commit_stats_extractor.go
+++ b/plugins/github/tasks/commit_stats_extractor.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiCommitStatsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/event_collector.go b/plugins/github/tasks/event_collector.go
index d2a7eaba..b040baa7 100644
--- a/plugins/github/tasks/event_collector.go
+++ b/plugins/github/tasks/event_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -6,10 +23,10 @@ import (
"net/http"
"net/url"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_EVENTS_TABLE = "github_api_events"
diff --git a/plugins/github/tasks/event_extractor.go b/plugins/github/tasks/event_extractor.go
index 45102244..3b209090 100644
--- a/plugins/github/tasks/event_extractor.go
+++ b/plugins/github/tasks/event_extractor.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiEventsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/issue_collector.go b/plugins/github/tasks/issue_collector.go
index 2482d8d9..7535bf23 100644
--- a/plugins/github/tasks/issue_collector.go
+++ b/plugins/github/tasks/issue_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -6,10 +23,10 @@ import (
"net/http"
"net/url"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_ISSUE_TABLE = "github_api_issues"
diff --git a/plugins/github/tasks/issue_comment_convertor.go b/plugins/github/tasks/issue_comment_convertor.go
index 38f1a697..e480ac5d 100644
--- a/plugins/github/tasks/issue_comment_convertor.go
+++ b/plugins/github/tasks/issue_comment_convertor.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
- "github.com/merico-dev/lake/models/domainlayer"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/models/domainlayer/ticket"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/models/domainlayer/ticket"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
"reflect"
)
diff --git a/plugins/github/tasks/issue_convertor.go b/plugins/github/tasks/issue_convertor.go
index 46c8bac7..7f435295 100644
--- a/plugins/github/tasks/issue_convertor.go
+++ b/plugins/github/tasks/issue_convertor.go
@@ -1,16 +1,33 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
"strconv"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/models/domainlayer"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/models/domainlayer/ticket"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/models/domainlayer/ticket"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
)
var ConvertIssuesMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/issue_extractor.go b/plugins/github/tasks/issue_extractor.go
index 2cd8280f..6bc77fd7 100644
--- a/plugins/github/tasks/issue_extractor.go
+++ b/plugins/github/tasks/issue_extractor.go
@@ -1,14 +1,30 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
"regexp"
- "github.com/merico-dev/lake/models/domainlayer/ticket"
-
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer/ticket"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiIssuesMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/issue_label_convertor.go b/plugins/github/tasks/issue_label_convertor.go
index cdf6d805..b2ece5dc 100644
--- a/plugins/github/tasks/issue_label_convertor.go
+++ b/plugins/github/tasks/issue_label_convertor.go
@@ -1,13 +1,30 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/models/domainlayer/ticket"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/models/domainlayer/ticket"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertIssueLabelsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/pr_collector.go b/plugins/github/tasks/pr_collector.go
index da0d2e17..83a5a3cb 100644
--- a/plugins/github/tasks/pr_collector.go
+++ b/plugins/github/tasks/pr_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -6,10 +23,10 @@ import (
"net/http"
"net/url"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_PULL_REQUEST_TABLE = "github_api_pull_requests"
diff --git a/plugins/github/tasks/pr_comment_convertor.go b/plugins/github/tasks/pr_comment_convertor.go
index 0493cd2b..d6260804 100644
--- a/plugins/github/tasks/pr_comment_convertor.go
+++ b/plugins/github/tasks/pr_comment_convertor.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
- "github.com/merico-dev/lake/models/domainlayer"
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
"reflect"
)
diff --git a/plugins/github/tasks/pr_commit_collector.go b/plugins/github/tasks/pr_commit_collector.go
index ba0ac43c..527881f0 100644
--- a/plugins/github/tasks/pr_commit_collector.go
+++ b/plugins/github/tasks/pr_commit_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -7,10 +24,10 @@ import (
"net/url"
"reflect"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_PULL_REQUEST_COMMIT_TABLE = "github_api_pull_request_commits"
diff --git a/plugins/github/tasks/pr_commit_convertor.go b/plugins/github/tasks/pr_commit_convertor.go
index 9fe2e6c4..52c43f00 100644
--- a/plugins/github/tasks/pr_commit_convertor.go
+++ b/plugins/github/tasks/pr_commit_convertor.go
@@ -1,13 +1,30 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertPullRequestCommitsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/pr_commit_extractor.go b/plugins/github/tasks/pr_commit_extractor.go
index 6ee35801..de0bf3d0 100644
--- a/plugins/github/tasks/pr_commit_extractor.go
+++ b/plugins/github/tasks/pr_commit_extractor.go
@@ -1,13 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
"strings"
- "github.com/merico-dev/lake/plugins/github/models"
-
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiPullRequestCommitsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/pr_convertor.go b/plugins/github/tasks/pr_convertor.go
index 2801f47c..1b53c6ef 100644
--- a/plugins/github/tasks/pr_convertor.go
+++ b/plugins/github/tasks/pr_convertor.go
@@ -1,14 +1,31 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
- "github.com/merico-dev/lake/models/domainlayer"
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertPullRequestsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/pr_extractor.go b/plugins/github/tasks/pr_extractor.go
index 0fd65542..db6e18be 100644
--- a/plugins/github/tasks/pr_extractor.go
+++ b/plugins/github/tasks/pr_extractor.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
"regexp"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiPullRequestsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/pr_issue_convertor.go b/plugins/github/tasks/pr_issue_convertor.go
index df20f67c..5a9ff729 100644
--- a/plugins/github/tasks/pr_issue_convertor.go
+++ b/plugins/github/tasks/pr_issue_convertor.go
@@ -1,13 +1,30 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
- "github.com/merico-dev/lake/models/domainlayer/crossdomain"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer/crossdomain"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertPullRequestIssuesMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/pr_issue_enricher.go b/plugins/github/tasks/pr_issue_enricher.go
index d8a0038d..6fa108dc 100644
--- a/plugins/github/tasks/pr_issue_enricher.go
+++ b/plugins/github/tasks/pr_issue_enricher.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
"reflect"
"regexp"
"strconv"
diff --git a/plugins/github/tasks/pr_label_convertor.go b/plugins/github/tasks/pr_label_convertor.go
index bc5b8e7e..ad0f2bc7 100644
--- a/plugins/github/tasks/pr_label_convertor.go
+++ b/plugins/github/tasks/pr_label_convertor.go
@@ -1,13 +1,30 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertPullRequestLabelsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/pr_review_collector.go b/plugins/github/tasks/pr_review_collector.go
index c1cc9d49..3128dc45 100644
--- a/plugins/github/tasks/pr_review_collector.go
+++ b/plugins/github/tasks/pr_review_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -7,10 +24,10 @@ import (
"net/url"
"reflect"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
)
const RAW_PULL_REQUEST_REVIEW_TABLE = "github_api_pull_request_reviews"
diff --git a/plugins/github/tasks/pr_review_extractor.go b/plugins/github/tasks/pr_review_extractor.go
index 1ca70ca3..ad4b62d0 100644
--- a/plugins/github/tasks/pr_review_extractor.go
+++ b/plugins/github/tasks/pr_review_extractor.go
@@ -1,13 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
"strings"
- "github.com/merico-dev/lake/plugins/github/models"
-
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiPullRequestReviewsMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/repo_collector.go b/plugins/github/tasks/repo_collector.go
index af065644..5cb940f4 100644
--- a/plugins/github/tasks/repo_collector.go
+++ b/plugins/github/tasks/repo_collector.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
@@ -7,18 +24,18 @@ import (
"net/http"
"net/url"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
- "github.com/merico-dev/lake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/core"
)
const RAW_REPOSITORIES_TABLE = "github_api_repositories"
var CollectApiRepoMeta = core.SubTaskMeta{
- Name: "collectApiRepo",
- EntryPoint: CollectApiRepositories,
- Required: true,
- Description: "Collect repositories data from Github api",
+ Name: "collectApiRepo",
+ EntryPoint: CollectApiRepositories,
+ Required: true,
+ Description: "Collect repositories data from Github api",
}
func CollectApiRepositories(taskCtx core.SubTaskContext) error {
diff --git a/plugins/github/tasks/repo_convertor.go b/plugins/github/tasks/repo_convertor.go
index 606b2046..96fbc513 100644
--- a/plugins/github/tasks/repo_convertor.go
+++ b/plugins/github/tasks/repo_convertor.go
@@ -1,16 +1,33 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"fmt"
"reflect"
- "github.com/merico-dev/lake/models/domainlayer"
- "github.com/merico-dev/lake/models/domainlayer/code"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/models/domainlayer/ticket"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer/code"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/models/domainlayer/ticket"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertRepoMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/repositorie_extractor.go b/plugins/github/tasks/repositorie_extractor.go
index 40f83f18..8a118299 100644
--- a/plugins/github/tasks/repositorie_extractor.go
+++ b/plugins/github/tasks/repositorie_extractor.go
@@ -1,12 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"encoding/json"
"fmt"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ExtractApiRepoMeta = core.SubTaskMeta{
diff --git a/plugins/github/tasks/shared.go b/plugins/github/tasks/shared.go
index 894b759e..b7d27c57 100644
--- a/plugins/github/tasks/shared.go
+++ b/plugins/github/tasks/shared.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
- "github.com/merico-dev/lake/plugins/github/utils"
+ "github.com/apache/incubator-devlake/plugins/github/utils"
"net/http"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
func GetTotalPagesFromResponse(res *http.Response, args *helper.ApiCollectorArgs) (int, error) {
diff --git a/plugins/github/tasks/task_data.go b/plugins/github/tasks/task_data.go
index 2bb1065b..f48c77bf 100644
--- a/plugins/github/tasks/task_data.go
+++ b/plugins/github/tasks/task_data.go
@@ -1,10 +1,27 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"time"
- "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
type GithubOptions struct {
diff --git a/plugins/github/tasks/user_convertor.go b/plugins/github/tasks/user_convertor.go
index 18dcdad5..13207e52 100644
--- a/plugins/github/tasks/user_convertor.go
+++ b/plugins/github/tasks/user_convertor.go
@@ -1,14 +1,31 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package tasks
import (
"reflect"
- "github.com/merico-dev/lake/models/domainlayer"
- "github.com/merico-dev/lake/models/domainlayer/didgen"
- "github.com/merico-dev/lake/models/domainlayer/user"
- "github.com/merico-dev/lake/plugins/core"
- githubModels "github.com/merico-dev/lake/plugins/github/models"
- "github.com/merico-dev/lake/plugins/helper"
+ "github.com/apache/incubator-devlake/models/domainlayer"
+ "github.com/apache/incubator-devlake/models/domainlayer/didgen"
+ "github.com/apache/incubator-devlake/models/domainlayer/user"
+ "github.com/apache/incubator-devlake/plugins/core"
+ githubModels "github.com/apache/incubator-devlake/plugins/github/models"
+ "github.com/apache/incubator-devlake/plugins/helper"
)
var ConvertUsersMeta = core.SubTaskMeta{
diff --git a/plugins/github/utils/utils.go b/plugins/github/utils/utils.go
index 730d0e7e..192f9477 100644
--- a/plugins/github/utils/utils.go
+++ b/plugins/github/utils/utils.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package utils
import (
diff --git a/plugins/github/utils/utils_test.go b/plugins/github/utils/utils_test.go
index 358e0fa6..891e97d7 100644
--- a/plugins/github/utils/utils_test.go
+++ b/plugins/github/utils/utils_test.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
// https://golang.org/doc/tutorial/add-a-test
package utils
diff --git a/plugins/gitlab/api/connection.go b/plugins/gitlab/api/connection.go
index cc88542e..fa87719c 100644
--- a/plugins/gitlab/api/connection.go
+++ b/plugins/gitlab/api/connection.go
@@ -1,15 +1,32 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package api
import (
"fmt"
- "github.com/merico-dev/lake/config"
- "github.com/merico-dev/lake/plugins/gitlab/models"
+ "github.com/apache/incubator-devlake/config"
+ "github.com/apache/incubator-devlake/plugins/gitlab/models"
"net/http"
"time"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/helper"
"github.com/go-playground/validator/v10"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/helper"
"github.com/mitchellh/mapstructure"
)
diff --git a/plugins/gitlab/e2e/project_test.go b/plugins/gitlab/e2e/project_test.go
index ec02a14a..cccc01fa 100644
--- a/plugins/gitlab/e2e/project_test.go
+++ b/plugins/gitlab/e2e/project_test.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package e2e
import (
"testing"
- "github.com/merico-dev/lake/plugins/gitlab/impl"
- "github.com/merico-dev/lake/plugins/gitlab/tasks"
- "github.com/merico-dev/lake/testhelper"
+ "github.com/apache/incubator-devlake/plugins/gitlab/impl"
+ "github.com/apache/incubator-devlake/plugins/gitlab/tasks"
+ "github.com/apache/incubator-devlake/testhelper"
)
func TestGitlabDataFlow(t *testing.T) {
diff --git a/plugins/gitlab/gitlab.go b/plugins/gitlab/gitlab.go
index 2a01c51c..a77a62d6 100644
--- a/plugins/gitlab/gitlab.go
+++ b/plugins/gitlab/gitlab.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package main // must be main for plugin entry point
import (
- "github.com/merico-dev/lake/plugins/gitlab/impl"
- "github.com/merico-dev/lake/runner"
+ "github.com/apache/incubator-devlake/plugins/gitlab/impl"
+ "github.com/apache/incubator-devlake/runner"
"github.com/spf13/cobra"
)
diff --git a/plugins/gitlab/impl/impl.go b/plugins/gitlab/impl/impl.go
index 384936ad..a0ce3091 100644
--- a/plugins/gitlab/impl/impl.go
+++ b/plugins/gitlab/impl/impl.go
@@ -1,11 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package impl
import (
- "github.com/merico-dev/lake/migration"
- "github.com/merico-dev/lake/plugins/core"
- "github.com/merico-dev/lake/plugins/gitlab/api"
- "github.com/merico-dev/lake/plugins/gitlab/models/migrationscripts"
- "github.com/merico-dev/lake/plugins/gitlab/tasks"
+ "github.com/apache/incubator-devlake/migration"
+ "github.com/apache/incubator-devlake/plugins/core"
+ "github.com/apache/incubator-devlake/plugins/gitlab/api"
+ "github.com/apache/incubator-devlake/plugins/gitlab/models/migrationscripts"
+ "github.com/apache/incubator-devlake/plugins/gitlab/tasks"
"github.com/mitchellh/mapstructure"
"github.com/spf13/viper"
"gorm.io/gorm"
@@ -75,7 +92,7 @@ func (plugin Gitlab) PrepareTaskData(taskCtx core.TaskContext, options map[strin
}
func (plugin Gitlab) RootPkgPath() string {
- return "github.com/merico-dev/lake/plugins/gitlab"
+ return "github.com/apache/incubator-devlake/plugins/gitlab"
}
func (plugin Gitlab) MigrationScripts() []migration.Script {
@@ -91,7 +108,7 @@ func (plugin Gitlab) ApiResources() map[string]map[string]core.ApiResourceHandle
"GET": api.ListConnections,
},
"connections/:connectionId": {
- "GET": api.GetConnection,
+ "GET": api.GetConnection,
"PATCH": api.PatchConnection,
},
}
diff --git a/plugins/gitlab/models/commit.go b/plugins/gitlab/models/commit.go
index 0768f54c..9378b557 100644
--- a/plugins/gitlab/models/commit.go
+++ b/plugins/gitlab/models/commit.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
import (
"time"
- "github.com/merico-dev/lake/models/common"
+ "github.com/apache/incubator-devlake/models/common"
)
type GitlabCommit struct {
diff --git a/plugins/gitlab/models/connection.go b/plugins/gitlab/models/connection.go
index b5bd475c..9ffc6a3e 100644
--- a/plugins/gitlab/models/connection.go
+++ b/plugins/gitlab/models/connection.go
@@ -1,3 +1,20 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package models
// This object conforms to what the frontend currently sends.
diff --git a/plugins/gitlab/models/migrationscripts/archived/commit.go b/plugins/gitlab/models/migrationscripts/archived/commit.go
index fd3126f4..17c2cbcc 100644
--- a/plugins/gitlab/models/migrationscripts/archived/commit.go
+++ b/plugins/gitlab/models/migrationscripts/archived/commit.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabCommit struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/merge_request.go b/plugins/gitlab/models/migrationscripts/archived/merge_request.go
index b8ed2390..05133b06 100644
--- a/plugins/gitlab/models/migrationscripts/archived/merge_request.go
+++ b/plugins/gitlab/models/migrationscripts/archived/merge_request.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabMergeRequest struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/merge_request_comment.go b/plugins/gitlab/models/migrationscripts/archived/merge_request_comment.go
index 278b0c69..71291055 100644
--- a/plugins/gitlab/models/migrationscripts/archived/merge_request_comment.go
+++ b/plugins/gitlab/models/migrationscripts/archived/merge_request_comment.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabMergeRequestComment struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/merge_request_commit.go b/plugins/gitlab/models/migrationscripts/archived/merge_request_commit.go
index bd5e2e43..397f6d2c 100644
--- a/plugins/gitlab/models/migrationscripts/archived/merge_request_commit.go
+++ b/plugins/gitlab/models/migrationscripts/archived/merge_request_commit.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
// This Model is intended to save commits that are associated to a merge request
diff --git a/plugins/gitlab/models/migrationscripts/archived/merge_request_note.go b/plugins/gitlab/models/migrationscripts/archived/merge_request_note.go
index 6f592215..39a5d23c 100644
--- a/plugins/gitlab/models/migrationscripts/archived/merge_request_note.go
+++ b/plugins/gitlab/models/migrationscripts/archived/merge_request_note.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabMergeRequestNote struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/pipeline.go b/plugins/gitlab/models/migrationscripts/archived/pipeline.go
index 876b0ecb..98223142 100644
--- a/plugins/gitlab/models/migrationscripts/archived/pipeline.go
+++ b/plugins/gitlab/models/migrationscripts/archived/pipeline.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabPipeline struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/project.go b/plugins/gitlab/models/migrationscripts/archived/project.go
index 690f365f..398a3f3e 100644
--- a/plugins/gitlab/models/migrationscripts/archived/project.go
+++ b/plugins/gitlab/models/migrationscripts/archived/project.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
"time"
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabProject struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/project_commits.go b/plugins/gitlab/models/migrationscripts/archived/project_commits.go
index 7c2f950e..033e3d13 100644
--- a/plugins/gitlab/models/migrationscripts/archived/project_commits.go
+++ b/plugins/gitlab/models/migrationscripts/archived/project_commits.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabProjectCommit struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/reviewer.go b/plugins/gitlab/models/migrationscripts/archived/reviewer.go
index 38260178..eb58084d 100644
--- a/plugins/gitlab/models/migrationscripts/archived/reviewer.go
+++ b/plugins/gitlab/models/migrationscripts/archived/reviewer.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabReviewer struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/tag.go b/plugins/gitlab/models/migrationscripts/archived/tag.go
index 13ca6258..c621810a 100644
--- a/plugins/gitlab/models/migrationscripts/archived/tag.go
+++ b/plugins/gitlab/models/migrationscripts/archived/tag.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabTag struct {
diff --git a/plugins/gitlab/models/migrationscripts/archived/user.go b/plugins/gitlab/models/migrationscripts/archived/user.go
index 3716d818..1b3f404b 100644
--- a/plugins/gitlab/models/migrationscripts/archived/user.go
+++ b/plugins/gitlab/models/migrationscripts/archived/user.go
@@ -1,7 +1,24 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package archived
import (
- "github.com/merico-dev/lake/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/models/migrationscripts/archived"
)
type GitlabUser struct {
diff --git a/plugins/gitlab/models/migrationscripts/init_schema.go b/plugins/gitlab/models/migrationscripts/init_schema.go
index efe63e45..ef76e3fd 100644
--- a/plugins/gitlab/models/migrationscripts/init_schema.go
+++ b/plugins/gitlab/models/migrationscripts/init_schema.go
@@ -1,9 +1,26 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/plugins/gitlab/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/plugins/gitlab/models/migrationscripts/archived"
"gorm.io/gorm"
)
diff --git a/plugins/gitlab/models/migrationscripts/updateSchemas20220510.go b/plugins/gitlab/models/migrationscripts/updateSchemas20220510.go
index cebca9c3..18896cab 100644
--- a/plugins/gitlab/models/migrationscripts/updateSchemas20220510.go
+++ b/plugins/gitlab/models/migrationscripts/updateSchemas20220510.go
@@ -1,8 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
package migrationscripts
import (
"context"
- "github.com/merico-dev/lake/plugins/gitlab/models/migrationscripts/archived"
+ "github.com/apache/incubator-devlake/plugins/gitlab/models/migrationscripts/archived"
... 10467 lines suppressed ...