Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: handle labels #17

Open
TGTGamer opened this issue Jul 14, 2020 · 1 comment
Open

feat: handle labels #17

TGTGamer opened this issue Jul 14, 2020 · 1 comment
Labels
feature help wanted Extra attention is needed

Comments

@TGTGamer
Copy link

Heya guys,

Should be a simple one for you to implement. I'd like to be able to label my pull requests once someone has signed the CLA.

I currently have the following labels:
CLA - Not Required (applied when specific conditions are met - done through workflow)
CLA - Signed
CLA - Unsigned

Part 1: I'd like to have an input for these labels to be automatically assigned when the bot runs.
Part 2: I'd like the bot to automatically skip when specific labels are on the pull request

So the workflow.yml would look like this

jobs:
  CLAssistant:
  name: "CLA Assistant"
  runs-on: ubuntu-latest
  steps:
    - name: "CLA Assistant"
      if: (github.event.comment.body == 'recheckcla' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request'
      # Alpha Release
      uses: cla-assistant/github-action@v1.3.0-alpha
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        path-to-signatures: './contributors/cla.json'
        path-To-cladocument: 'https://github.com/${{github.repository}}/contributors/cla.md'
        # branch should not be protected
        branch: 'master'
        whitelist: ${{github.rerepository_owner}},bot*
        empty-commit-flag: false
        blockchain-storage-flag: false
        unsignedLabel: 'CLA - Unsigned'
        signedLabel: 'CLA - signed'
        ignoreLabel: 'CLA - Not Required'
@ibakshay
Copy link
Member

Hi @TGTGamer, I am sorry for the late response. This sounds like a really cool feature 😎 . I especially like the ignorelabel input. Sure, I will add this feature in our backlog and I will get back to you after it is implemented. Pull request is welcome too :)

@ibakshay ibakshay added feature help wanted Extra attention is needed labels Jul 24, 2020
@ibakshay ibakshay added this to open issues for contribution in project board Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature help wanted Extra attention is needed
Projects
No open projects
project board
open issues for contribution
Development

No branches or pull requests

2 participants