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

Integração com git #4

Open
diegor2 opened this issue Mar 20, 2017 · 2 comments
Open

Integração com git #4

diegor2 opened this issue Mar 20, 2017 · 2 comments

Comments

@diegor2
Copy link
Member

diegor2 commented Mar 20, 2017

  • Allterações via web viram commits do git
  • Fazer o commit com a conta logava via web
  • Lidar com conflitos
    • Lock de edição
    • Interface web para merge
    • Edição no estilo etherpad
@diegor2
Copy link
Member Author

diegor2 commented Apr 4, 2017

https://github.com/piratas/fava/blob/master/fava/ext/auto_commit.py

fava já tem uma extensão pra fazer commit a cadad alteração pela web

@diegor2
Copy link
Member Author

diegor2 commented Apr 4, 2017

Estou fazendo alguns testes em https://github.com/diegor2/webhook

Os webhooks são disparados tanto com git push quanto por edições via interface web do github.com.

Fava já tem uma API rest que permite recarregar os dados.

https://github.com/piratas/fava/blob/master/fava/json_api.py#L33

@json_api.route('/changed/')
def changed():
    """Check for file changes."""
    return jsonify({'success': True, 'changed': g.ledger.changed()})

https://github.com/piratas/fava/blob/master/fava/application.py#L152

    # check (and possibly reload) source file
    if request.blueprint != 'json_api':
g.ledger.changed()

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

No branches or pull requests

1 participant