Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sschmid/bee-github
Useful functions for GitHub - https://github.com/sschmid/bee
https://github.com/sschmid/bee-github
api bash bee curl github plugin
Last synced: about 1 month ago
JSON representation
Useful functions for GitHub - https://github.com/sschmid/bee
- Host: GitHub
- URL: https://github.com/sschmid/bee-github
- Owner: sschmid
- License: mit
- Created: 2021-02-22T22:16:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-30T19:20:42.000Z (almost 3 years ago)
- Last Synced: 2024-11-03T11:42:42.987Z (3 months ago)
- Topics: api, bash, bee, curl, github, plugin
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# github
Useful functions for GitHubhttps://github.com/sschmid/bee-github
```
template:GITHUB_ORG="org"
GITHUB_ORG_ID="0123456789"
GITHUB_REPO="${GITHUB_ORG}/${BEE_PROJECT}"
GITHUB_CHANGES=CHANGES.md # default
GITHUB_RELEASE_PREFIX="${BEE_PROJECT}-" # default
GITHUB_ASSETS_ZIP=() # defaultsecrets:
GITHUB_TOKEN
usage:
me get the current authenticated user
org get an organization
create_org_repo create a new (private ) github organization repository
create_release create a new release based on the current version using the text from GITHUB_CHANGES
upload_assets upload GITHUB_ASSETS_ZIP to a release
repos [] list repositories (for the specified organization)
teams get teams
add_team add a team with permission (pull, push, admin)
e.g. bee github add_team 1234567 push
remove_team remove a team
add_user add a user with permission (pull, push, admin, maintain, triage)
e.g bee github add_user sschmid push
remove_user remove a user
set_topics set repository topics
e.g. bee github set_topics bash bee
get_branch_protection get branch protection
update_branch_protection update branch protection
e.g. bee github update_branch_protection main "${data}"
data:
{
"required_status_checks": null,
"enforce_admins": false,
"required_pull_request_reviews": {
"dismissal_restrictions": {
"users": [],
"teams": []
},
"dismiss_stale_reviews": true,
"require_code_owner_reviews": false,
"required_approving_review_count": 1
},
"restrictions": null
}requirements:
curl
```