-
-
Notifications
You must be signed in to change notification settings - Fork 223
Fix usergroups.users.{list,update} and files.commnets.{add,edit,delete} APIs #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # This file was auto-generated by lib/tasks/web.rake | ||
|
|
||
| desc 'FilesComments methods.' | ||
| command 'files_comments' do |g| | ||
| g.desc 'Add a comment to an existing file.' | ||
| g.long_desc %( Add a comment to an existing file. ) | ||
| g.command 'add' do |c| | ||
| c.flag 'file', desc: 'File to add a comment to.' | ||
| c.flag 'comment', desc: 'Text of the comment to add.' | ||
| c.action do |_global_options, options, _args| | ||
| puts JSON.dump($client.files_comments_add(options)) | ||
| end | ||
| end | ||
|
|
||
| g.desc 'Delete an existing comment on a file. Only the original author of the comment or a Team Administrator may delete a file comment.' | ||
| g.long_desc %( Delete an existing comment on a file. Only the original author of the comment or a Team Administrator may delete a file comment. ) | ||
| g.command 'delete' do |c| | ||
| c.flag 'file', desc: 'File to delete a comment from.' | ||
| c.flag 'id', desc: 'The comment to delete.' | ||
| c.action do |_global_options, options, _args| | ||
| puts JSON.dump($client.files_comments_delete(options)) | ||
| end | ||
| end | ||
|
|
||
| g.desc 'Edit an existing comment on a file. Only the user who created a comment may make edits. Teams may configure a limited time window during which file comment edits are allowed.' | ||
| g.long_desc %( Edit an existing comment on a file. Only the user who created a comment may make edits. Teams may configure a limited time window during which file comment edits are allowed. ) | ||
| g.command 'edit' do |c| | ||
| c.flag 'file', desc: 'File containing the comment to edit.' | ||
| c.flag 'id', desc: 'The comment to edit.' | ||
| c.flag 'comment', desc: 'Text of the comment to edit.' | ||
| c.action do |_global_options, options, _args| | ||
| puts JSON.dump($client.files_comments_edit(options)) | ||
| end | ||
| end | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # This file was auto-generated by lib/tasks/web.rake | ||
|
|
||
| desc 'UsergroupsUsers methods.' | ||
| command 'usergroups_users' do |g| | ||
| g.desc 'This method returns a list of all users within a User Group.' | ||
| g.long_desc %( This method returns a list of all users within a User Group. ) | ||
| g.command 'list' do |c| | ||
| c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.' | ||
| c.flag 'include_disabled', desc: 'Allow results that involve disabled User Groups.' | ||
| c.action do |_global_options, options, _args| | ||
| puts JSON.dump($client.usergroups_users_list(options)) | ||
| end | ||
| end | ||
|
|
||
| g.desc 'This method updates the list of users that belong to a User Group. This method replaces all users in a User Group with the list of users provided in the users parameter.' | ||
| g.long_desc %( This method updates the list of users that belong to a User Group. This method replaces all users in a User Group with the list of users provided in the users parameter. ) | ||
| g.command 'update' do |c| | ||
| c.flag 'usergroup', desc: 'The encoded ID of the User Group to update.' | ||
| c.flag 'users', desc: 'A comma separated string of encoded user IDs that represent the entire list of users for the User Group.' | ||
| c.flag 'include_count', desc: 'Include the number of users in the User Group.' | ||
| c.action do |_global_options, options, _args| | ||
| puts JSON.dump($client.usergroups_users_update(options)) | ||
| end | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| module Slack | ||
| VERSION = '0.7.1' | ||
| VERSION = '0.7.1'.freeze | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this
files comments editinstead offiles_comments edit? These commands can nest multiple levels.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I'll take it back. Ignore me this is right.