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: Add annotations @sender @bot @repository @action and template helper {{formatDate}} #756

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

andekande
Copy link
Contributor

@andekande andekande commented Jun 15, 2024

one can now realize thinks like

version: 2
mergeable:
  - when: pull_request.opened, pull_request.edited, check_suite.rerequested
    validate:
      - do: title
        begins_with:
          match: ['AUTH', 'SOCIAL', 'CORE']
    fail:
      - do: checks
        payload:
          status: failure
          title: 'Mergeable Run by @sender have been Completed!'
          summary: |
               ### Status: {{toUpperCase validationStatus}}
                - @author
                - @sender
                - @bot
                - @repository
                - @action
                - {{formatDate}}
                - PR payload properties:
                - {{formatDate created_at}}
                - {{formatDate updated_at}}
                - {{title}}
                - {{body}}
                - {{assignee}}
          
  - when: issues.opened, issues.edited
    validate:
      - do: title
        begins_with:
          match: ['AUTH', 'SOCIAL', 'CORE']
    fail:
      - do: comment
        payload:
          body: |
            Annotations are replaced:
             - @author
             - @sender
             - @bot
             - @repository
             - @action
             - {{formatDate}}
             - PR payload properties:
             - {{formatDate created_at}}
             - {{formatDate updated_at}}
             - {{title}}
             - {{body}}
             - {{assignee}}

@andekande andekande changed the title feat: Add annotations @sender @repository @action and template helper {{formatDate}} feat: Add annotations @sender @bot @repository @action and template helper {{formatDate}} Jun 18, 2024
@shine2lay
Copy link
Member

@andekande there are merge conflicts

@andekande andekande force-pushed the sender-annotation branch 2 times, most recently from ea43bc5 to 6141861 Compare June 20, 2024 21:08
@andekande
Copy link
Contributor Author

@shine2lay master is merged in

@shine2lay shine2lay merged commit 970ef68 into mergeability:master Jun 20, 2024
2 checks passed
Copy link

🎉 This PR is included in version 2.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@andekande andekande deleted the sender-annotation branch June 20, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants