Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do we commit from pipeline after code format?

Miroslav Kodet September 4, 2025

Hi,

We're using code autoformat tools locally but need to move them to pipeline. How do we commit changes applied by autoformat tools in pipeline directly?

1 answer

0 votes
Alisen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2025

After formatting code in the pipeline, we just commit it like this:

  1. Make sure the pipeline has permission to push changes.

  2. Run your formatter (like Prettier, ESLint, etc.).

  3. Use Git commands to commit and push:

    bash
    git config --global user.email "pipeline@srblinds.com"
    git config --global user.name "SR Blinds Bot"
    git add .git commit -m "chore: auto-format code [skip ci]"
    git push origin HEAD:main

That [skip ci] part helps avoid triggering the pipeline again. Quick and clean.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events