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

PR information is discarded when using --from-context #819

Closed
1 task done
weichweich opened this issue Aug 26, 2024 · 2 comments · Fixed by #820
Closed
1 task done

PR information is discarded when using --from-context #819

weichweich opened this issue Aug 26, 2024 · 2 comments · Fixed by #820
Assignees
Labels
bug Something isn't working

Comments

@weichweich
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

When providing a custom context and having a repo configured, the PRs that belong to a commit are still queried and potentially overwrite custom information from the provided context with from-context.

Not providing the repo information is also not an option since the owner and repo would be missing in templates.

Steps To Reproduce

  1. Create a context without PR information using git-cliff --context context.json
  2. Add PR information manually
  3. Build changelog with git-cliff --from-context context.json --gitlab-repo owner/repo

Expected behavior

The context isn't changed when using --from-context.

Screenshots / Logs

No response

Software information

  • Project version: 2.5

Additional context

No response

@weichweich weichweich added the bug Something isn't working label Aug 26, 2024
Copy link

welcome bot commented Aug 26, 2024

Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@weichweich @orhun and others