Commit Graph

148 Commits

Author SHA1 Message Date
Luke Kysow
cbe0b18c0e Refactor --skip-clone-no-changes work. 2020-08-18 15:48:33 -07:00
Quan Hoang
54e3dc2ef0 Skip cloning PR repository in case of no projects configured in repo config file were changed 2020-08-18 15:48:05 -07:00
Luke Kysow
f91cc27b68 Update go-gitlab 2020-08-06 15:30:20 -07:00
Luke Kysow
67b2217245 Retry get pull request calls to github
These calls have been 404'ing lately, likely due to eventual consistency
issues on GitHub's side where they send the PR created webhook but it's
not yet available on their API.

To work around this, we will retry up to 3 times with a 1s delay.
2020-07-25 23:46:41 -07:00
Chris Alexander
4568213356 Reversed if statement for comment splitting 2020-07-10 18:13:05 -05:00
Mark Keisler
caf3319b7d Bring back the change from
2f074727e2 (diff-e348084f0b7562996b0bd5d429158e53)
that was clobbered.
2020-07-09 11:21:00 -05:00
Chris Alexander
aa1bfc0a27 Add "plan" to continued statement 2020-07-01 10:11:33 -05:00
Luke Kysow
875abf1362 Refactoring to github app code
- rename gh-app-key to gh-app-key-file for clarity
- change git credentials writer to append a line if there is an existing
.git-credentials file and in the case of the github app to replace the
old github app line
- removed automatically setting --write-git-creds to true when using a
github app and instead requiring this is set specifically
2020-06-19 11:41:44 -07:00
rob
13ebeee1d3 Error out instead of panicking when passed a bad keyfile 2020-06-16 21:27:24 -04:00
rob
011d3f8229 Test against a live repo, fix accordingly
more docs, add installation step
2020-06-03 20:25:11 -04:00
rob
227ce9cbf4 Upgrade to github/v31 for CompleteAppManifest
split fixtures out elsewhere, add working dir test
2020-06-03 20:18:13 -04:00
Roberto Hidalgo
199cdfe192 Play around with github app credentials 2020-06-03 20:16:24 -04:00
Sam Park
2f074727e2 Fix GraphQL URL for Github Enterprise
Partially addresses #1009, but doesn't fix it entirely. The 406 response
is still a puzzler.
2020-06-03 11:34:44 -07:00
Christopher Ketchum
88e397ed6d vcs/github_client: add logging around github API calls (#1042) 2020-06-01 16:42:03 -07:00
Florent Monbillard
1594fc2f83 GitLab's Merge Requests are using ! not # 2020-05-28 17:09:59 -04:00
Luke Kysow
3eaa67e1ef Update go-github, empty automerge commit
Using an empty auto-merge commit will cause GitHub to autogenerate its
own commit message like would happen when using the UI.
2020-05-25 12:07:52 -07:00
David McPike
4651e39fe1 Update mock_client 2020-04-22 00:08:54 -05:00
David McPike
bc069d4b0c Add MarkdownPullLink function to VCS clients 2020-04-21 09:19:55 -05:00
Luke Kysow
80347f4c1d Merge remote-tracking branch 'origin/master' into hide-comments 2020-04-15 21:47:58 -07:00
Luke Kysow
6e8b4eed16 Small refactor 2020-04-15 21:44:34 -07:00
John Reese
9d97faf617 trigger test 2020-04-13 13:54:54 -04:00
John Reese
259db6d30c golint 2020-04-13 13:33:32 -04:00
John Reese
fd1f61a578 update status check 2020-04-13 13:30:49 -04:00
John Reese
23de79a36b update wrap 2020-04-13 13:27:28 -04:00
John Reese
f133db6570 merge conflicts 2020-04-13 13:25:07 -04:00
John Reese
68c2f1fc42 review fixes 2020-04-13 13:23:37 -04:00
Luke Kysow
82afe0b061 Fix lint issues 2020-04-13 10:04:37 -07:00
John Reese
3c0de2f81f Use latest azuredevops package 2020-04-11 17:36:26 -04:00
John Reese
39cd5b2df1 Use PullActive const 2020-04-10 21:38:09 -04:00
John Reese
ca3567d32c Update policy tests 2020-04-10 16:52:07 -04:00
John Reese
3efcd8feee Add merge policy 2020-04-10 16:27:04 -04:00
John Reese
01aae5e9e4 Implement checks for IsApproved 2020-04-10 15:14:40 -04:00
Sam Park
6a4236b24d Fix lints 2020-01-24 22:59:39 -08:00
Sam Park
3af4eb393e Mocks 2020-01-24 22:53:54 -08:00
Sam Park
dcd43bead1 Add pagination 2020-01-24 21:51:01 -08:00
Sam Park
fd93af8a55 Fix body string check 2020-01-24 21:51:01 -08:00
Sam Park
041c45d4c1 Move hide comments call up sooner 2020-01-24 21:51:01 -08:00
Sam Park
68d2bd9ff0 Update server/events/vcs/proxy.go
Co-Authored-By: Luke Kysow <1034429+lkysow@users.noreply.github.com>
2020-01-24 21:51:01 -08:00
Sam Park
815e91be36 Add tests 2020-01-24 21:51:01 -08:00
Sam Park
610c9b2c37 Add hide old comments VCS interface function
And implement the Github version.

The Golang Github client recommends using shurcooL/githubv4.
2020-01-24 21:51:01 -08:00
Luke Kysow
4078357bbf Merge pull request #888 from runatlantis/project-leading-slash
Allow absolute project dirs and fix AZDO
2020-01-03 09:58:53 -06:00
Luke Kysow
4e8d19be0a Convert AZDO paths to relative
Previously the AZDO paths returned by GetModifiedFiles were absolute.
Now they're relative to the repo root to match the rest of the VCS's.
2020-01-02 09:45:38 -06:00
David McPike
022dc8a3ad Fixes linting 2019-12-20 14:27:43 +00:00
David McPike
0c6658c01b Fmt and name change 2019-12-20 14:16:20 +00:00
David McPike
11ef97ef97 Tests passing 2019-12-20 14:02:06 +00:00
David McPike
80791421bd Fix build errors 2019-12-19 17:30:22 +00:00
David McPike
523dd6ecf8 Fixes 880
- Update go-azuredevops version to include iterations functions
- Initial support for posting Azure Devops status to PR instead of commit
2019-12-19 17:21:10 +00:00
David McPike
c017e73a7b Azure Devops: Improve comment formatting
Fixes #854
2019-11-26 22:03:32 -06:00
David McPike
09eb6ac18e Fixes #835
- Improve tests
    - Replace instead of Split
2019-11-14 17:57:58 -06:00
David McPike
71239cf943 Fixes #835
AzureDevops: Support slashes in branch names
2019-11-14 00:23:44 -06:00