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

✨PMIPA-5055 Stash changes before update branch on repo_setup #970

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

danieldsdias
Copy link
Contributor

✨ PMIPA-5055 Stash changes before update branch on repo_setup. Fixes bug on git clone of repo_setup of SAL

@danieldsdias danieldsdias self-assigned this Jun 17, 2024
@danieldsdias danieldsdias requested a review from a team as a code owner June 17, 2024 20:35
Copy link

⚠️ Este repositório ainda não está catalogado no Backstage. ⚠️

Por favor, catalogue-o seguindo as instruções nesta documentação. [Via VPN].

💁 Qualquer problema ou dúvida, estamos no Slack, basta abrir um ticket no canal #help-foundation-platform.

).decode("utf-8")
if status_output:
self.run_command(
["git", "stash", "push", "--include-untracked"],
Copy link
Contributor

@FPTeixeira FPTeixeira Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sugerância de verbosidade:

Suggested change
["git", "stash", "push", "--include-untracked"],
["git", "stash", "push", "-m", '"STASHED BY REPO_SETUP.PY"', "--include-untracked"],

Só pro caso do pop falhar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eu tinha botado com nome mas não achei uma forma de fazer o pop pelo nome e perdi tempo demais nisso... Vou botar então

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho que pode deixar o pop como está... Tava pensando só numa informação a mais se o pop falhar por conta de conflito, por ex...

["git", "stash", "push", "--include-untracked"],
_path,
)
stash_applied = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho que seria interessante pegar o result do comando aqui... Só pra não achar que stashou se não tinha nada pra stashar...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mas eu vejo se tem algo pra dar stash antes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tendi... É, não sei se existe um cenário que o comando de stash possa falhar, fora não ter nada pra stashar (já verificado)...

Copy link

@wilsonevangelista wilsonevangelista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quando des-stasha o que acontece se tiver conflito?
Na hora do stash, podia cuspir um diff em algum lugar, just in case!

@danieldsdias
Copy link
Contributor Author

danieldsdias commented Jun 17, 2024

Na hora do stash, podia cuspir um diff em algum lugar, just in case!

Na hora que ele aplica o stash mostra os arquivos q vieram do stash aplicado

@danieldsdias danieldsdias merged commit ee0ae09 into master Jun 17, 2024
4 checks passed
@danieldsdias danieldsdias deleted the PMIPA-5055 branch June 17, 2024 21:20
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

Successfully merging this pull request may close these issues.

4 participants