rust-starter is a template for my Rust projects to make it easier to start new ones.
How to use (only works for Antti):
- Use template. Do not choose a repository name that ends with
-starter - About -> Gear icon -> Edit repository details and
- Add Description
- Fill in Website
- Add
ANTTIHARJU_BOT_IDandANTTIHARJU_BOT_PRIVATE_KEYin Settings -> Secrets and Variables -> Actions - When opening the first pull request, go Labels -> Edit labels -> New label and add:
major-release(click on hex color to reveal defaults, leftmost / top row dark red)minor-release(2nd leftmost / top row orange)patch-release(3rd leftmost / top row yellow)
- Branch off from main, find-and-replace
rust-starterwith your new repository name. - Go to repository Settings and
- Under Releases check Enable release immutability
- Disable unnecessary features like Wikis and Projects
- Allow auto-merge
- Go to repository Settings -> Rules -> Rulesets -> Add new branch ruleset and:
- name it 'default branch'
- Set enforcement status to active
- Add bypass for Repository admin and anttiharju App
- For Target branches Add target Include default branch
- Under Branch rules:
- Require a pull request before merging
- Require status checks to pass
- Add checks -> Plan / Validate
- Click Create
- Go to repository Settings -> Pages
- Source -> GitHub Actions
- Check Enforce HTTPS