Skip to content

Bitbucket support#1

Open
jfcolomer wants to merge 17 commits into
bitbucketfrom
bitbucket_gentle_api
Open

Bitbucket support#1
jfcolomer wants to merge 17 commits into
bitbucketfrom
bitbucket_gentle_api

Conversation

@jfcolomer

Copy link
Copy Markdown
Owner

No description provided.

* Holds the controller name.
*
* @var string $name.
* @var string $name .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the space about

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed them according to the drupal coding standards.

@marcelovani

Copy link
Copy Markdown
Contributor

I think its better if you do not commit composer.lock

Comment thread src/Form/ConfigPrForm.php
}
else {
$this->repoController->setAuthToken($authToken);
// @todo: define $appPassword.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these changes to add user/pass need to be in the hook_form_alter of the submodule

$form['repo']['repo_controller'] = [
'#type' => 'select',
'#title' => $this->t('Repo provier'),
'#title' => $this->t('Repo provider'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

*/
public function setAuthToken($authToken);

/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesnt have to be on this interface


/**
* Creates the authentication using the token.
* Creates the authentication using the token/password.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user/password is a thing only for bitbucket, so no need to be here

/**
* {@inheritdoc}
*/
public function setAppPassword($appPassword) {}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no password for github

@jfcolomer

jfcolomer commented Mar 15, 2019

Copy link
Copy Markdown
Owner Author

I think its better if you do not commit composer.lock

You're right, I've removed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants