You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please familiarize yourself with the issue labels used in this project: LABELS.md
π Search Terms
"Scaffolder templates", "Gerrit"
ποΈ Project Area
Software Templates
π External Integration
Gerrit
π Description & Context
I am trying to use publish:gerrit:review action provided by backstage to raise a review request in Gerrit. But when running this action, getting this below error:
2026-07-20T08:11:29.773Z Error: Could not find HEAD. {data={"what":"HEAD"}}
17
at Git.fetch (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend-module-gerrit\node_modules@backstage\plugin-scaffolder-node\src\scm\git.ts:237:15)
18
at async Object.commitAndPushRepo (C:\Users\xyz@backstage\plugin-scaffolder-backend-module-gerrit\node_modules@backstage\plugin-scaffolder-node\src\actions\gitHelpers.ts:113:3)
19
at async Object.handler (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend-module-gerrit\src\actions\gerritReview.ts:155:7)
20
at async NunjucksWorkflowRunner.executeStep (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend\src\scaffolder\tasks\NunjucksWorkflowRunner.ts:534:9)
21
at async NunjucksWorkflowRunner.execute (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend\src\scaffolder\tasks\NunjucksWorkflowRunner.ts:685:9)
22
at async TaskWorker.runOneTask (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend\src\scaffolder\tasks\TaskWorker.ts:224:26)
23
at async run(C:\Users\xyz\node_modules\p-queue\dist\index.js:163:29)
I am trying to fetch a gerrit repo, do some delete operations and then push it as a review to another gerrit repo. I am not getting what the problem is!! Am I doing something wrong?
π Issue Labels
π Search Terms
ποΈ Project Area
Software Templates
π External Integration
Gerrit
π Description & Context
I am trying to use publish:gerrit:review action provided by backstage to raise a review request in Gerrit. But when running this action, getting this below error:
2026-07-20T08:11:29.773Z Error: Could not find HEAD. {data={"what":"HEAD"}}
17
at Git.fetch (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend-module-gerrit\node_modules@backstage\plugin-scaffolder-node\src\scm\git.ts:237:15)
18
at async Object.commitAndPushRepo (C:\Users\xyz@backstage\plugin-scaffolder-backend-module-gerrit\node_modules@backstage\plugin-scaffolder-node\src\actions\gitHelpers.ts:113:3)
19
at async Object.handler (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend-module-gerrit\src\actions\gerritReview.ts:155:7)
20
at async NunjucksWorkflowRunner.executeStep (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend\src\scaffolder\tasks\NunjucksWorkflowRunner.ts:534:9)
21
at async NunjucksWorkflowRunner.execute (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend\src\scaffolder\tasks\NunjucksWorkflowRunner.ts:685:9)
22
at async TaskWorker.runOneTask (C:\Users\xyz\node_modules@backstage\plugin-scaffolder-backend\src\scaffolder\tasks\TaskWorker.ts:224:26)
23
at async run(C:\Users\xyz\node_modules\p-queue\dist\index.js:163:29)
I am trying to fetch a gerrit repo, do some delete operations and then push it as a review to another gerrit repo. I am not getting what the problem is!! Am I doing something wrong?
Template.yaml for reference:
id: fetch-gerrit
name: Fetching Template from Gerrit Skeleton
action: fetch:template
input:
url: http://127.0.0.1:8080/my-gerrit-app-new/+/refs/heads/main
id: publish-gerrit-review
name: Submitting to Gerrit for Review
action: publish:gerrit:review
input:
repoUrl: 127.0.0.1:8080?repo=a/${{ parameters.repoName }}
branch: main
gitCommitMessage: "For review: Commit from IDP Scaffolder"
π Expected Behavior
I expect the action to work properly without any error.
π¦ Reproduction Repo
No response
π₯Ύ Reproduction steps
No response
Have you read the Code of Conduct?
Are you willing to submit PR?
Undecided