Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update process to add a repository (#134)
* Add GitHub App credentials * Add Github service to generate an installation access token * Add Author#list_repositories * Add link to install GitHub App * Add 'installation_id' to Authors * Store the 'installation_id' returned when installing the GitHub App * Modify Github service to use Author's installation_id * Remove Sessions::Authors since no longer required with GitHub App installation * Remove 'Login with GitHub' button from settings sidebar * Remove omniauth-github gem * Modify Auth::GithubController#create to create new Author * Require installation_id for Author model * Change wording from 'Login with GitHub' to 'Link GitHub account' * Add request test for Auth::GithubController * Add 'owner' column to Repository * Remove 'git_url' and 'token' columns from Repository * Update Settings::Authors::RepositoriesController#index to use GitHub App * Update Settings::Authors::RepositoriesController#new to use GitHub App * Extract available repositories into separate view and action * Revert changes to create and index specs for Settings::Authors::Repositories * Change index for repository name from author_id to owner * Modify Settings::Authors::Repositories#available_repositories to only show repos not yet added * Remove sessions related to author_id * Protect new repository page behind before_action * Add set_available_repositories method * Combine new and edit forms * Modify update repository process to only allow title and branch to be modified * Update RemoveRepoJob * Update RepositoryDirectory#define to use owner instead of author * Update GetGithubDescriptionJob, CloneGithubRepoJob, PullGithubRepoJob * Use Repository.full_name when possible * Update CreateGithubWebhookJob, TestGithubWebhookJob * Replace 'repository.author.github_username' by 'repository.owner' * Update RespondWebhookPushJob * Update system test for Repositories#update * Update system tests for Settings::Authors::Repositories#update * Update request test for Webhooks::GithubController * Remove sessions related to author_id * Remove unused VCR cassettes * Split VCR cassettes into smaller files for each HTTP request * Modify location of VCR and WebMock being turned on/off * Update Rails credentials * Display alert if GitHub App is removed from author's GitHub account * Modify Auth::GithubController to handle update in installation_id and github_username * Modify installation_id in Author factory * Modify Auth::GithubController to accept callbacks without installation_id * Create GithubInstallations table * Create a GithubInstallation when an author is created * Add reference GithubInstallation on Repositories * Modify logic to use GithubInstallation instead of Author * Remove 'installation_id' from Authors * Remove 'owner' from Repositories * Rename factories to use singular file name * Modify storage path for repos to include Author's github_username * Replace Repository uuid by uid from GitHub * Add model tests for GitHubInstallation * Add model tests for Author * Update GithubInstallation methods to use uid and full_name * Add uid to Repository upon creation * Modify available repositories view * Remove creation & testing of GitHub webhook from creation of Repository process * Modify system test for creating Repository * Rename RemoveRepoJob to RemoveDirectoryJob * Remove hook_id and author_id from Repositories * Update logic of Auth::GithubController * Refactor Webhooks::GithubController * Modify Webhook::GithubController to respond to 'create installation' event * Modify Webhook::GithubController to respond to 'delete installation' event * Keep repositories if GithubInstallation is deleted * Add AuthorMailer#github_installation_deleted * Add tests for AuthorMailer#github_installation_deleted * Refactor Webhooks::GithubController * Modify Webhooks::GithubController to response to 'rename repository' event * Modify Webhooks::GithubController to response to 'delete repository' event * Refactor Webhooks::GithubController * Add AuthorMailer#repository_deleted * Change level of logs for repository events * Update RespondWebhookPushJob * Fix request test for delete repository event * Refactor Webhooks::GithubController * Modify push event to use github_installation_id * Extract code into RespondWebhookRenameRepoJob * Fix warning from Capybara::RackTest::Node#set * Build OctokitHelpers for tests with git_clone and git_pull * Update job tests to use OctokitHelpers * Add Webhooks::GithubController#find_github_installation * Change name of job RespondWebhookRenameRepoJob * Add GithubInstallation#list_repository_directories * Add RenameGithubInstallationUsernameJob * Modify Author and GithubInstallation factories * Fix RenameGithubInstallationUsernameJob * Modify Webhooks::GithubController to respond to 'rename installation_target' events * Update GithubInstallation#github_client to show up to 100 results per page * Add GitHub App related environment variables * Update deployment docs
- Loading branch information