Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

170
Vistas
Trigger git commit using form response

is there a way that I can trigger a git commit when a user submits their js form? I want to include the data submitted in the form in the description of the commit on github. I tried using multiple frameworks, but I didn't succeed.

Stack:

  • Im using bootstrap 5.1 for the ui.
  • Deploying on a static site on render.com
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

if you are using PHP, you can use the exec to execute a command.

Basically, you can write a REST API that will run the exec functions.

For example, let's use Laravel

Route::post('commit', function(Request $request) {
  exec('cd /to/your/folder';
  exec('git add .');
  exec('git commit -m "'.$request->commitMessage.'"');
  exec('git push origin master');
});
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda