Skip to content

Commit

Permalink
feat: Messages that start with "fledge: " are no longer considered …
Browse files Browse the repository at this point in the history
…newsworthy (#800)
  • Loading branch information
krlmlr authored Nov 16, 2024
1 parent ba70efe commit 3f04f15
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion R/parse-news-items.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ treat_commit_message <- function(commit_df) {
return(default_newsworthy[[1]])
}

if (commit_df$merge) {
if (commit_df$merge && !is_fledge_message(commit_df$message)) {
tibble::tibble(
description = commit_df$message,
type = default_type(),
Expand All @@ -64,7 +64,16 @@ remove_housekeeping <- function(message) {
strsplit(message, "\n---", fixed = TRUE)[[1]][1]
}

is_fledge_message <- function(message) {
grepl("^fledge: ", message)
}

extract_newsworthy_items <- function(message) {
# Skip our commits
if (is_fledge_message(message)) {
return(tibble::tibble())
}

# Merge messages
if (is_merge_commit(message)) {
return(parse_merge_commit(message))
Expand Down

0 comments on commit 3f04f15

Please sign in to comment.