-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from StatusCakeDev/allow-resource-urls-to-be-up…
…dated feat: allow resource URLs to be updated
- Loading branch information
Showing
66 changed files
with
204 additions
and
123 deletions.
There are no files selected for viewing
This file contains 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,9 @@ | ||
{ | ||
"extends": [ | ||
"@commitlint/config-conventional", | ||
], | ||
"rules": { | ||
"body-max-line-length": [2, "always", 72], | ||
"header-max-length": [02, "always", 50], | ||
}, | ||
} |
This file contains 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,9 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
commit-message: | ||
prefix: ci(deps) |
This file contains 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,26 @@ | ||
--- | ||
name: policy | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- gh-readonly-queue/** | ||
jobs: | ||
check-merge-commits: | ||
if: github.event_name == 'pull_request' | ||
name: Check merge commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: | | ||
git config --global --add safe.directory /github/workspace | ||
merge_commits=$(git rev-list --merges "origin/$GITHUB_BASE_REF".."origin/$GITHUB_HEAD_REF") | ||
if [ -n "$merge_commits" ]; then | ||
echo "Error: merge commits found in $GITHUB_BASE_REF..$GITHUB_HEAD_REF" | ||
for merge_commit in $merge_commits; do | ||
echo "$merge_commit" | ||
done | ||
exit 1 | ||
fi |
This file contains 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 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,23 @@ | ||
--- | ||
name: style | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- gh-readonly-queue/** | ||
jobs: | ||
commit-message-style: | ||
if: github.event_name == 'pull_request' | ||
name: Check commit message style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 19.x | ||
- name: Install base config | ||
run: npm install @commitlint/config-conventional | ||
- name: Validate all commits | ||
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to HEAD --verbose |
This file contains 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 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
@@ -454,6 +454,7 @@ def list_pagespeed_tests_with_http_info(opts = {}) | |
# @param test_id [String] Pagespeed check ID | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [String] :name Name of the check | ||
# @option opts [String] :website_url URL, FQDN, or IP address of the website under test | ||
# @option opts [PagespeedTestCheckRate] :check_rate | ||
# @option opts [Integer] :alert_bigger An alert will be sent if the size of the page is larger than this value (kb). A value of 0 prevents alerts being sent. | ||
# @option opts [Integer] :alert_slower An alert will be sent if the load time of the page exceeds this value (ms). A value of 0 prevents alerts being sent | ||
|
@@ -472,6 +473,7 @@ def update_pagespeed_test(test_id, opts = {}) | |
# @param test_id [String] Pagespeed check ID | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [String] :name Name of the check | ||
# @option opts [String] :website_url URL, FQDN, or IP address of the website under test | ||
# @option opts [PagespeedTestCheckRate] :check_rate | ||
# @option opts [Integer] :alert_bigger An alert will be sent if the size of the page is larger than this value (kb). A value of 0 prevents alerts being sent. | ||
# @option opts [Integer] :alert_slower An alert will be sent if the load time of the page exceeds this value (ms). A value of 0 prevents alerts being sent | ||
|
@@ -519,6 +521,7 @@ def update_pagespeed_test_with_http_info(test_id, opts = {}) | |
# form parameters | ||
form_params = opts[:form_params] || {} | ||
form_params['name'] = opts[:'name'] unless opts[:'name'].nil? | ||
form_params['website_url'] = opts[:'website_url'] unless opts[:'website_url'].nil? | ||
form_params['check_rate'] = opts[:'check_rate'] unless opts[:'check_rate'].nil? | ||
form_params['alert_bigger'] = opts[:'alert_bigger'] unless opts[:'alert_bigger'].nil? | ||
form_params['alert_slower'] = opts[:'alert_slower'] unless opts[:'alert_slower'].nil? | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
@@ -357,6 +357,7 @@ def list_ssl_tests_with_http_info(opts = {}) | |
# Updates an SSL check with the given parameters. | ||
# @param test_id [String] SSL check ID | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [String] :website_url URL of the server under test. Must begin with https:// | ||
# @option opts [SSLTestCheckRate] :check_rate | ||
# @option opts [Array<Integer>] :alert_at List representing when alerts should be sent (days). Must be exactly 3 numerical values | ||
# @option opts [Boolean] :alert_broken Whether to enable alerts when SSL certificate issues are found | ||
|
@@ -378,6 +379,7 @@ def update_ssl_test(test_id, opts = {}) | |
# Updates an SSL check with the given parameters. | ||
# @param test_id [String] SSL check ID | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [String] :website_url URL of the server under test. Must begin with https:// | ||
# @option opts [SSLTestCheckRate] :check_rate | ||
# @option opts [Array<Integer>] :alert_at List representing when alerts should be sent (days). Must be exactly 3 numerical values | ||
# @option opts [Boolean] :alert_broken Whether to enable alerts when SSL certificate issues are found | ||
|
@@ -416,6 +418,7 @@ def update_ssl_test_with_http_info(test_id, opts = {}) | |
|
||
# form parameters | ||
form_params = opts[:form_params] || {} | ||
form_params['website_url'] = opts[:'website_url'] unless opts[:'website_url'].nil? | ||
form_params['check_rate'] = opts[:'check_rate'] unless opts[:'check_rate'].nil? | ||
form_params['alert_at'] = @api_client.build_collection_param(opts[:'alert_at'], :csv) unless opts[:'alert_at'].nil? | ||
form_params['alert_broken'] = opts[:'alert_broken'] unless opts[:'alert_broken'].nil? | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
@@ -726,6 +726,7 @@ def list_uptime_tests_with_http_info(opts = {}) | |
# @param test_id [String] Uptime check ID | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [String] :name Name of the check | ||
# @option opts [String] :website_url URL or IP address of the server under test | ||
# @option opts [UptimeTestCheckRate] :check_rate | ||
# @option opts [String] :basic_username Basic authentication username | ||
# @option opts [String] :basic_password Basic authentication password | ||
|
@@ -763,6 +764,7 @@ def update_uptime_test(test_id, opts = {}) | |
# @param test_id [String] Uptime check ID | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [String] :name Name of the check | ||
# @option opts [String] :website_url URL or IP address of the server under test | ||
# @option opts [UptimeTestCheckRate] :check_rate | ||
# @option opts [String] :basic_username Basic authentication username | ||
# @option opts [String] :basic_password Basic authentication password | ||
|
@@ -845,6 +847,7 @@ def update_uptime_test_with_http_info(test_id, opts = {}) | |
# form parameters | ||
form_params = opts[:form_params] || {} | ||
form_params['name'] = opts[:'name'] unless opts[:'name'].nil? | ||
form_params['website_url'] = opts[:'website_url'] unless opts[:'website_url'].nil? | ||
form_params['check_rate'] = opts[:'check_rate'] unless opts[:'check_rate'].nil? | ||
form_params['basic_username'] = opts[:'basic_username'] unless opts[:'basic_username'].nil? | ||
form_params['basic_password'] = opts[:'basic_password'] unless opts[:'basic_password'].nil? | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# StatusCake API | ||
# | ||
# Copyright (c) 2022 | ||
# Copyright (c) 2023 | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
|
@@ -22,7 +22,7 @@ | |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
# | ||
# API version: 1.0.1 | ||
# API version: 1.1.0 | ||
# Contact: [email protected] | ||
# | ||
# Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. | ||
|
Oops, something went wrong.