Skip to content

Commit

Permalink
Merge pull request #62 from mezmo/c-nixon/upstream-0.11
Browse files Browse the repository at this point in the history
merge: upstream 0.11
  • Loading branch information
c-nixon committed Jul 10, 2024
2 parents dac9304 + 96c4472 commit b349fa1
Show file tree
Hide file tree
Showing 84 changed files with 3,188 additions and 657 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ updates:
time: "04:00" # UTC
labels:
- "domain: deps"
- "no-changelog"
commit-message:
prefix: "chore(deps)"
open-pull-requests-limit: 10
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Changelog
#
# Validates that a changelog entry was added.
# Runs on PRs when:
# - opened/re-opened
# - new commits pushed
# - label is added or removed
# Runs on merge queues, but just passes, because it is a required check.

name: Changelog

on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
# Due to merge queue requiring same status checks as PRs, must pass by default
merge_group:
types: [checks_requested]

jobs:
validate-changelog:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
env:
PR_HAS_LABEL: ${{ contains( github.event.pull_request.labels.*.name, 'no-changelog') }}
steps:
- uses: actions/checkout@v4

- run: |
if [[ $PR_HAS_LABEL == 'true' ]] ; then
echo "'no-changelog' label detected."
exit 0
fi
# helper script needs to reference the master branch to compare against
git fetch origin main:refs/remotes/origin/main
./scripts/check_changelog_fragments.sh
check-changelog:
name: Changelog
runs-on: ubuntu-latest
needs: validate-changelog
if: always()
env:
FAILED: ${{ contains(needs.*.result, 'failure') }}
steps:
- name: exit
run: |
echo "failed=${{ env.FAILED }}"
if [[ "$FAILED" == "true" ]] ; then
exit 1
else
exit 0
fi
41 changes: 40 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,46 @@

# Changelog

## unreleased
This project uses [*towncrier*](https://towncrier.readthedocs.io/) for changelog generation.

<!-- changelog start -->

## [0.11.0 (2024-02-07)]


### New Features

- Added `parse_etld` function for extracting eTLD and eTLD+1 (https://github.com/vectordotdev/vrl/pull/669)
- Added `encode_punycode` and `decode_punycode` functions (https://github.com/vectordotdev/vrl/pull/672)

### Enhancements

- Introduced a `redactor` option in `redact` function to enable the substitution of redacted content with either a custom string or a hash representation. (https://github.com/vectordotdev/vrl/pull/633)
- Add VRL function `get_timezone_name` to return the configured/resolved IANA timezone name.

authors: klondikedragon (https://github.com/vectordotdev/vrl/pull/671)

### Fixes

- Fixed a bug in exporting paths containing more than one "coalesce" segment. (https://github.com/vectordotdev/vrl/pull/679)


## [0.10.0 (2024-01-24)]


### New Features

- Introduced an unused expression checker. It's designed to detect and report unused expressions,
helping users to clean up and optimize their VRL scripts. Note that this checker will not catch everything,
but it does aim to eliminate false positives. For example, shadowed variables are not reported as unused.
(https://github.com/vectordotdev/vrl/pull/622)
- Add a `replace_with` function that is similar to `replace` but takes a closure instead of a
replacement string. (https://github.com/vectordotdev/vrl/pull/628)

### Enhancements

- Added the `alias_sources` parameter for `parse_groks` to read sources from files. (https://github.com/vectordotdev/vrl/pull/194)


## `0.9.1` (2023-12-21)

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ provide everything you need to get started.
4. Make your changes.
5. Add and/or update tests to cover your changes.
6. Run `./scripts/checks.sh` to run tests and other checks.
7. Add a one line summary of changes to the "unreleased" section of `CHANGELOG.md`.
8. [Submit the branch as a pull request][urls.submit_pr] to the repo. A team member should
7. [Submit the branch as a pull request][urls.submit_pr] to the repo. A team member should
comment and/or review your pull request.

8. Add a changelog fragment (requires the PR number) to describe your changes which will
be included in the release changelog. See the [README.md](changelog.d/README.md) for details.

[urls.existing_issues]: https://github.com/vectordotdev/vrl/issues
[urls.new_issue]: https://github.com/vectordotdev/vrl/issues/new
Expand Down
Loading

0 comments on commit b349fa1

Please sign in to comment.