From 12b7b4ce3ebef7d2725e8b8f850fa8c2acff590f Mon Sep 17 00:00:00 2001 From: ofer affias Date: Sat, 11 May 2024 09:25:37 +0300 Subject: [PATCH 1/3] fix wrong indentation --- .../skip-github-action/skip_github_action_branch.cm | 4 ++-- .../skip-github-action/skip_github_action_label.cm | 2 +- .../skip_github_action_resource.cm | 2 +- .../integrations/slack/slack_send_notification.cm | 12 ++++++------ .../zapier/zapier_export_pr_reviewers.cm | 4 ++-- .../standard/review-assignment/notify_watcher.cm | 8 ++++---- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_branch.cm b/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_branch.cm index 53ba4f1b..324b7a47 100644 --- a/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_branch.cm +++ b/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_branch.cm @@ -7,7 +7,7 @@ on: - pr_created - commit -# Optionally, you can change pr.target to branch.name +# Optionally, you can change pr.target to branch.name # if you want to trigger based on the source branch name rather then the target branch name. automations: skip_github_action_branch: @@ -21,4 +21,4 @@ automations: - action: add-comment@v1 args: comment: | - [gitStream](https://docs.gitstream.cm) automatically skipped staging CI pipelines because this PR targets the release branch. + [gitStream](https://docs.gitstream.cm) automatically skipped staging CI pipelines because this PR targets the release branch. diff --git a/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_label.cm b/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_label.cm index 9e47ba7c..86d1eb45 100644 --- a/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_label.cm +++ b/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_label.cm @@ -19,4 +19,4 @@ automations: - action: add-comment@v1 args: comment: | - [gitStream](https://docs.gitstream.cm) automatically skipped production CI pipelines because this is labeled for experimental release. + [gitStream](https://docs.gitstream.cm) automatically skipped production CI pipelines because this is labeled for experimental release. diff --git a/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_resource.cm b/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_resource.cm index 43f385af..9bd984fa 100644 --- a/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_resource.cm +++ b/docs/downloads/automation-library/integrations/github-actions/skip-github-action/skip_github_action_resource.cm @@ -23,4 +23,4 @@ automations: - action: add-comment@v1 args: comment: | - [gitStream](https://docs.gitstream.cm) automatically skipped production CI pipelines because this PR only contains docs changes. \ No newline at end of file + [gitStream](https://docs.gitstream.cm) automatically skipped production CI pipelines because this PR only contains docs changes. diff --git a/docs/downloads/automation-library/integrations/slack/slack_send_notification.cm b/docs/downloads/automation-library/integrations/slack/slack_send_notification.cm index 4bb5e36d..113c0bd2 100644 --- a/docs/downloads/automation-library/integrations/slack/slack_send_notification.cm +++ b/docs/downloads/automation-library/integrations/slack/slack_send_notification.cm @@ -5,29 +5,29 @@ manifest: automations: send_slack_security: + # use your custom logic here to determine whether this needs a security review if: - # use your custom logic here to determine whether this needs a security review - true run: - action: send-slack-message@v1 args: webhook_url: "{{ env.SLACK_WEBHOOK_SECURITY }}" message: "A PR requires a security review. See https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ pr.number }}" - send_slack_qa: + send_slack_qa: + # use your custom logic here to determine whether this needs a qa review if: - # use your custom logic here to determine whether this needs a qa review - {{ not (files | match(regex=r/(test|spec)/) | some) }} run: - action: send-slack-message@v1 args: webhook_url: "{{ env.SLACK_WEBHOOK_QA }}" message: "A PR was submitted without tests. See https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ pr.number }}" - send_slack_docs: + send_slack_docs: + # use your custom logic here to determine whether this needs a docs review if: - # use your custom logic here to determine whether this needs a docs review - {{ files | match(regex=r/(docs)/) | some }} run: - action: send-slack-message@v1 args: webhook_url: "{{ env.SLACK_WEBHOOK_DOCS }}" - message: "A PR has modified the docs. See https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ pr.number }}" \ No newline at end of file + message: "A PR has modified the docs. See https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ pr.number }}" diff --git a/docs/downloads/automation-library/integrations/zapier/zapier_export_pr_reviewers.cm b/docs/downloads/automation-library/integrations/zapier/zapier_export_pr_reviewers.cm index 0fa5ad6d..89fdc7f4 100644 --- a/docs/downloads/automation-library/integrations/zapier/zapier_export_pr_reviewers.cm +++ b/docs/downloads/automation-library/integrations/zapier/zapier_export_pr_reviewers.cm @@ -13,6 +13,6 @@ automations: - action: send-http-request@v1 args: url: "{{ env.ZAPIER_WEBHOOK }}" - method: "POST" - headers: '{"Content-type": "application/json"}' + method: "POST" + headers: '{"Content-type": "application/json"}' body: '{ "reviewers": "{{ pr.reviewers }}" }' diff --git a/docs/downloads/automation-library/standard/review-assignment/notify_watcher.cm b/docs/downloads/automation-library/standard/review-assignment/notify_watcher.cm index a6a92133..e077a706 100644 --- a/docs/downloads/automation-library/standard/review-assignment/notify_watcher.cm +++ b/docs/downloads/automation-library/standard/review-assignment/notify_watcher.cm @@ -36,7 +36,7 @@ automations: {%- endfor -%} {%- endif %} - action: add-reviewers@v1 - args: + args: reviewers: {{ item.owner }} team_reviewers: {{ item.team }} {% endfor %} @@ -46,8 +46,8 @@ automations: watchers: - owner: juliaspencer files: - - src/auth + - src/auth - team: release files: - - package.json - - yarn.lock \ No newline at end of file + - package.json + - yarn.lock From ffbf57a854a6ade778ee88220466c9f21b2f2806 Mon Sep 17 00:00:00 2001 From: ofer affias Date: Sat, 11 May 2024 11:16:49 +0300 Subject: [PATCH 2/3] fix wrong cm reference --- docs/automations/assign-team-members-as-reviewers/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/automations/assign-team-members-as-reviewers/README.md b/docs/automations/assign-team-members-as-reviewers/README.md index 4374ac3c..543b7354 100644 --- a/docs/automations/assign-team-members-as-reviewers/README.md +++ b/docs/automations/assign-team-members-as-reviewers/README.md @@ -11,11 +11,11 @@ You can also omit the `| first` filter to assign all teams the owner is member o !!! example "name" ```yaml+jinja - --8<-- "docs/downloads/automation-library/name.cm" + --8<-- "docs/downloads/automation-library/assign-team-to-prs-by-their-member.cm" ```
- [:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/name.cm){ .md-button } + [:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/assign-team-to-prs-by-their-member.cm){ .md-button }
From 0241f4671ee26dc245a660086e10365945ee5ac4 Mon Sep 17 00:00:00 2001 From: ofer affias Date: Sat, 11 May 2024 11:27:54 +0300 Subject: [PATCH 3/3] added visible:false to readme files tjat does not represent an automation --- docs/automations/integrations/jira/configure/README.md | 7 ++++--- docs/automations/languages/html/README.md | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/automations/integrations/jira/configure/README.md b/docs/automations/integrations/jira/configure/README.md index ef156c6b..c071e0f3 100644 --- a/docs/automations/integrations/jira/configure/README.md +++ b/docs/automations/integrations/jira/configure/README.md @@ -1,6 +1,7 @@ --- title: Prerequisite configurations for Jira description: Learn how to configure gitStream to integrate with Jira. +visible: false --- # Configure Jira for gitStream Integrations @@ -13,10 +14,10 @@ If you want to build gitStream automations to interact with the Jira API or Jira Jira automations are the preferred method for gitStream to trigger actions within Jira, so you should use them whenever possible. If webhooks don't provide access to the data you need, or acheive the functionality you want, use the Jira API instead. - First, create a Jira automation that uses an incoming webhook as the trigger and add whatever automation components you want after this trigger. Save the webhook URL in a secure place, you'll need it later. - + First, create a Jira automation that uses an incoming webhook as the trigger and add whatever automation components you want after this trigger. Save the webhook URL in a secure place, you'll need it later. + Here is an example of an automation that uses the `webhookData` property of the incoming data payload to create a new task. It expects the incoming data payload to contain `title` and `pr_url` fields to set the task summary and a `pr_url` custom field our demo environment already has configured. - + ![Jira Automation Example - Create task from incoming webhook](/automations/integrations/jira/configure/jira-webhook-automation.png) Learn more about working with incoming webhooks in the Jira docs diff --git a/docs/automations/languages/html/README.md b/docs/automations/languages/html/README.md index f8a069c6..3794af0b 100644 --- a/docs/automations/languages/html/README.md +++ b/docs/automations/languages/html/README.md @@ -2,6 +2,7 @@ title: Automation - Integrate gitStream with HTML and CSS description: Use gitStream for HTML/CSS project workflow automations. category: [html, css] +visible: false --- ## Request Changes for CSS Important Tags