-
Notifications
You must be signed in to change notification settings - Fork 5
support import offering from another fork #1047
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
Conversation
cloudinfo/catalog.go
Outdated
gitRoot, _ := common.GitRootPath(".") | ||
commitID, _ := common.GetLatestCommitID(gitRoot) | ||
repoName := filepath.Base(gitRoot) | ||
repoUrl := fmt.Sprintf("https://github.com/terraform-ibm-modules/%s", repoName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wont work, cannot hardcode the repo, also needs to work on GE repos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have no knowledge of the the upstream remote is.
Would have to do something like get PR information with GitHub API to retrieve the remote the PR was opened against
GET https://api.github.com/repos/<your-username>/<repo>/pulls?head=<your-username>:<branch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think common.GetBaseRepoAndBranch does what you need already, it should get the upstream. not the fork, its used for the upgrade tests to support forks
3c5dc78
to
c740859
Compare
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
🎉 This PR is included in version 1.60.14 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
for issue - https://github.ibm.com/GoldenEye/issues/issues/15657
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers