flowlight0 / simpledb-rs

MIT License
0 stars 0 forks source link

Protect main branch #19

Closed flowlight0 closed 5 days ago

flowlight0 commented 5 days ago

Added a branch protection rule (https://github.com/flowlight0/simpledb-rs/settings/branches)

flowlight0 commented 5 days ago

The rule was by passed :(

➜  simpledb-rs git:(main) ✗ git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.52 KiB | 1.52 MiB/s, done.
Total 8 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 1 local object.
remote: Bypassed rule violations for refs/heads/main:
remote: 
remote: - Changes must be made through a pull request.
remote: 
To github.com:flowlight0/simpledb-rs.git
   e04b054..b8d0932  main -> main
flowlight0 commented 5 days ago

I turned on Do not allow bypassing the above settings and tried push again.

➜  simpledb-rs git:(main) ✗ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 289 bytes | 289.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
remote: error: GH006: Protected branch update failed for refs/heads/main.
remote: 
remote: - Changes must be made through a pull request.
To github.com:flowlight0/simpledb-rs.git
 ! [remote rejected] main -> main (protected branch hook declined)
error: failed to push some refs to 'github.com:flowlight0/simpledb-rs.git'