s There An Actively Developed Open Source Crawler/Indexer for OpenSearch for Samba Shares? ( like FSCrawler and fs2es-Indexer for ElasticSearch) #338
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto triage based on the component label in issue | |
on: | |
issues: | |
types: [opened, reopened, transferred] | |
jobs: | |
apply-label: | |
if: github.repository == 'opensearch-project/OpenSearch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
script: | | |
const { issue, repository } = context.payload; | |
const { number, body } = issue; | |
const { owner, name } = repository; | |
const regex = /###\sRelated\scomponent\n\n(\w.*)\n/gm; | |
let match; | |
while ( ( match = regex.exec( body ) ) ) { | |
const [ , component_label ] = match; | |
await github.rest.issues.addLabels( { | |
owner: owner.login, | |
repo: name, | |
issue_number: number, | |
labels: [ `${ component_label }` ], | |
} ); | |
} | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['untriaged'] | |
}) |