assert_sha()
assert_ref()
assert_repo()
rlang::is_scalar_integerish()
with msgr::is_natural()
and removed
direct dependency on {rlang}Version 1.0.0 of {githapi} indicates that we are now happy with the set of functions implemented and confident they are relatively bug free. The intention now is that we will be very careful about changing functions and will deprecate before removing any.
All functions are documented and vignettes have been added for the common uses of the package. Please visit the website goymer.me/githapi for full documentation and if you find any bugs, or want to request new functions, then raise an issue in the repo ChadGoymer/githapi in GitHub.
print.github()
to only show one URLpage_size
argument to gh_page()
and gh_find()
plan_private_repos
in organizations numeric to avoid integer overflowNULL
download_file()
so it can download files over 1 MBcreate_file()
to create files in subfolderstryCatch()
rather than listing
all filescompare_commits()
to return summary statisticsdownload_file()
,
create_file()
, update_file()
, delete_file()
and view_file()
view_repositories()
and
view_repository()
gh_url()
for GitHub Enterprisegh_url()
so it encodes URLscreate_status()
view_statuses()
view_status()
download_commit()
that deleted all other files and folders in the target pathdownload_commit()
update_repository()
to set team permissionsupdate_team_repository()
remove_team_repository()
update_team_repository()
remove_team_repository()
view_repositories()
to include team
view_repository()
to include team
gh_page()
sometimes calls github one too many timestry()
from setup()
and teardown()
in all testsmodify_list()
utility functionstructure()
throughout...
create_file()
, update_file()
and delete_file()
to create a new branch...
are passed to gh_request()
, except for view_*s()
functions where it is gh_page()
create_comment()
update_comment()
view_comments()
view_comment()
browse_comment()
delete_comment()
create_gist()
update_gist()
view_gists()
view_gist()
browse_gist()
delete_gist()
download_gist()
source_gist()
create_release()
update_release()
.view_releases()
commented outview_release()
browse_release()
delete_release()
.compare_commits()
.compare_files()
write_github_file()
write_github_lines()
write_github_csv()
read_github_file()
read_github_lines()
read_github_csv()
github_source()
...
argument to gh_request()
, gh_page()
, gh_find()
and gh_download()
view_branches()
to .view_branches()
view_tags()
to .view_tags()
upload_commit()
to .upload_commit()
download_commit()
to .download_commit()
view_commits()
to .view_commits()
gh_download()
to .gh_download()
upload_files()
download_file()
create_file()
update_file()
delete_file()
.view_files()
view_file()
browse_files()
browse_file()
upload_commit()
commented outdownload_commit()
commented outview_commits()
commented outview_commit()
browse_commits()
browse_commit()
view_sha()
create_tag()
update_tag()
view_tags()
commented outview_tag()
delete_tag()
create_branch()
update_branch()
view_branches()
commented outview_branch()
delete_branch()
is_ref()
add_labels()
remove_labels()
view_labels()
to allow viewing labels on an issuecreate_pull_request()
update_pull_request()
view_pull_requests()
view_pull_request()
browse_pull_request()
create_issue()
update_issue()
view_issues()
view_issue()
browse_issue()
gh_request
() error messagecreate_label()
create_label()
update_label()
view_labels()
view_label()
delete_label()
ID
from milestone propertiescreate_milestone()
update_milestone()
view_milestones()
view_milestone()
browse_milestone()
delete_milestone()
create_repository()
update_repository()
view_repositories()
view_repository()
browse_repository()
delete_repository()
view_collaborators()
update_collaborator()
view_collaborators()
view_collaborator()
delete_collaborator()
update_membership()
view_memberships()
view_membership()
delete_membership()
Updated the following functions:
- create_project()
: Only include organization properties if organization project is created
- update_project()
: Add or update team permissions on an organization project
- view_projects()
: View the projects a team has access to
- view_project()
: View a project a team has access to
- browse_project()
: Browse a project a team has access to
- delete_project()
: Remove a team from an organization project
Added the following functions:
- create_team()
- update_team()
- view_teams()
- view_team()
- browse_team()
- delete_team()
Updated the following functions:
- update_project()
: no longer has NULL
defaults
- update_card()
: no longer has NULL
defaults
- update_user()
: no longer has NULL
defaults
- update_organization()
: no longer has NULL
defaults
- Used org
argument in organization functions for consistency
- Removed beta properties from all organizations functions
Deprecated the following functions:
- gh_team()
- gh_teams()
- is_member()
- is_manager()
Added the following functions:
- view_organizations()
- view_organization()
- browse_organization()
- update_organization()
- view_memberships()
- view_membership()
Deprecated the following functions:
- gh_organizations()
- gh_organization()
- gh_memberships()
- gh_membership()
- gh_members()
view_users()
view_user()
browse_user()
update_user()
update_*()
functions set default values to NULL
github
object, only show URL if the attribute existsgh_user()
, gh_users()
and gh_user_email()
create_card()
update_card()
move_card()
view_cards()
view_card()
delete_card()
view_column()
when given an IDgh_request()
gh_card()
and gh_cards()
create_column()
update_column()
move_column()
view_columns()
view_column()
delete_column()
gh_column()
and gh_columns()
create_project()
update_project()
view_projects()
view_project()
browse_project()
delete_project()
gh_project()
and gh_projects()
gh_token()
gh_request()
gh_page()
to use new approachgh_find()
print.github()
gh_url()
to append path to API rather than replace itgh_url()
and gh_request()
to use above packagesgh_token()
to use OAuthupload_tree()
so mode is set correctly when uploading an executable.skip()
with skip_on_travis()
in testsdevtools::check()
read_files()
which looked for SHA in the wrong reporead_files()
and download_files()
which prevented them from accessing files
in foldersfiles_exist()
releases_exist()
shas_exist()
source_files()
view_readme()
Added repository commits functions:
download_commit()
view_commits()
view_shas()
compare_commits()
compare_files()
Added git blobs functions:
view_blobs()
create_blobs()
update_blobs()
read_files()
download_files()
blob_exists()
Added git trees functions:
view_trees()
create_tree()
upload_tree()
tree_exists()
Added git commits functions:
view_commits()
create_commit()
upload_commit()
commit_exists()
Added git branches functions:
view_branches()
create_branches()
update_branches()
delete_branches()
branch_exists()
Added git tags functions:
tag_exists()
Added:
- view_files()
- create_files()
- update_files()
- delete_files()
- view_readme()
- view_contents()
No functional changes, change fixed broken tests and refactored new functions.
This release starts the process of replacing the naming convention of functions and adding support for creating, updated and deleting objects in GitHub. It also adds useful messages, and logging.
info()
, warn()
and error()
functions which give nice messages to the users and
optionally logs them to a file.view_tags()
, create_tags()
, update_tags()
and delete_tags()
view_releases()
, create_releases()
, update_releases()
and delete_releases()
Resulting from the change to the README in the master branch
Added configuration files to get Travis working for continuous integration. Also, fixed a number of issues which were causing the build to fail.
Converted documentation to markdown and generated a website using pkgdown
.
This release completed replaced the underlying functions to remove dependencies on unnecessary packages. As a result, the package loads faster and with fewer conflicts. Tables are generally faster to parse also.
Fixed a bug where empty columns threw an error. For example requesting the cards, using
gh_cards()
, in an empty column of a project.
gh_commit()
and gh_tag()
now return an extra list item called "verification"gh_get()
test due to change in READMEgh_json()
gh_page()
to return correct numbergh_tibble()
and made gh_page more robustgh_projects()
gh_project()
gh_columns()
gh_cards()
gh_column()
gh_card()
gh_page()
now uses n_max
gh_tibble()
, gh_json()
and flattengh_rate_limit()
and warning in gh_get()
gh_issues()
: collapsed assignees login to comma-separated stringn_max
parametergh_gists()
gh_gist()
gh_gist_commits()
is_gist_starred()
is_*()
gh_gist_forks()
gh_events()
gh_event()
gh_commit_comments()
gh_commit_comment()
gh_contributers()
gh_teams()
to include repos, without testsgh_languages()
gh_releases()
and collapse_listgh_release()
gh_assets()
gh_asset()
gh_gist_comments()
gh_gist_comment()
gh_label()
gh_labels()
gh_labels()
to include issues and milestonesgh_milestone()
gh_milestones()
gh_organizations()
gh_organization()
gh_member()
gh_members()
gh_membership()
and gh_memberships()
without testsgh_team()
and gh_teams()
without testsgh_members()
and gh_membership()
to include teamsgh_issues()
gh_repositories()
to include teamsgh_manager()
without testsgh_teams()
to include users teams without testsgh_pull_requests()
gh_pull_request()
gh_pull_commits()
gh_pull_files()
gh_pull_merged()
gh_pull_review()
without testsgh_pull_reviews()
without testsgh_pull_comments()
without testsgh_pull_comment()
without testsgh_pull_review_requests()
without testsgh_collaborators()
gh_collaborator()
gh_permissions()
gh_user_email()
Added functions for accessing the Git Data API
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.