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

Update definition of a change (merged PR) #104

Open
russellkan opened this issue Apr 8, 2022 · 1 comment
Open

Update definition of a change (merged PR) #104

russellkan opened this issue Apr 8, 2022 · 1 comment

Comments

@russellkan
Copy link
Contributor

Issue

Some of my merged PRs don't show up in the change_id relation of relevant problem reports in the generated history.yml document despite being linked. Due to this, the generated documents are missing many of the change requests and problem reports relevant to a certain release.

Cause

I noticed that the module defines a change as one that is merged to master and also not labeled obsolete:

is_merged = pull_request.merged and pull_request.base.ref == 'master'

For one of the projects, we have PRs pointed to a branch named after the release version (e.g. v1.5). It also seems like this would fail for any repository where the base branch isn't master (like newer repos with main).

Proposed solution

There are a few options I thought of. The easiest would be to simply remove the base ref check pull_request.base.ref == 'master'. I'm not sure if this would cause any side effects, but it fixes the issue that I was having.

Alternatively, we could implement a way to manually specify the base branch either in the config.yml used by rdm pull or as an option for the command itself.

@johndgiese
Copy link
Contributor

@russellkan this is a great point. I'm surprised this issue hasn't come up before. Whatever solution we come up with for this should not only solve the problems you mention but also make it possible to grab the history of changes since the last release. E.g., between v1.1 and v1.2.

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

No branches or pull requests

2 participants