Robert Brennan ce7c7eaae4
Refactor actions and observations (#1479)
* refactor actions and events

* remove type_key

* remove stream

* move import

* move import

* fix NullObs

* reorder imports

* fix lint

* fix dataclasses

* remove blank fields

* fix nullobs

* fix sidebar labels

* fix test compilation

* switch to asdict

* lint

* fix whitespace

* fix executable

* delint

* fix run

* remove NotImplementeds

* fix path prefix

* remove null files

* add debug

* add more debug info

* fix dataclass on null

* remove debug

* revert sandbox

* fix merge issues

* fix tyeps

* Update opendevin/events/action/browse.py
2024-05-02 15:44:54 +00:00

996 B

sidebar_label, title
sidebar_label title
github opendevin.events.action.github

GitHubPushAction Objects

@dataclass
class GitHubPushAction(Action)

This pushes the current branch to github.

To use this, you need to set the GITHUB_TOKEN environment variable. The agent will return a message with a URL that you can click to make a pull request.

Attributes:

  • owner - The owner of the source repo
  • repo - The name of the source repo
  • branch - The branch to push
  • action - The action identifier

GitHubSendPRAction Objects

@dataclass
class GitHubSendPRAction(Action)

An action to send a github PR.

To use this, you need to set the GITHUB_TOKEN environment variable.

Attributes:

  • owner - The owner of the source repo
  • repo - The name of the source repo
  • title - The title of the PR
  • head - The branch to send the PR from
  • head_repo - The repo to send the PR from
  • base - The branch to send the PR to
  • body - The body of the PR