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

Failed to find author associated with branch BRANCHNAME. But the last commit has a known author. #20

Open
JasonGloverNZ opened this issue Jul 11, 2024 · 1 comment

Comments

@JasonGloverNZ
Copy link

Not sure what is going on here, so I ran it again with debugging, but that still didn't help me figure it out.

##[debug]Evaluating condition for step: 'Run fpicalausa/[email protected]'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run fpicalausa/remove-stale-branches@v[2](https://github.com/*****************/actions/runs/9831423788/job/27298069675#step:2:2).0.1
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run fpicalausa/[email protected]
Branches updated before 2024-06-11T00:27:[3](https://github.com/*****************/actions/runs/9831423788/job/27298069675#step:2:3)4Z will be marked as stale
Branches marked stale before 202[4](https://github.com/*****************/actions/runs/9831423788/job/27298069675#step:2:4)-07-06T00:27:34Z will be removed
🛑 Failed to find author associated with branch BT-40[5](https://github.com/*****************/actions/runs/9831423788/job/27298069675#step:2:5)5_getConformityChapters. Use ignore-unknown-authors if this is expected.
::group::✅ branch 5245-ui_tailnumber_tweaks
✅ branch 5245-ui_tailnumber_tweaks
::group::✅ branch BT-3775_remove_aircraft_ui
✅ branch BT-3775_remove_aircraft_ui
::group::✅ branch BT-3825_dropbox
✅ branch BT-3825_dropbox
::group::✅ branch BT-4011_dashboard_NaN_issue
✅ branch BT-4011_dashboard_NaN_issue
/home/runner/work/_actions/fpicalausa/remove-stale-branches/v2.0.1/dist/index.js:34[6](https://github.com/*****************/actions/runs/9831423788/job/27298069675#step:2:6)27
                    throw new Error("Failed to find author for branch " + branch.branchName);
                          ^

Error: Failed to find author for branch BT-4055_getConformityChapters
    at /home/runner/work/_actions/fpicalausa/remove-stale-branches/v2.0.1/dist/index.js:3462[7](https://github.com/*****************/actions/runs/9831423788/job/27298069675#step:2:7):27
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/_actions/fpicalausa/remove-stale-branches/v2.0.1/dist/index.js:34444:5[8](https://github.com/Bluetail-aero/app/actions/runs/9831423788/job/27298069675#step:2:8))
    at process.processTicksAndRejections (node:internal/process/task_queues:[9](https://github.com/*****************/actions/runs/9831423788/job/27298069675#step:2:9)5:5)

Node.js v20.13.1
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run fpicalausa/[email protected]

So it appears that it is hitting the problem with BT-4055_getConformityChapters

From what I understand, it is looking for the author of the last commit on the branch.

But the author of the last commit on that branch is also the same user as other branches that are working just fine.

So I'm a bit confused about this.

And clearly I can use the flag mentioned to override it, but does that mean it will just leave those branches alone?

Use ignore-unknown-authors if this is expected.

@ostk0069
Copy link

same thing happen for me too.

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

2 participants