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

[FEATURE] check pull request title with cog in GitHub Action #394

Closed
xmlking opened this issue May 19, 2024 · 2 comments
Closed

[FEATURE] check pull request title with cog in GitHub Action #394

xmlking opened this issue May 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@xmlking
Copy link

xmlking commented May 19, 2024

I like to check of title of PR with cog cli in GitHub Action. is it possible ?

cog check "fix(table):  updated style"
image
@xmlking xmlking added the enhancement New feature or request label May 19, 2024
@oknozor
Copy link
Collaborator

oknozor commented May 19, 2024

implemented here cocogitto/cocogitto-action#10 but I need to make a new cocogitto-action release and document this. You could use the action main branch until it releases.

@oknozor
Copy link
Collaborator

oknozor commented May 30, 2024

This is now released.

Here is an example:

      - name: PR title check
        if: ${{ github.event_name == 'pull_request' }}
        uses: cocogitto/cocogitto-action@v3
        with:
          verify: "\"${{ github.event.pull_request.title }}\""
          check: "false"

Notice the mandatory escaped quote for the verify attribute.

@oknozor oknozor closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants