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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: harvest PR attribution from squash commits #349

Merged
merged 8 commits into from
May 24, 2022
Merged

feat: harvest PR attribution from squash commits #349

merged 8 commits into from
May 24, 2022

Conversation

maelle
Copy link
Member

@maelle maelle commented May 23, 2022

Fix #344

Very related to #343 hence the priority bump 馃槄

TODOs

  • remove demo edits of NEWS.md

@maelle maelle marked this pull request as ready for review May 23, 2022 14:52
Copy link
Contributor

@krlmlr krlmlr left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

# A tibble: 2 x 4
description type breaking scope
<chr> <chr> <lgl> <lgl>
1 blop (@person) Uncategorized FALSE NA
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point we can store this in a structured way. Not a show-stopper here.

Comment on lines +147 to +149
author_lines <- description_lines[grepl(author_pattern(), description_lines)]
authors <- rematch2::re_match(author_lines, "<.*@users.noreply.github.com>")$.match
authors <- stats::na.omit(authors)
Copy link
Contributor

Choose a reason for hiding this comment

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

One re_match() call might be able to handle all of that, again, not a showstopper.

@maelle maelle merged commit e00e498 into main May 24, 2022
@maelle maelle deleted the coauthored branch May 24, 2022 10:18
@maelle maelle mentioned this pull request Jun 27, 2022
4 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

PR attributions
2 participants