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

ci: Update CHANGELOG automatically #374

Merged
merged 1 commit into from
May 7, 2021
Merged

ci: Update CHANGELOG automatically #374

merged 1 commit into from
May 7, 2021

Conversation

Ana06
Copy link
Member

@Ana06 Ana06 commented May 7, 2021

Update new rules in capa repository's CHANGELOG with a GitHub Action automatically with every push (for example merge of PR).

You can see how the created commit looks like here: Ana06/capa@7d7def3

And the action running here: https://github.com/Ana06/capa-rules/runs/2528333012?check_suite_focus=true

Needs mandiant/capa#549 to be merged to work.

Related: mandiant/capa#457.

- name: Add new rules to CHANGELOG
run: |
for added_file in ${{ steps.files.outputs.added }}; do
author=$(grep 'author:' rules/$added_file | sed 's/^.*: //' | sed 's/"//g' )
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just adding whatever the rule author wrote in the author field. Till now we have always used the GitHub username for the CHANGELOG. I don't know an easy way to get the GitHub username (if someone know let me know!). But I think this is ok, we just show what people prefer that we show. We could document that GitHub user is preferred.

Copy link
Collaborator

@mr-tz mr-tz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, that's some command line kung-fu, I say let's go with it!

@Ana06 Ana06 added the dont merge Indicate a PR that is still being worked on label May 7, 2021
Update new rules in capa repository's CHANGELOG with a GitHub Action
automatically with every push (for example merge of PR).
@Ana06 Ana06 removed the dont merge Indicate a PR that is still being worked on label May 7, 2021
@Ana06 Ana06 merged commit 187e08a into mandiant:master May 7, 2021
@Ana06 Ana06 deleted the sync branch May 7, 2021 14:46
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

Successfully merging this pull request may close these issues.

2 participants