Skip to content

Commit

Permalink
STEM-2987: Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dbnaza committed May 6, 2022
1 parent 45ef965 commit 7fa0fb5
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Utility actions to make integrating with BitBucket Server/Stash easier

## Example

Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
Check out the [`Samples`](SAMPLES.md) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and creating a lane with your specific needs.

**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)

Expand Down
84 changes: 84 additions & 0 deletions SAMPLES
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
bitbucket_approve(
base_url: "https://bitbucket-server-com",
project_key: 'myproject',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: 1
)

bitbucket_decline(
base_url: "https://bitbucket-server-com",
project_key: 'myproject',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: 1
)

bitbucket_fetch(
base_url: "https://bitbucket-server-com",
project_key: 'myproject',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: 1
)

bitbucket_comment(
base_url: "https://bitbucket-server-com",
project_key: 'myproject',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: 1,
message: "My comment message"
)

bitbucket_update_user_status(
base_url: "https://bitbucket-server-com",
project_key: 'myproject',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: 1,
user_slug: "myuser" ,
status: "NEEDS_WORK"
)

bitbucket_commit_status(
base_url: "https://bitbucket-server-com",
commit: "0000000000000000000000000000000000000000",
commit_status_name: "This is test",
commit_key: "test",
commit_status: "SUCCESSFUL",
basic_creds: "username:password",
description: "description here",
description_url: "http://your-build.com",
)

bitbucket_fetch_pull_requests(
project_key: 'my-project',
repo_slug: 'my-repo',
basic_creds: "username:password",
status: "OPENED"
)

bitbucket_request_changes_status(
project_key: 'my-project',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: "1"
)

bitbucket_fetch_diffstat(
project_key: 'my-project',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: "1",
source_commit: "source-commit-hash",
destination_commit: "destination-commit-hash"
)

bitbucket_list_comments(
base_url: "https://bitbucket-server-com",
project_key: 'myproject',
repo_slug: 'my-repo',
basic_creds: "username:password",
request_id: 1
)

0 comments on commit 7fa0fb5

Please sign in to comment.