Skip to content

Conversation

whoffler
Copy link
Contributor

@whoffler whoffler commented Oct 3, 2025

Description

for issue - https://github.ibm.com/GoldenEye/issues/issues/15657

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (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:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

gitRoot, _ := common.GitRootPath(".")
commitID, _ := common.GetLatestCommitID(gitRoot)
repoName := filepath.Base(gitRoot)
repoUrl := fmt.Sprintf("https://github.com/terraform-ibm-modules/%s", repoName)
Copy link
Contributor

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

Copy link
Contributor Author

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>

Copy link
Contributor

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

@whoffler whoffler marked this pull request as draft October 6, 2025 08:22
@whoffler whoffler force-pushed the fixFailingForkedPRTests branch from 3c5dc78 to c740859 Compare October 14, 2025 14:07
@whoffler whoffler marked this pull request as ready for review October 14, 2025 14:08
@whoffler
Copy link
Contributor Author

/run pipeline

@whoffler
Copy link
Contributor Author

/run pipeline

@whoffler
Copy link
Contributor Author

/run pipeline

@whoffler
Copy link
Contributor Author

/run pipeline

@toddgiguere toddgiguere merged commit 4366b15 into main Oct 15, 2025
1 check passed
@toddgiguere toddgiguere deleted the fixFailingForkedPRTests branch October 15, 2025 19:30
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.60.14 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants