Sponsor
Sponsor lets you support those projects or users that have assisted you or that you admire.
This feature will link users with creators' WeChat Rewards Code.
After users scan the WeChat Rewards code, the funds will directly enter the WeChat Rewards Code, and CNB will not collect any processing fees.
Before sponsor, please carefully assess the information of creators to ensure its credibility.
# Upload Rewards Code
Create WeChat Rewards Code
Open WeChat, Click the top-right corner + -> Money -> Rewards Code, complete the Rewards Settings and save the code.
Upload WeChat Rewards Code
Go to CNB Personal Settings to upload this Code.
# Show Rewards code
# Personal Profile
When visiting a user's profile, if they have uploaded an rewards code, you can click the sponsor button to view the code and use WeChat scan code to sponsor.
# Code repository home page
When visiting the repository's Code , by default, it will display the sponsor information of the top 5 contributors to the repository over the past 30 days.
If a user has not uploaded an rewards code, they will not be displayed, and there will be no substitution with users who have lower rankings.
Contribution is determined by taking into account users' participation in various activities, such as commits, pull requests, and issues.
# Customize Sponsor
If you wish to customize the list of sponsor users in your repository,
or a custom funding URL, you can upload a .cnb/FUNDING.yml
file to the default branch.
File contents:
# Specify the sponsor users by entering their usernames, selecting up to the top 5 users.
# After configuration, only the specified users will be displayed, and the top 5 contributors in the repository will no longer be displayed.
cnb:
- user1
- user2
# custom funding URL, you can display the URL in the sponsor , selecting up to the first 5 URLs.
custom:
- custom-url1
- custom-url2
# Stop accepting Sponsor
Personal Sponsor Information: Go to Personal Settings and delete the rewards code.
If you have Customized the funding URL, you need to go to the repository to delete the URL in .cnb/FUNDING.yml
.