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

Allow issues to appear in multiple sections #38

Closed
wants to merge 2 commits into from

Conversation

eleftherias
Copy link
Contributor

@eleftherias eleftherias commented Apr 16, 2020

The flag is releasenotes.issues.allow-in-multiple-sections.

@wilkinsona
Copy link
Contributor

Thanks, @eleftherias. I wonder if we can come up with a name for the flag that's more informative than allowDuplicates. The current name doesn't convey to me that it would allow an issue to appear in more than one section. Also, duplicate is a bit of an overloaded term when talking about issues.

With one eye on #36, I wonder if we should introduce a new issues section in the YAML that's a peer of sections. The flag proposed here could then be named something like allow-in-multiple-sections. That would leave the YAML looking something like this:

releasenotes:
  github:
    username: testuser
    password: testpass
    organization: testorg
    repository: testrepo
  sections:
   - title: "New Features"
     emoji: ":star:"
     labels: ["enhancement"]
   
  issues:
    allow-in-multiple-sections: true

@eleftherias
Copy link
Contributor Author

Thanks @wilkinsona. I have updated the commit to use the flag releasenotes.issues.allow-in-multiple-sections.

@wilkinsona
Copy link
Contributor

Thanks, @eleftherias. #39 prompted me to think about this a bit more. Just out of curiosity, how do you intend to title issues that will appear in multiple sections? It seems quite hard to me to come up with a title that suits multiple categories.

@eleftherias
Copy link
Contributor Author

@wilkinsona The use case for Spring Security is to have a section that calls out any non-passive changes.
These are usually bug reports, so we would like them to appear in the "Bug Fixes" section as well.
We don't have a different naming scheme for these types of issue titles.

@eleftherias
Copy link
Contributor Author

@wilkinsona Expanding on my previous comment, what we've done in the past is to keep the original bug report title, for example "SwitchUserFilter vulnerable to CSRF".
The idea is that users can refer to the associated commit and see the non-passive change. We have also been adding a comment to the issue that describes the non-passive change.

I can see the argument for having a title that describes what the non-passive behaviour is, for example "SwitchUserFilter will no longer match any request, but instead will only match POST".

However, I favour using a title that describes why the change was made, rather than what the change is.
I think this approach also makes an issue easier to understand if a user arrives to the issue from somewhere other than the release notes.

This is just an opinion based on our use case. I'm not sure how well it would apply to the suggested sections mentioned in #39, such as "Removal".

@philwebb philwebb self-assigned this Sep 24, 2020
philwebb pushed a commit that referenced this pull request Sep 24, 2020
Add a flag to allow issues to appear in multiple sections.

See gh-38
philwebb added a commit that referenced this pull request Sep 24, 2020
Replace the `Issues` property with the concept of a "section group".

See gh-38
@philwebb philwebb closed this in 81326af Sep 24, 2020
@philwebb philwebb changed the title Add flag for allowing an issue in multiple sections Allow issues appear in multiple sections Sep 24, 2020
@philwebb philwebb added this to the 0.0.3 milestone Sep 24, 2020
@philwebb
Copy link
Collaborator

Thanks for the PR!

I've tweaked things a bit in 6fe2e6e by introducing the concept of a section group. The idea is that you can now create groups that define how issues are duplicated and distributed across sections.

For the Spring Security use-case you can define the "Non-passive" section like this and I think it'll do what you want:

changelog:
  sections:
  - title: ":rewind: Non-passive"
    group: "nonpassive"
    labels: ["non-passive"]
  - title: ":star: New Features"
    labels: ["new"]
  - title: ":beetle: Bug Fixes"
    labels: ["bug"]

@wilkinsona wilkinsona changed the title Allow issues appear in multiple sections Allow issues to appear in multiple sections Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants