GithubHelp home page GithubHelp logo

osowskit / atlassian-github-app-addon Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 11.0 90 KB

Add a branch to GitHub from JIRA

Home Page: https://marketplace.atlassian.com/apps/1217260/create-github-branches-from-jira?hosting=cloud&tab=overview

License: Other

Ruby 57.84% HTML 41.60% CSS 0.31% Procfile 0.25%
atlassian github-app jira jira-tickets ruby

atlassian-github-app-addon's People

Contributors

osowskit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

atlassian-github-app-addon's Issues

Handle GitHub outages better

When GitHub's API is down, the app should not crash. Ideally, this should display a message indicating GitHub is unavailable.

Plug-in Only Allowing One Branch Per JIRA Ticket

Is this by design or a bug ? Seems the former. Once a branch is created off the ticket the "Create Branch" option disappears from the Pane. Since the plug-in's convention is to give the branch the same name as the ticket, I can see that prohibits multiple branches but that could be overcome w/ one extra character for numbering. Just a thought

Better onboarding flow

Users currently install the plug in on Marketplace and see instructions to complete installation when navigating to a JIRA issue. This opens a new tab that takes them to GitHub to log in and install the App.

  • Prevent creating a branch outside JIRA window
  • Add messaging to notify why they are in a separate tab
  • Add instructions to navigate to an issue after the installation is successful.

Uninstalled App causes Internal Server Error

When you uninstall the App from GitHub but already had a session set up in the plugin, the plugin sends an Internal Server Error

screen shot 2017-07-21 at 10 46 34 am

The only way to fix this is to clear the cookie so you can reinstall the app in GitHub

screen shot 2017-07-21 at 10 49 45 am

may want to fix this in PR #8

Refresh token

Tokens can (?) expire when generated from a GitHub App.

  • Detect when a token has expired or is invalid
  • Try generating a new token once

App is not responding - cannot setup app in 'Get Started'

Just installed the app in cloud Jira, but can't get past 'Get Started' screen, the app won't load:
image
Tried both chrome incognito and safari.

I followed the advice from readme and manually connected the bot using separate browser tab, but the repository selection screen was off and I could only select one repository from an org.

Simplify and harden logic for request app tokens

Most of the code assumes the creation of an app token will succeed. The methods should check for failed app token creation and log users out to reset the session.

This can happen when:

  • Re-installing the application

Plugin does not work on Firefox

I've just installed it, but it doesn't work.

  • I've installed JIRA plugin.
  • I've installed GitHub addon.
    • I've allowed access only to one of my organizations, for all repos.
  • I've then open some JIRA issue:
    • It shows "Connect to GitHub" and "clear settings" links, but also it show "Add-on is not responding. Wait or cancel?" message.
    • I'm clicking on "Connect to GitHub" and after a couple of redirects I get text "false" in place of "Connect to GitHub" and "clear settings" links.
    • On reloading issue I'm able to see "Connect to GitHub" and "clear settings" links once again.

I've checked Firefox's network requests, and it looks like it gets 404 on https://atlassian-github-app-addon.herokuapp.com/atlassian-connect/all.js - maybe this is the cause.

Handle multiple tabs

Having two tabs open with separate JIRA issues could result in creating a branch with incorrect information. The branch creation code should query the current page's URL

I am adding GitHub but there is no repositories

Hi,
I am using Jira Cloud and I have install addon.
I have completed all steps like in manual. The last one was:
Applications->INTEGRATIONS->DVCS accounts-> Link Github account -> SUCCESS
and as the result no repositories below. Actually I have repositories and they are private.
I have attached screen, please help.
image

Thanks!

Choosing branch name/location

Great plugin!

It would be nice if we could choose to create the branch with:

  • a name based on the issue title e.g. ABC-123-slugged-issue-title
  • a location based on the issue type e.g. a story creates in feature/ABC-123 and bug in hotfix/ABC-123 to support gitflow

Optimize branch lookup with GraphQL

Overview

Use global relay ids when looking up repositories and user GraphQL to pass in an array of ids.

BulkIssue = $GQLClient.parse <<-'GRAPHQL'
query{
  nodes(ids:
  ["MDEwOlJlcG9zaXRvcnk1NjE2NzA2OQ==",
  "MDEwOlJlcG9zaXRvcnk2NDA2NjU==",
  "MDEwOlJlcG9zaXRvcnk4MDQ3MTEyMA=="]
  )
  {
    ... on Repository{
      name
      defaultBranchRef{
        name
      },
      ref (qualifiedName:"SENG-13"){
        name,
        associatedPullRequests(first:10){
          nodes {
              number,
              url,
              baseRef {
                name
              }
            }
        }
      }
    }
  }
}
GRAPHQL

Handle uninstalled App

Users that uninstall the App will get a 500 error unless the Installation ID is cleared.

Add support for +30 Repositories

Hi, we have a lot of repositories inside github and when we load all repositories we don't see all repositories inside the list only a few. Are we doing something bad in the config's side or is the normal behaviour of the plugin?

Thanks!

Add support for organization repos

I'm a user with one personal repo, but I have collaborator access to my work's repos as a part of their Github organization. My work admin installed the GitHub App Plugin for Jira, and I installed the JIRA-bot app in my GitHub account. However, when I try to create a branch, the app only sees my personal repo and none of my work's repos. Tried this with two other co-workers who have owner permissions on their work repos and they couldn't see their work repos either.

Would it be possible to support creating branches in organization repos that a user has access to? I'd love to use this plugin for work. Thanks!

"Create branch" link not available in "Development" section

This was working before, but I have made some changes (consolidated workflows, issue schemes, etc. between projects), and we have 2 repositories in our GitHub account now.

