BenLloydPearson / gitstream

/:\ gitStream Continuous Merge automation rules
https://gitstream.cm
Apache License 2.0
0 stars 0 forks source link

Sweep: Add new Jira Automation example #10

Open BenLloydPearson opened 5 months ago

BenLloydPearson commented 5 months ago

The config example at the bottom of this description needs to be published to the docs.

The PR should create/modify the following pages:

Here are the important components of the README files for the automations, a good example can be found at docs/automations/integrations/jira/update-jira/README.md:

README.md:

## Configurations
### Automatically Update Jira Tickets from PRs
Automatically update Jira tickets based on PR status

Conditions (All Must be True):

* The PR contains a reference to a Jira ticket in the title or description

Automation Actions

* Send an HTTP request to a Jira endpoint that updates the ticket status.

update_jira.cm:

update_jira:
    if:
      - {{ has.ticket_in_title or has.ticket_in_branch }}
    run:
      - action: send-http-request@v1
        args:
          url: "https://automation.atlassian.com/pro/hooks/__AUTOMATION_WEBHOOK_URL__"
          method: POST
          headers: '{"Content-type": "application/json"}'
          body: '{"issues":["{{ticketid}}"]}'
Checklist - [X] Create `docs/automations/integrations/jira/update-jira/README.md` ✓ https://github.com/BenLloydPearson/gitstream/commit/94c0fee92b398b9c4770a294533a405775edce4f [Edit](https://github.com/BenLloydPearson/gitstream/edit/sweep/add_new_jira_automation_example/docs/automations/integrations/jira/update-jira/README.md) - [X] Running GitHub Actions for `docs/automations/integrations/jira/update-jira/README.md` ✓ [Edit](https://github.com/BenLloydPearson/gitstream/edit/sweep/add_new_jira_automation_example/docs/automations/integrations/jira/update-jira/README.md) - [X] Create `docs/downloads/automation-library/integrations/jira/update_jira.cm` ✓ https://github.com/BenLloydPearson/gitstream/commit/5b91ff88b5aa2ca729ee16471419100a260fb7e5 [Edit](https://github.com/BenLloydPearson/gitstream/edit/sweep/add_new_jira_automation_example/docs/downloads/automation-library/integrations/jira/update_jira.cm) - [X] Running GitHub Actions for `docs/downloads/automation-library/integrations/jira/update_jira.cm` ✓ [Edit](https://github.com/BenLloydPearson/gitstream/edit/sweep/add_new_jira_automation_example/docs/downloads/automation-library/integrations/jira/update_jira.cm) - [X] Modify `docs/integrations/jira.md` ✓ https://github.com/BenLloydPearson/gitstream/commit/0cf866617acd14e8bd11637319cfb692f87af50d [Edit](https://github.com/BenLloydPearson/gitstream/edit/sweep/add_new_jira_automation_example/docs/integrations/jira.md) - [X] Running GitHub Actions for `docs/integrations/jira.md` ✓ [Edit](https://github.com/BenLloydPearson/gitstream/edit/sweep/add_new_jira_automation_example/docs/integrations/jira.md)
sweep-ai[bot] commented 5 months ago

🚀 Here's the PR! #12

See Sweep's progress at the progress dashboard!
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: 257a55992d)
Install Sweep Configs: Pull Request

[!TIP] I can email you next time I complete a pull request if you set up your email here!


Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/BenLloydPearson/gitstream/blob/25ff0d79b66544e1e9ece0c35ee5be4371094734/docs/downloads/assign-reviewers-by-type-of-change.cm#L1-L11

Step 2: ⌨️ Coding

Ran GitHub Actions for 94c0fee92b398b9c4770a294533a405775edce4f:

Ran GitHub Actions for 5b91ff88b5aa2ca729ee16471419100a260fb7e5:

--- 
+++ 
@@ -12,6 +12,11 @@

 --8<-- "docs/automations/integrations/jira/link-jira/README.md:example"

+
+## Automatically Update Jira Tickets from PRs
+
+--8<-- "docs/automations/integrations/jira/update-jira/README.md:example"
+
 ## Additional Resources

 --8<-- "docs/snippets/general.md"

Ran GitHub Actions for 0cf866617acd14e8bd11637319cfb692f87af50d:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/add_new_jira_automation_example.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. Something wrong? Let us know.

This is an automated message generated by Sweep AI.