GithubHelp home page GithubHelp logo

stackstorm-exchange / stackstorm-bitbucket Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 7.0 89 KB

Pack which allows integration with Bitbucket.

Home Page: https://exchange.stackstorm.org/

License: Apache License 2.0

Python 100.00%

stackstorm-bitbucket's People

Contributors

aamir-raza-1 avatar blag avatar cognifloyd avatar emedvedev avatar enykeev avatar jjm avatar kami avatar lindsayhill avatar nmaludy avatar userlocalhost avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stackstorm-bitbucket's Issues

(Feature Request) Enable to handle BitBucket Server

There are two type of "BitBucket" service, one is the 'BitBucket Cloud' and another is 'BitBucket Server'.
Troublingly, these API specifications are difference[^1][^2].

Current implementation of this pack depends on the BitBucket-api library, and this seems not to support the BitBucket Server's API (or rather this is no longer maintained, but this is not the essense of this issue).
I would be happy if the feature to deal with the BitBucket Server was added.

Thank you.

[^1] BitBucket Cloud API
[^2] BitBucket Server API

Cannot list repos

Hi All,

Hoping I'm doing something wrong but I have an issue where I cannot list repos. Action returns ok, just says service not found?

[deepwatch@stackstorm configs]$ st2 run bitbucket.list_repos
.
id: 628baaa6cdd75af3f0e20e07
action.ref: bitbucket.list_repos
context.user: soae_user
parameters: None
status: succeeded
start_timestamp: Mon, 23 May 2022 15:39:18 UTC
end_timestamp: Mon, 23 May 2022 15:39:19 UTC
result:
  exit_code: 0
  result: Service not found.
  stderr: ''
  stdout: ''

The 'RepositorySensor' will crash when a new branch is created after it's started

In the get_{server|cloud}_updated_commits method which is called by poll, an exception of KeyError would be occurred when a new branch is created.

On the construction processing, 'RepositorySensor' checks last commits of all branches every repository.
After that, it monitors updated commits for them. But a new branch is appeared, a KeyError exception is raised.

I think it's reasonable solution to fix the branches to monitor in the configuration than applying the dynamically changing of branch in the repository.

Because there are many branches in the remote repository and most of them are temporary one. It's waste of resources to check update commit of them.

[Feature/Request] Extends to append the information about changed file in the dispatching information

Background

When a monitoring repository is updated, the sensor RepositorySensor dispatches the following information for each commit to the trigger bitbucket.repository_event, as described here.

  • Repository name which is updated by the commit
  • Branch name which is updated by the commit
  • Author who commits
  • Committed time
  • Commit message

Problem

I want to make different Rules according to the changed file in a Repository.
But, I can't identify the changed file from the dispatched information in the current implementation.

Proposal

Changing to append the information about changed file for each commit in the dispatching information.

A problem not to detect amended commit in the RepositorySensor

The sensor to monitor the Bitbucket repositories is implemented in #5.
But that implementation has a problem in the processing of detecting an update on a repository. That can't detect an amended commit.

Sensor determines 'update' by comparing a newer commit than the last detected one with the commit-time.
But an amended commit can't be notified, because that will be same time with the replaced one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.