-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
404 Errors Fetching PR Details with Git Cliff in Monorepo (Github) #880
Comments
Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️ |
Hello 👋🏼 thanks for reporting and reproduce instructions. Can you possibly share the full logs? It is a bit hard to figure out what is going wrong from the lines you have provided. Also, if you project is open source, I'm happy to take a look at it :) |
Hi @orhun thanks for answering, my project is not open source and theres no additional log that adds any information but this is what i get:
|
@orhun I have made an update and fixed my GitHub token to include permissions to the repository as outlined in octokit/octokit.rb#935 (comment). Now, I can view the PR number, but only in the contributor section. I've also updated my template to incorporate the PR number through the contributor section:
However, I suspect there is still an issue where the PR number is not being attached to the commit. Therefore, I suggest putting more emphasis in the documentation regarding the necessary permissions. Additionally, I’m using GitHub Actions, so I added the following permissions: permissions:
contents: write
issues: write
pull-requests: write (Note: I’m pushing the new tag via the pull request.) Looking forward to your feedback on this matter! |
Happy to hear that it is now working after setting the permissions!
There is a typo in your template:
Can you expand on this a bit? What exactly are you experiencing?
Actually, |
Is there an existing issue for this?
Description of the bug
I am currently experiencing an issue with Git Cliff where I am unable to retrieve the pull request number to include in the changelog of a specific project structured as a monorepo. While attempting to use Git Cliff with specific configurations tailored to our project's directory and tagging structure, I continue to encounter multiple "404 Not Found" errors.
** Errors Received: **
Steps To Reproduce
Steps to Reproduce the Issue with Git Cliff in a Monorepo:
Create a Private Repository:
Establish Directory Structure:
<dir-name>
.Initial Setup and Release:
<name-of-the-dir-you-created>/0.1.0
and push it to GitHub.Modify Content with Conventional Commit:
<dir-name>
directory, such as editing the README.md file.Run Git Cliff Command:
Execute the Git Cliff tool with verbose logging and specific configurations tailored to the monorepo structure:
git cliff -v --github-repo <my-org>/<my-repo> --include-path "charts/<dir-name>/*" --tag-pattern "<dir-name>/(.)" -x
Replace and with your actual GitHub organization and repository names, and with the name of your directory under the charts/ structure.
Check for PR Number in the JSON Output:
Expected behavior
When using Git Cliff with the appropriate configuration in a GitHub monorepo, the expected behavior would include the successful extraction and display of GitHub metadata such as
pr_number
andpr_label
in the context of the output. This data is crucial for generating detailed and accurate changelogs that reflect the pull requests associated with each commit.Screenshots / Logs
No response
Software information
Im encountering the issue with Git Cliff both when running through GitHub Actions and locally on my macOS machine.
Additional context
No response
The text was updated successfully, but these errors were encountered: