Skip to content

Add CLI vars #372

@emmyoop

Description

@emmyoop

Is your feature request related to a problem? Please describe.
We first added changie to our core repo. We list all contributors in the footer of every changelog. Our definition of a contributor is someone not on our team. To ensure we don't list our internal team as contributors we have a hardcoded list of GitHub handles in the .changie.yaml to filter our core team members. Every time a team member would leave or join, we have to go in to modify this list to ensure it stays up to date.

After using changie for a few months we decided to expand to use on multiple other repos within our org. Now, when team members change, we have to go update multiple repos with just a handle add or removal. We no longer have a single source of truth and it is easy for this list to get out of sync.

Describe the solution you'd like
We have automated our changelog generation with GitHub Actions. Where I would ideally like to go with this is to be able to query the GitHub Group membership for my team in previous workflow step and grab the members that way. Then pass that list in as a CLI argument (--vars ?) that I can then access in .changes.yaml.

Not sure of the exact syntax but something to this effect:

changie batch --vars '{"core-team": "user1 user2 user3"}

This would allow for a single source of truth as to who our team members are.

Describe alternatives you've considered
Continuing to maintain the list in multiple places.

Additional context
I think it's important to note the .changes.yaml files have differences between the repos as we require different kinds.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions