docs: added Proposed Project Ideas to Mentorship Directory #1752
Workflow file for this run
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
# This workflow is centrally managed in https://github.com/asyncapi/.github/ | |
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo | |
# Defence from evil contributor that after adding `ready-to-merge` all suddenly makes evil commit or evil change in PR title | |
# Label is removed once above action is detected | |
name: Remove ready-to-merge label | |
on: | |
pull_request_target: | |
types: | |
- synchronize | |
- edited | |
jobs: | |
remove-ready-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remove label | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
script: | | |
const labelToRemove = 'ready-to-merge'; | |
const labels = context.payload.pull_request.labels; | |
const isLabelPresent = labels.some(label => label.name === labelToRemove) | |
if(!isLabelPresent) return; | |
github.rest.issues.removeLabel({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
name: labelToRemove | |
}) |