Skip to content

Commit 8ed3d23

Browse files
committed
[add] GitHub settings & PR badges
1 parent 8cc8019 commit 8ed3d23

2 files changed

Lines changed: 108 additions & 0 deletions

File tree

.github/pr-badge.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# install https://pullrequestbadge.com/ first
2+
3+
- icon: visualstudio
4+
label: "GitHub.dev"
5+
message: "PR-$prNumber"
6+
color: "blue"
7+
url: "https://github.dev/$owner/$repo/pull/$prNumber"
8+
9+
- icon: github
10+
label: "GitHub codespaces"
11+
message: "PR-$prNumber"
12+
color: "black"
13+
url: "https://codespaces.new/$owner/$repo/pull/$prNumber"
14+
15+
- icon: git
16+
label: "GitPod.io"
17+
message: "PR-$prNumber"
18+
color: "orange"
19+
url: "https://gitpod.io/?autostart=true#https://github.com/$owner/$repo/pull/$prNumber"

.github/settings.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
allow_merge_commit: false
5+
6+
delete_branch_on_merge: true
7+
8+
enable_vulnerability_alerts: true
9+
10+
labels:
11+
- name: bug
12+
color: "#d73a4a"
13+
description: Something isn't working
14+
15+
- name: documentation
16+
color: "#0075ca"
17+
description: Improvements or additions to documentation
18+
19+
- name: duplicate
20+
color: "#cfd3d7"
21+
description: This issue or pull request already exists
22+
23+
- name: enhancement
24+
color: "#a2eeef"
25+
description: Some improvements
26+
27+
- name: feature
28+
color: "#16b33f"
29+
description: New feature or request
30+
31+
- name: good first issue
32+
color: "#7057ff"
33+
description: Good for newcomers
34+
35+
- name: help wanted
36+
color: "#008672"
37+
description: Extra attention is needed
38+
39+
- name: invalid
40+
color: "#e4e669"
41+
description: This doesn't seem right
42+
43+
- name: question
44+
color: "#d876e3"
45+
description: Further information is requested
46+
47+
- name: wontfix
48+
color: "#ffffff"
49+
description: This will not be worked on
50+
51+
- name: reward
52+
color: "#f9d0c4"
53+
description: GitHub-reward for contributions
54+
55+
branches:
56+
- name: main
57+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
58+
protection:
59+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
60+
required_pull_request_reviews:
61+
# The number of approvals required. (1-6)
62+
required_approving_review_count: 1
63+
# Dismiss approved reviews automatically when a new commit is pushed.
64+
dismiss_stale_reviews: true
65+
# Blocks merge until code owners have reviewed.
66+
require_code_owner_reviews: true
67+
# Specify which users and teams can dismiss pull request reviews.
68+
# Pass an empty dismissal_restrictions object to disable.
69+
# User and team dismissal_restrictions are only available for organization-owned repositories.
70+
# Omit this parameter for personal repositories.
71+
dismissal_restrictions:
72+
# users: []
73+
# teams: []
74+
# Required. Require status checks to pass before merging. Set to null to disable
75+
required_status_checks:
76+
# Required. Require branches to be up to date before merging.
77+
strict: true
78+
# Required. The list of status checks to require in order to merge into this branch
79+
contexts: []
80+
# Required. Enforce all configured restrictions for administrators.
81+
# Set to true to enforce required status checks for repository administrators.
82+
# Set to null to disable.
83+
enforce_admins: true
84+
# Prevent merge commits from being pushed to matching branches
85+
required_linear_history: true
86+
# Required. Restrict who can push to this branch.
87+
# Team and user restrictions are only available for organization-owned repositories.
88+
# Set to null to disable.
89+
restrictions: null

0 commit comments

Comments
 (0)