Skip to content

Commit

Permalink
Merge pull request #15
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfredoRamos committed Mar 30, 2024
2 parents be182a9 + a9b91f9 commit 22b9c36
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Dependabot

on: pull_request_target

permissions:
contents: write
pull-requests: write

jobs:
dependencies:
if: ${{ github.actor == 'dependabot[bot]' || github.event.pull_request.user.login == 'dependabot[bot]' }}
name: Dependencies
runs-on: ubuntu-latest
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Approve pull request
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr review --approve "$PR_URL"

- name: Merge pull request
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --merge "$PR_URL"
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A [Mailrelay](https://mailrelay.com) API client.

[![Build Status](https://img.shields.io/github/workflow/status/AlfredoRamos/mailrelay-api-client/CI?style=flat-square)](https://github.com/AlfredoRamos/mailrelay-api-client/actions)
[![Build Status](https://img.shields.io/github/actions/workflow/status/AlfredoRamos/mailrelay-api-client/ci.yml?style=flat-square)](https://github.com/AlfredoRamos/mailrelay-api-client/actions)
[![Latest Stable Version](https://img.shields.io/packagist/v/alfredo-ramos/mailrelay-api-client.svg?style=flat-square&label=stable)](https://packagist.org/packages/alfredo-ramos/mailrelay-api-client)
[![Code Quality](https://img.shields.io/codacy/grade/f6603a5728ba49e5856b702d15988dee.svg?style=flat-square)](https://app.codacy.com/gh/AlfredoRamos/mailrelay-api-client/dashboard)
[![License](https://img.shields.io/packagist/l/alfredo-ramos/mailrelay-api-client.svg?style=flat-square)](https://raw.githubusercontent.com/AlfredoRamos/mailrelay-api-client/master/LICENSE)
Expand Down Expand Up @@ -36,10 +36,10 @@ $mailrelay = new AlfredoRamos\Mailrelay\Client([
]);
```

Key | Type | Required | Description
:-: | :-: | :-: | :-
`api_account` | `string` | Yes | The account name you use to login into Mailrelay.
`api_token` | `string` | Yes | The Mailrelay API token generated from `https://{ACCOUNT}.ipzmarketing.com/admin/api_keys`.
| Key | Type | Required | Description |
| :-----------: | :------: | :------: | :------------------------------------------------------------------------------------------ |
| `api_account` | `string` | Yes | The account name you use to login into Mailrelay. |
| `api_token` | `string` | Yes | The Mailrelay API token generated from `https://{ACCOUNT}.ipzmarketing.com/admin/api_keys`. |

You can access each endpoint using the `AlfredoRamos\Mailrelay\Client::api()` method.

Expand Down

0 comments on commit 22b9c36

Please sign in to comment.