Skip to content

⚡️ Speed up method OIDCAuthService.encrypt_api_key by 11% in PR #10702 (pluggable-auth-service) #732

⚡️ Speed up method OIDCAuthService.encrypt_api_key by 11% in PR #10702 (pluggable-auth-service)

⚡️ Speed up method OIDCAuthService.encrypt_api_key by 11% in PR #10702 (pluggable-auth-service) #732

name: Add Community Label
on:
pull_request_target:
types: [opened]
jobs:
add-label:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Add community label
if: github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'COLLABORATOR'
uses: actions/github-script@v8
with:
script: |
const pullRequestNumber = context.payload.pull_request.number;
const repoDetails = {
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pullRequestNumber
};
await github.rest.issues.addLabels({
...repoDetails,
labels: ['community']
});