Skip to content

Commit

Permalink
ci: backport label ci (#483)
Browse files Browse the repository at this point in the history
* ci: backport label ci
  • Loading branch information
p0mvn authored Aug 28, 2024
1 parent 9930c20 commit b152796
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/required-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: required labels

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
branches:
- "v25.x"

jobs:
backport_labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45

- name: Check required labels
# Skip this step and return success result for markdown only changes
if: |
steps.changed-files.outputs.any_changed == 'true' ||
steps.changed-files.outputs.any_deleted == 'true' ||
steps.changed-files.outputs.any_modified == 'true'
uses: mheap/github-action-required-labels@v5
with: #Require one of the following labels
mode: exactly
count: 1
labels: "A:backport/v26.x"
2 changes: 1 addition & 1 deletion tokens/usecase/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (t *tokensUseCase) SetCoingeckoIDs(key string, value any) {
t.coingeckoIds.Store(key, value)
}

// SetLastFetchHash is a test helper to set last fetch hash
// SetLastFetchHash is a test helper to set last fetch hash.
func (f *ChainRegistryHTTPFetcher) SetLastFetchHash(value string) {
f.lastFetchHash = value
}
Expand Down

0 comments on commit b152796

Please sign in to comment.