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

Show bootstrap commit when asking to confirm #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

emlun
Copy link
Member

@emlun emlun commented Jan 24, 2024

A minor help so the user can get a glimpse of what option is being proposed without having to copy-paste and cross-reference the commit hash manually.

Example, bark_rules bootstrap:

$ bark verify
commit f69ebbbcba4a2105e2459dde29022a21a7186c08 (bark_rules)
Author: Emil Lundberg <[email protected]>
Date:   Wed Jan 24 17:40:09 2024 +0100

    Initial commit

    There will be many others

    But this one is first

 .bark/bark_rules.yaml   |   7 ++
 .bark/commit_rules.yaml |   5 +
 .bark/pubkeys/dain      | 551 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 .bark/pubkeys/emil      | 852 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 .bark/requirements.txt  |   1 +
 .gitattributes          |   9 ++
 .gitignore              |  26 +++++
 7 files changed, 1451 insertions(+)
The bootstrap commit (f69ebbbcba4a2105e2459dde29022a21a7186c08) of the bark_rules branch has not been verified!
Do you want to trust this commit as the bootstrap for bark? [y/N]: y

Same for the per-branch bootstrap:

$ bark protect
Configure how the 'main' branch should be validated!

commit 186f962863dbc1ca73eca67540288d13f4b8170b (main)
Author: Emil Lundberg <[email protected]>
Date:   Wed Jan 24 17:39:39 2024 +0100

    Set up GitBark

 .bark/commit_rules.yaml |   4 +
 .bark/pubkeys/emil      | 852 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 856 insertions(+)
Do you want to verify the 'main' branch using commit 186f962863dbc1ca73eca67540288d13f4b8170b as bootstrap? [y/N]:

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.

1 participant