Skip to content

Commit

Permalink
Merge pull request #14 from msys2-arm/jeremyd2019-workflow-flash
Browse files Browse the repository at this point in the history
add flash on successful workflow dispatch
  • Loading branch information
lazka authored Jan 29, 2023
2 parents 2277d52 + cf96c4b commit e736dbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def workflow_dispatch():

if _workflow_dispatch('build.yml', inputs):
audit_log(g.principal, session['fork'], 'workflow_dispatch', inputs)
flash("Workflow run was successfully requested")
return redirect(url_for('index'))

@app.route("/maint_dispatch", methods=['POST'])
Expand All @@ -198,6 +199,7 @@ def maint_dispatch():

if _workflow_dispatch('maint.yml', inputs):
audit_log(g.principal, session['fork'], 'maint_dispatch', inputs)
flash("Maintenance workflow run was successfully requested")
return redirect(url_for('index'))

@app.route("/cancel", methods=['POST'])
Expand Down

0 comments on commit e736dbd

Please sign in to comment.