Skip to content

Metadata: Preserve tags that are not repo topics by adding as repo topics #92

Description

@natalialuzuriaga

Metadata: Preserve tags that are not repo topics by adding as repo topics

Expected behavior

When a user adds tags via code.json, they should be kept going forward in future code.json PRs/updates.

Actual behavior

Tags that are added via code.json will be removed in the next update-code.json PR. I believe this is due to these tags not being repository topics, thus are overriden. Alignment between tags and repo topics is needed. Maybe we can solve this by new tags being added as repo topics

Steps to reproduce the behavior

  1. Add a new tag to the tags array in the code.json. This tag is not a repository topic
  2. PR with new addition is approved and merged into main.
  3. The next time the action is run, the new tag will be removed in the generated PR since it is overriden by repository topics.

Example shown here: https://github.com/DSACMS/gov-codejson/pull/45/files#diff-5229b349cd89869ad0b0d4411a11f45b5f4ae754ddc298f4ba7051278d11d9b3R53-R59

  • I added tags in line 58-63 from a previous PR.
  • This current PR removed tags in line 58-63 since they are currently not added as repository topics.
  • I added "featured" tag. Next time the action is run, I suspect this will be deleted in the next PR.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions