Sustainable Kibana Architecture: Relocate script v4#204383
Sustainable Kibana Architecture: Relocate script v4#204383gsoldevila merged 2 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-core (Team:Core) |
| export const findGithubLogin = async () => { | ||
| const res = await safeExec('gh auth status'); | ||
| // e.g. ✓ Logged in to github.com account gsoldevila (/Users/gsoldevila/.config/gh/hosts.yml) | ||
| const loginLine = res.stdout | ||
| .split('\n') | ||
| .find((line) => line.includes('Logged in')) | ||
| ?.split(/\t| /) | ||
| .filter(Boolean); | ||
|
|
||
| return loginLine?.[loginLine?.findIndex((fragment) => fragment === 'account') + 1]; | ||
| }; |
There was a problem hiding this comment.
this is subject to break in future versions of gh. But OK for now.
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12356189897 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
## Summary * Auto-detect "upstream" and "origin" remotes (instead of assuming their names). * Allow relocating modules that are already in a "sustainable" folder. * Filter out modules that are in the correct locations. * Update the list of _modules to relocate_ to show only those modules that are actually moved. --------- Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary