Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a programmatic API #937

Closed
remilapeyre opened this issue Feb 27, 2020 · 2 comments
Closed

Add a programmatic API #937

remilapeyre opened this issue Feb 27, 2020 · 2 comments
Labels
feature New functionality/enhancement

Comments

@remilapeyre
Copy link
Contributor

We are using Atlantis in our pull requests and for a weekly review of unapplied changes our drift of our configuration. To do this, we open empty PRs so that Atlantis plan all our projects and comment with the changes.

This has several drawbacks: we have to create a useless branch and open an empty PR and Atlantis takes a lock on all our projects that only gets released once we close them and it refuses to look for changes if another PR is already opened.

We could simplify this by having a /plan endpoint we could programmatically call once a week to know whether some projects have unapplied modifications. Ideally it would take a list of repositories and whether, plan everything and return the result as a JSON payload.

@lkysow lkysow added the feature New functionality/enhancement label Mar 2, 2020
@remilapeyre
Copy link
Contributor Author

Ok, we were also needed an /apply endpoint, I've made a POC at https://github.com/runatlantis/atlantis/pull/997/files.

Since Atlantis expect pretty much everywhere to have a pull request, it's not pretty but it does work.

I did not make huge changes to the interfaces and used type hints instead. Now that it's working, I think we get a better idea of what needs to be updated for this to be implemented properly.

@nitrocode
Copy link
Member

This seems like it has been implemented by the linked pr #2455.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement
Projects
None yet
Development

No branches or pull requests

3 participants