Skip to content

Commit

Permalink
Merge pull request #19 from mobilecoinfoundation/repo_update
Browse files Browse the repository at this point in the history
Update repo with cookiecutter
  • Loading branch information
varsha888 committed Apr 27, 2023
2 parents b5e6b25 + 35f9525 commit 079653e
Show file tree
Hide file tree
Showing 22 changed files with 394 additions and 158 deletions.
15 changes: 10 additions & 5 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
* @jcape @varsha888 @nick-mobilecoin
/Cargo.toml
/Cargo.lock
/LICENSE
/deny.toml
# These lines impact repository security
/.github/CODEOWNERS @varsha888 @jcape @nick-mobilecoin
/.github/settings.yml @varsha888 @jcape @nick-mobilecoin

# These lines prevent reviews of trivial changes blocking on particular users
/.gitattributes
/.gitconfig
/.gitignore
/.markdownlint-cli2.jsonrc
/CHANGELOG.md
/Cargo.toml
/Cargo.lock
/LICENSE
/README.md
/deny.toml
/rust-toolchain.toml
/rustfmt.toml
4 changes: 0 additions & 4 deletions .github/auto_assign.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
addAssignees: author
runOnDraft: true
12 changes: 0 additions & 12 deletions .github/labeler.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
rust:
- '**.rs'
- '**/Cargo.lock'
- '**/Cargo.toml'

github_actions:
- '.github/workflows/**'
- '.github/labeler.yml'
- '.github/triage-labeler.yaml'
- '.github/auto_assign.yml'

python:
- '**.py'
- '**/poetry.lock'
- '**/pyproject.toml'
- '**/requirements.txt'

javascript:
- '**.js'
7 changes: 0 additions & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@
### Motivation

<!-- Describe why these changes should happen, e.g. "Currently we...", or "This is needed because..." -->

### Future Work
<!--
* Out of scope non-goals for this PR
* These should be links to tickets. If the tickets do not exist, make them.
-->

117 changes: 117 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
---
repository:
name: "build-rs"
description: "A brief summary of the workspace"
homepage: https://github.com/mobilecoinfoundation/build-rs
topics: "[development-tools::build-utils]"
private: false
has_issues: true
has_projects: false
has_wiki: true
has_downloads: false
default_branch: main
allow_squash_merge: true
allow_merge_commit: false
allow_rebase_merge: false
allow_auto_merge: true
delete_branch_on_merge: true
use_squash_pr_title_as_default: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

labels:
- name: dependencies
color: '#0366d6'
description: Pull requests that update a dependency file

- name: github_actions
color: '#000000'
description: Pull requests that update github actions
- name: go
color: '#29beb0'
description: Pull requests that update golang code
- name: javascript
color: '#f0db4f'
description: Pull requests that update javascript code
- name: python
color: '#4584b6'
description: Pull requests that update python code
- name: rust
color: '#f74c00'
description: Pull requests that update rust code

- name: size/XS
color: '#00ed01'
description: Extra-Small PRs
- name: size/S
color: '#3af901'
description: Small PRs
- name: size/M
color: '#cefb02'
description: Medium-sized PRs
- name: size/L
color: '#ffde40'
description: Large PRs
- name: size/XL
color: '#ff9100'
description: Extra-Large PRs
- name: size/XXL
color: '#f24d11'
description: Double-wide PRs
- name: size/OHLAWDHECOMIN
color: '#ed1717'
description: PRs that should get broken down

collaborators:
- username: meowblecoinbot
permission: triage
- username: varsha888
permission: admin
- username: jcape
permission: admin
- username: nick-mobilecoin
permission: admin

teams:
- name: coredev
permission: push

branches:
- name: main
# https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28
protection:
required_pull_request_reviews:
require_code_owner_reviews: true
required_approving_review_count: 1
required_conversation_resolution: true
required_status_checks:
strict: false
# These names need to match the matrix job name.
# For example if one had a job like:
#
# build:
# runs-on: ubuntu-22.04
# needs:
# - lint
# strategy:
# matrix:
# rust:
# - stable
# - beta
# - nightly-2023-01-22
#
# Then the matrix names would be:
# - "build (stable)"
# - "build (beta)"
# - "build (nightly-2023-01-22)"
contexts:
- lint
- "deny (bans licenses sources)"
- sort
- "clippy (stable)"
- "build (stable)"
- "test (stable)"
- coverage
enforce_admins: true
required_linear_history: true
restrictions: null
1 change: 1 addition & 0 deletions .github/triage-labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
needs-triage:
- '.*'
24 changes: 0 additions & 24 deletions .github/workflows/cargo-audit.yaml

This file was deleted.

0 comments on commit 079653e

Please sign in to comment.