Michel Z. Santello
df0d58d29b
fix: vcs-status-name hardcoded in PullIsMergeable function ( #2312 )
...
* feat: add userConfig.VCSStatusName to applyCommandRunner context
* fix: use vcsstatusname from context
* chore: normalize tests
* chore: update interface mock
2022-06-16 09:26:20 -07:00
Paul Erickson
bc368465a0
feat: add GitHub team allowlist configuration option ( #1694 )
...
* Add GitHub team allowlist configuration option
Co-authored-by: PePe (Jose) Amengual <jamengual@sonatype.com >
Co-authored-by: Troy Neeriemer <tneeriemer@sonatype.com >
Co-authored-by: Ted Roby <troby+github@sonatype.com >
Co-authored-by: Paul Erickson <perickson@sonatype.com >
* Check team allowlist in command runner, rather than event controller
* Remove unneeded trimming
* Test wildcard groups and commands
* Improve error logging
Co-authored-by: PePe (Jose) Amengual <jamengual@sonatype.com >
Co-authored-by: Troy Neeriemer <tneeriemer@sonatype.com >
Co-authored-by: Ted Roby <troby+github@sonatype.com >
2021-12-21 16:08:43 -08:00
Aayush Gupta
bb2c239dd9
Updating client interface and adding ApprovalStatus model ( #1827 )
2021-09-22 12:41:05 -07:00
Marius Hennecke
b9802f71a4
set azure devops max comment characters to api limit ( #1585 )
2021-06-22 19:31:01 -04:00
Gábor Lipták
a4f0e3a467
Bump golangci to 1.39.0 ( #1541 )
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com >
2021-05-26 21:00:20 -04:00
Marius Hennecke
40ffdd144f
fix: use git diff for modified files, fixes #1397 ( #1568 )
2021-05-11 19:37:07 -04:00
Marius Hennecke
1777be406e
Get modified Azure DevOps PR files from commit and changes API endpoint ( #1521 )
...
* get modified ado pr files from commit and changes endpoint, fixes #1397
* Add missing error handling
2021-05-05 17:35:20 -04:00
Nish Krishnan
79309ed39c
[ORCA-559] Fix hide previous command logic ( #37 ) ( #1549 )
2021-05-03 12:47:23 -07:00
Istvan Tapaszto
632460b20b
Delete source branch on merge ( #1357 )
...
Co-authored-by: Tapaszto, Istvan <istvan.tapaszto@msciintegration.onmicrosoft.com >
2021-04-22 09:54:18 -07:00
Istvan Tapaszto
68e20b1dc1
Fixing AutoMerge issue with Azure DevOps ( #1289 )
...
* Getting Azure DevOps user id on the fly
* mcdafydd/go-azuredevops module version increased
* Additional errorhandling
* Additional errorhandling Part2
* Doc update: Access permission requirement
* Fixing modules.txt
* Fixing modules.txt
* Modules.txt fixed
* AzureDevops dependencies committed to vendor
* Fixing AzureDevOpsClient tests
* Fixing invalid bitbucket references in docs
* Fixing modules.txt
* Fixing go.mod
Co-authored-by: Tapaszto, Istvan <istvan.tapaszto@msciintegration.onmicrosoft.com >
2021-01-13 09:01:06 -05:00
Alex Castle
6b6b2640d2
Fix ignore condition for atlantis apply status
2020-10-02 10:45:55 -04:00
Alex Castle
732b19b62c
Fix AzureDevops PR status updates
2020-10-01 19:16:47 -04:00
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
Chris Alexander
aa1bfc0a27
Add "plan" to continued statement
2020-07-01 10:11:33 -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
68c2f1fc42
review fixes
2020-04-13 13:23:37 -04: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
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
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
Luke Kysow
07ffe179e7
Small refactoring to azure devops support
2019-10-25 18:07:18 -07:00
David McPike
822928c710
Fix azuredevops PullIsApproved logic
2019-10-09 19:43:38 -05:00
David McPike
3b5a5b6e56
Change Azure Devops from Work Item to PR comment
2019-10-04 02:03:39 -05:00
David McPike
ce76e8ee18
Remove unnecessary copyright headers;minor cleanup
2019-09-26 21:46:01 -05:00
David McPike
495cf76efd
Azure Devops update
...
- Remove org and project configs
- Add support for WriteGitCreds
2019-09-23 08:24:59 -05:00
David McPike
b13bb2feac
Resolve Azure Devops PR comments
...
- Remove AzureDevopsWorkItemID from CommandContext struct
- Add new dependencies to dep vendoring
- Change final CreateComment return to nil error value
- Clean up unused code/comments
2019-07-29 18:51:53 -05:00
David McPike
83d0b04532
Remove Project member from models Repo struct
2019-07-28 10:45:48 -05:00
David McPike
acef89adc4
Azure Devops PR minor cleanup, fix tests, checks
...
- Re-write tests for azuredevops_client
- CircleCI checks should pass
- NewAzureDevopsClient() now takes a hostname like NewGithubClient()
- Docs include comment about default merge strategy requirements
2019-07-28 10:37:45 -05:00
David McPike
12f95c5b79
Azure Devops support
...
- Add blackfriday for markdown-to-html comment translation
Azure Devops doesn't support markdown in work item comments
- Restore NewRepo() to original form - removing project parameter
- Add models.SplitAzureDevopsRepoFullName() to handle project name
All Azure Devops URIs need owner, project, and repo. This function
allows us to avoid adding project to NewRepo()
- Update calls to azuredevops.NewClient() to match library requirements
- Add context to azuredevops client to match library requirements
- Basic working CreateComment() and MergePull() support (not widely
tested)
2019-05-19 20:54:04 -05:00
David McPike
bf1ccc47db
Azure Devops support
...
- Fixes logic error in PullIsMergeable()
- Replace GetRemoteURL() with GetWebURL() - returns what we want
2019-04-29 20:19:02 -05:00
David McPike
10abea0875
fix CreateStatus() if TargetURL is empty
2019-04-28 15:57:39 -05:00
David McPike
4eb9a010bb
Azure Devops support
...
- Add missing headRepo set to AzureDevops event parser
- Strip 'refs/heads' from branch values sent to models.PullRequest
- Fix calls to NewClient() to use org, not username
- Add notes about use of /'s in repo FullName
- Force use of 'dev.azure.com' for VCSHost.Hostname value
- NewAzureDevopsClient(): Rename 'account' to 'username' to match docs
- NewAzureDevopsClient(): Rename unused 'hostname' to 'org'
2019-04-28 11:23:25 -05:00
David McPike
4bffa57c52
Updates to azuredevops_client.go
...
- remove unneeded NewAzureDevopsClient() code
- change to using const refs
- add GetPullRequest()
2019-04-27 17:49:04 -05:00
David McPike
a058a661eb
initial commit of azuredevops client
2019-04-26 09:05:29 -05:00