Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitLab project ID instead of project name #994

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

farabi
Copy link

@farabi farabi commented Feb 13, 2020

#969 Here i added an environment variable for gitlab project id called DANGER_GITLAB_PROJECT_ID
Also added some doc about that. and updated GitlabAPI unit tests.
Project name will be used if project ID is not defined (so no breaking changes).

saad added 2 commits January 21, 2020 18:29
Use gitlab project id. when not defined. use project name instead.
Add doc about gitlab project id.
Update gitlabApi unit tests, and repo slug documentation.
@@ -6,7 +6,7 @@ import { readFileSync } from "fs"
const nockBack = nock.back
nockBack.fixtures = __dirname + "/fixtures"

// We're testing https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27117
Copy link
Member

Choose a reason for hiding this comment

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

This change dories me a bit, because this link used to work - but now it doesn't?

Copy link
Member

Choose a reason for hiding this comment

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

The repo was moved to gitlab-foss. New MR link: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/27117
I updated the tests and fixtures for all Gitlab tests in #1002

Copy link
Member

Choose a reason for hiding this comment

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

Also I think tests should run for both projectId and project path

Copy link
Contributor

Choose a reason for hiding this comment

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

the link change should be reverted because https://gitlab.com/456/merge_requests/27117 is 404
or updated to the redirected link.

this is just a comment, the code can continue use numeric id

farabi and others added 2 commits February 21, 2020 10:52
Minor update to documentation comment following review.

Co-Authored-By: Orta <[email protected]>
@orta
Copy link
Member

orta commented Mar 12, 2020

Why undo the project will to project may change?

@farabi
Copy link
Author

farabi commented Mar 12, 2020

@orta
Actually i undid the change because the build has failed after updating the readm as you suggested.
I think there is an issue on the CI.

@orta
Copy link
Member

orta commented Mar 14, 2020

I think this might have been done in #1002 too 👍

@AnthonyMastrean
Copy link

Hi! I'm just getting started with Danger... on gitlab.com :( Is there a summary of what's blocking this PR? or anything I can do to help?

Base automatically changed from master to main February 4, 2021 08:31
@ivankatliarchuk
Copy link
Contributor

Can we not to support ID and project name as Gitlab actually does?

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

Successfully merging this pull request may close these issues.

7 participants