Skip to content

Commit

Permalink
Auto label PRs and Relayer component notes only (#1334)
Browse files Browse the repository at this point in the history
* test categorized release notes

* test categorized release notes

* test auto label

* fetch main branch

* user labeler action

* correct pr target

* test docs

* revert readme changes

* remove uncategorized items from changelog

* adds all labels and reverts testing changes
  • Loading branch information
claravanstaden authored Nov 21, 2024
1 parent b14e54f commit e95d80b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"Component: Docs":
- changed-files:
- any-glob-to-any-file: docs/**

"Component: Relayer":
- changed-files:
- any-glob-to-any-file: relayer/**

"Component: Web":
- changed-files:
- any-glob-to-any-file: web/**

"Component: Smoke Tests":
- changed-files:
- any-glob-to-any-file: smoketest/**

"Component: Control Tool":
- changed-files:
- any-glob-to-any-file: control/**

"Component: Ethereum":
- changed-files:
- any-glob-to-any-file: contracts/**
15 changes: 15 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: label PRs

on:
pull_request:

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
sync-labels: true
10 changes: 10 additions & 0 deletions .github/workflows/release-relayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ jobs:
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configurationJson: |
{
"template": "#{{CHANGELOG}}\n\n<details>\n</details>",
"categories": [
{
"title": "## Relayer Changes",
"labels": ["Component: Relayer"]
}
]
}
fromTag: ${{ steps.new_version.outputs.from_tag }}
toTag: ${{ steps.create_tag.outputs.tag }}

Expand Down

0 comments on commit e95d80b

Please sign in to comment.