5 Commits

Author SHA1 Message Date
d657643538 Merge pull request #8 from tekkamanendless/add-member-by-search
Add the email and phone_number fields to the Member structure
2020-12-14 21:31:17 -05:00
3e663f8615 Update golangci-lint.yml
Trying a different marketplace action
2020-12-14 21:20:36 -05:00
eea12a3b50 Update golangci-lint.yml
Update version again
2020-12-14 21:17:56 -05:00
e6f29c4e73 Update golangci-lint.yml
Updated version
2020-12-14 21:07:14 -05:00
cd2551461d Add the email and phone_number fields to the Member structure
These fields aren't _returned_ with any member-related calls; however,
they are used when _adding_ a member to a group.  For example, you can
add a member to a group by email address, but you need to set the "email"
property.  Ditto for "phone_number".
2020-12-13 14:00:44 -05:00
2 changed files with 17 additions and 28 deletions

View File

@ -1,28 +1,15 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v1
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.29
# Optional: working directory, useful for monorepos
# working-directory: somedir
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
- name: Run golangci-lint
# You may pin to the exact commit or the version.
# uses: golangci/golangci-lint-action@04eca2038305127fb1e6683425b6864cd5612f2d
uses: golangci/golangci-lint-action@v1.2.1
with:
# version of golangci-lint to use in form of v1.2.3
version:
# golangci-lint command line arguments
args: # optional, default is
# golangci-lint working directory, default is project root
working-directory: # optional
# the token is used for fetching patch of a pull request to show only new issues
github-token: # default is ${{ github.token }}
# if set to true and the action runs on a pull request - the action outputs only newly found issues
only-new-issues:

View File

@ -89,6 +89,8 @@ type Member struct {
AutoKicked bool `json:"autokicked,omitempty"`
AppInstalled bool `json:"app_installed,omitempty"`
GUID string `json:"guid,omitempty"`
PhoneNumber string `json:"phone_number,omitempty"` // Only used when searching for the member to add to a group.
Email string `json:"email,omitempty"` // Only used when searching for the member to add to a group.
}
func (m Member) String() string {