在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:gitconsensus/GitConsensusCLI开源软件地址:https://github.com/gitconsensus/GitConsensusCLI开源编程语言:Python 96.3%开源软件介绍:GitConsensusThis simple project allows github projects to be automated. It uses "reaction" as a voting mechanism to automatically merge (or close) pull requests. Consensus RulesThe file You can run # Which version of the consensus rules to use
version: 3
# Add extra labels for the vote counts and age when merging
extra_labels: false
# Don't count any vote from a user who votes for multiple options
prevent_doubles: true
# The following only applies to pull requests
pull_requests:
# Minimum number of voters
quorum: 5
# Required percentage of "yes" votes (ignoring abstentions)
threshold: 0.65
# Only process votes by contributors
contributors_only: false
# Only process votes by collaborators
collaborators_only: false
# When defined only process votes from these github users
whitelist:
- alice
- carol
# When defined votes from these users will be ignored
blacklist:
- bob
- dan
# Number of hours after last action (commit or opening the pull request) before issue can be merged
merge_delay: 24
# Number of votes from contributors at which the mergedelay gets ignored, assuming no negative votes.
delay_override: 10
# When `delayoverride` is set this value is the minimum hours without changes before the PR will be merged
merge_delay_min: 1
# Require this amount of time in hours before a PR with a license change will be merged.
licensed_delay: 72
# Require this amount of time in hours before a PR with a consensus change will be merged.
consensus_delay: 72
# Do not allow license changes to be merged.
license_lock: true
# Do not allow consensus changes to be merged.
consensus_lock: true
# Number of hours after last action (commit or opening the pull request) before issue is autoclosed
timeout: 720 VotingVotes are made by using reactions on the top level comment of the Pull Request.
Label OverridesAny Pull Request with a CommandsAuthenticationgitconsensus auth You will be asked for your username, password, and 2fa token (if configured). This will be used to get an authentication token from Github that will be used in place of your username and password (which are never saved). InitializationInitialize the configuration for a specific project. If no template is provided the gitconsensus init [TEMPLATE] MergeMerge all pull requests that meet consensus rules. gitconsensus merge USERNAME REPOSITORY CloseClose all pull requests that have passed the "timeout" date (if it is set). gitconsensus close USERNAME REPOSITORY InfoGet detailed infromation about a specific pull request and what rules it passes. gitconsensus info USERNAME REPOSITORY PR_NUMBER Force CloseClose specific pull request, including any labels and comments that normally would be sent. gitconsensus forceclose USERNAME REPOSITORY PR_NUMBER Force MergeMerge specific pull request, including any labels and comments that normally would be sent. gitconsensus forcemerge USERNAME REPOSITORY PR_NUMBER |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论