Comments (12)
It's done on the feature
Also, I move wget and curl (I just added) detection on compatibility.inc.sh.
The goal was to be able to "mock" if wget and/or curl exist because the test was buggy without wget installed.
from twgit.
Hi!
I tried your feature but i had some issues.
- According to redmine/jira/github connectors, the default scheme is
https
or it'shttp
. - Secondly when I tried to catch the issue title, it returned an empty string (examples on the screenshot).
- Moreover there are some mistakes on the Gitlab API documention
- when it refers to
GET projects/:id/issues/:id_issue
,:id_issue
is the unique id of the issue for all the platform but this unique identifier isn't showed on the administration panel (modifying the source code, this id is shown on my screenshot asAPI#
). - when it is written that we can access a project by its
namespace/path
thanks to%2F
, it's wrong since a long time referring gitlabhq/gitlabhq#4921
- when it refers to
I tried to create a gitlab connector here
from twgit.
Hi kmarques
- For the defaut scheme, we can always define https.
If the gitlab installation doesn't support it, we just have to write http:// in configuration
For other problems, what is your version of gitlab. Mine is GitLab 7.2.1 ff1633f
, so :
- I get the title using only a call for /projects/:id/issues/:id_issues (I test it with
twgit feature list
) - I'm able to access project using namespace/path (and %2F). Maybe there is a problem with some characters?
For :id_issue, you're right.
I tried with a new gitlab installation with only one project so I didn't see this problem.
You already found the solution in your feature by calling the list of issues and getting the one having the good iid
from twgit.
Hi
Indeed my version of Gitlab wasn't the last one 7.1.1
, so I upgraded it to the last one:
$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Debian 7.5
Current User: git
Using RVM: no
Ruby Version: 2.1.2p95
Gem Version: 2.2.2
Bundler Version:1.7.1.
Rake Version: 10.3.2
Sidekiq Version:2.17.0
GitLab information
Version: 7.2.1
Revision: ff1633f
Directory: /home/git/gitlab
DB Adapter: postgresql
URL: http://xxxxxxx
HTTP Clone URL: http://xxxxxx/some-project.git
SSH Clone URL: git@xxxxxx:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.9.7
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
and I tried but it failed again tying to search the project by the namespace/name
.
I took a screenshot:
from twgit.
It's really strange.
For me, it works on Debian 7.5 stable (Wheezy) (64bits)
and OSX V10.9.4
Did you try on your browser?
When I look at the gitlabhq code, I see it manages projects api call with group/project.
Maybe there is a problem with %2F character on some OS. Can you check there is the %2F string in your access logs?
from twgit.
Or maybe it's a problem with the server configuration where your gitlab is...
from twgit.
OK, we have two gitlab connectors :-)
If Karl's connector works in Laurent's env, maybe keep the former (with curl addon)?
from twgit.
Yes, I will test it asap.
And maybe, to prevent calling the /projects
api url for each new feature, we could store the :id_project
in a local file and then only call projects/:id_project/issues
url.
What do you think?
from twgit.
Currently twgit feature list
could make one only call to retrieve :id_project
regardless of the number of features, by simple use of suited variable :-) Acceptable (O(1)), very easy, and no file cache to handle…
from twgit.
Yes it's a good solution.
from twgit.
@kmarques : your feature works on my debian system.
But your feature is a fork of Hi-Media/twgit, maybe you should fork from Twenga/twgit and then create a pull request with a new release (I will create) as target.
Then I will create a new issue to add curl.
from twgit.
Done by pull request #145
from twgit.
Related Issues (20)
- Add unit tests about connectors (Github, Redmine, Jira, …)
- Enhance macos detection when use gnu functions HOT 4
- "release remove <release>" create a tag HOT 2
- Allow twgit to send an email on hotfix and release finish HOT 1
- Fix user home detection HOT 3
- Create a specific file configuration for each project HOT 2
- Curl as failover of wget for connectors HOT 8
- showing the dependencies between features HOT 2
- Add twgit release update HOT 1
- Allow to pull branch using twgit HOT 5
- Add a more verbose code coverage
- Error when running twgit HOT 3
- Bug on twgit release list
- Mac problems with twgit scripts HOT 5
- Add a bitbucket connector
- Bug with release when using rebase on features HOT 1
- Pivotal Tracker support HOT 1
- Add an option to not push to remote when twgit demo merge-feature
- s
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twgit.