I can see branches that already exist for a Jira issue, but the "create branch" link is not there.

Docs not clear on how to install for all users

If a JIRA organization admin installs this app for the organization and installs it into a GitHub organization, what configuration is required for individual JIRA / GitHub users to perform?

Does each JIRA user of this plugin need to configure it against their own personal GitHub account, or does it make use of the admin-supplied credentials to create the branches?

Not working with Chrome browser, but working with Firefox

Hi Thomas! The app works great with Firefox, but it's not working for me with Chrome browser. When I click on GitHub Development, it says "We're having trouble connecting to GitHub Development. Try contacting the developer for support.". Do you know what could be happening? I guess maybe something with the cookies? Thanks!

Jira Triggers are not working if GitHub App also installed

When I am creating a new branch workflow triggers won't be triggered. I created the trigger that the transaction should be done when a new branch is created.

I had some problems there, because not the correct email address was used to create a commit or pull request. It must be the same email address as the jira uses for his account. Maybe an option to specify the email address used would be helpful

Customize branch name in branch creation

Created branches through this add-on have each JIRA's issue number as the branch name. I would like to customize branch name like feature/XXXX so that I can follow the git-flow rule.

Thanks in advance.

Unable to create a branch in my connected repository

screen shot 2018-10-04 at 4 45 21 pm

I recently installed the add-on to connect github repos to jira issues.

The add-on appears to be failing at the point of clicking "create a branch in .... repository". I click, and nothing happens.

Please see screenshot with console image for info. Thanks!

Add Support for JIRA server

I have received a few requests to support JIRA server. Since I don't have access to an instance, I am blocked on implementing support for this.

My assumption is that this is mostly a packaging exercise. Let me know if you have access to a JIRA Server environment and are willing to help package this add on.

Get installation ID from URL

After installing an App, it will redirect with the installation_id as a URL param. Consider pulling that from a URL param - though perhaps not storing a variable server-side.

https://127.0.0.1:5000/?installation_id=40851

Allow selection of branch source

Hi,

When creating bug fix branches, we need to use a "release" branch as source, not master.

Is it possible to add a "select source to branch from" to the plugin? Ideally this should be a drop-down like selection, but even a text field would work.

Thanks!

Looking for collaborators

@gleb-gusev I saw you fork this repo. This doesn't contain the lastest code - I hadn't had any serious requests to improve this. Let me know if you are planning on adding support for any of the open issues in this repo and I can gladly help (and push the latest code)

Issue with connecting to add-on and saving the branches

We have added added the add-on , but have a lot of issues

Sometimes it connects to the GitHub account and sometimes gives out errors
image
image 1

Also the main reason why we need the add on is to show the branch and pull request
screenshot_1

But when we open the ticket from any other browser or user or refresh the page - all the fields above are empty as if nothing was added

Support multiple repositories

From #12 powerman asked:

We're using several repos for same JIRA project, so it's better to ask about repo each time (or let user select more than one repo, or, even better, autodetect all github repos connected to this project) than just remember last choice and require "clear settings" each time we wanna create branch in another repo.

GitFlow branching not used despite existing yaml file

I've recently added this plugin to a repo and it can create branches from master straight up in our repo. However, I'd like it to use gitflow, so create branches from develop and with the name feature/SCC-xxx instead of SCC-xxx.

I created a file .github/jira-bot.yaml with the contents 'branch_pattern: 1' in the root of our repo in the master branch, according to the documentation, and re-added the repo, but it's still creating branches as if this file does not exist and not following gitflow.

Is there something more that needs to be done?

Allow customized branch names

Users have expressed a desire to have more control over the names of branches that are created.

Options

  • Pull repo name template from a configuration file in the Repository
  • Prompt users for the branch name (textbox input)
  • Add a portion of the issue title to the branch

If you have an opinion, please comment below ๐Ÿ™

Suggest to create PR when branch exists

When a branch exists, the app shows a link to the branch and and PR associated with it. If the Pull Request doesn't exists, it should show a link that opens the Pull Request.

Authorizing More Than One Account

I'm using JIRA + Github with the same email address. I'm member of multiple JIRA accounts. I authorized to one organization and now, for my personal JIRA, I can't even choose to authorize my own account.

How can I authorize the app to see my own branches as well as another organization's accounts?

Unable to "Get Started" in JIRA Cloud

I am using JIRA cloud and trying to integrate with github. I've added the github plugin but when I click the Get Started button in the User-installed add-ons section of JIRA's Manage Add Ons page, I get a "Looks like something went wrong!" page.

Limit the number of Repositories returned

There was an API rate limit issue for a user that had access to 60k repositories. This was returning a sum of installation IDs and was certainly not 60k repositories.

Connection to GitHub Repository is hanging w/ HTTP 500 Server Error (in GitHub Dev. Pane)

Background:

  • Using JIRA Cloud, GitHub.com Business Hosted (Private Repos) and this plug-in to integrate the two.
  • DVCS connector also integrated successfully but understood to be unrelated to this plug-in

Goal:

  • Create (and view) GitHub branches from JIRA tickets.

Problem Details:

  • After installing the plugin in JIRA Cloud, as well as installing the BOT on GitHub (as described here .. https://marketplace.atlassian.com/plugins/com.osowskit.jira.github.app/cloud/overview)

  • The GitHub Development Pane displays correctly in JIRA tickets, but server connection to the GitHub Repo. is hanging up or failing (See attached). NOTE: Due to some previous problems, the GitHub side BOT hook was un-installed & re-installed. Related ? Not sure.

ScreenShot (Attached):
screenshot

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.