Skip to content
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

feat(blocks): Various block QoL improvements #8749

Merged
merged 91 commits into from
Nov 27, 2024

Conversation

ntindle
Copy link
Member

@ntindle ntindle commented Nov 24, 2024

There's a few QoL things I found when reviewing the webhooks PR for the github blocks

  • There's not a good way to get the patch out of the GitHub PR Trigger block
  • The GitHub comment block doesn't work with pull requests
  • the GitHub API wrapper always force redirects the API to the api.github endpoint
  • The ai text block doesn't tell you how to use it to fill fields

Changes 🏗️

Fixes/Changes the expected behaviors in a non breaking way for the above issues

Checklist 📋

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan

Test plan is simply an agent using the changes
image
pr trigger testat_v37.json: Note that this agent is tested on edit for a pr so I wasn't constantly recreating PRs on other repos

ntindle/gridfinity-space-optimizer#2

Pwuts and others added 30 commits October 17, 2024 00:11
…inier/open-1961-implement-github-on-pull-request-block
…inier/open-1961-implement-github-on-pull-request-block
@ntindle ntindle requested review from Torantulino and Bentlybro and removed request for a team November 24, 2024 08:32
Copy link

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Error Handling
The patch URL access in the run method doesn't have proper error handling if the request fails or returns non-200 status code

URL Manipulation
Simple string replacement of 'pull' with 'issues' in URLs could be fragile. Consider using URL parsing library for more robust handling

@ntindle ntindle requested a review from Pwuts November 24, 2024 08:45
@Pwuts Pwuts changed the title feat: changes for QoL of Webhook PR feat(blocks): Various block QoL improvements Nov 25, 2024
Base automatically changed from reinier/open-1961-implement-github-on-pull-request-block to dev November 25, 2024 17:42
@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Nov 25, 2024
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Nov 25, 2024
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

Copy link

netlify bot commented Nov 25, 2024

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit 371451c
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/67474543921c3c00084a518d

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit 371451c
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/6747454326bb6600083a1b5a

@ntindle ntindle merged commit fd6c1d9 into dev Nov 27, 2024
19 checks passed
@ntindle ntindle deleted the ntindle/github-webhook-changes branch November 27, 2024 16:18
aarushik93 pushed a commit that referenced this pull request Dec 1, 2024
Co-authored-by: Reinier van der Leer <[email protected]>
Co-authored-by: Zamil Majdy <[email protected]>
Resolves #8357
Resolves #8738
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants