Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
d657643538 | |||
3e663f8615 | |||
eea12a3b50 | |||
e6f29c4e73 | |||
cd2551461d |
43
.github/workflows/golangci-lint.yml
vendored
43
.github/workflows/golangci-lint.yml
vendored
@ -1,28 +1,15 @@
|
|||||||
name: golangci-lint
|
- name: Run golangci-lint
|
||||||
on:
|
# You may pin to the exact commit or the version.
|
||||||
push:
|
# uses: golangci/golangci-lint-action@04eca2038305127fb1e6683425b6864cd5612f2d
|
||||||
tags:
|
uses: golangci/golangci-lint-action@v1.2.1
|
||||||
- v*
|
with:
|
||||||
branches:
|
# version of golangci-lint to use in form of v1.2.3
|
||||||
- master
|
version:
|
||||||
pull_request:
|
# golangci-lint command line arguments
|
||||||
jobs:
|
args: # optional, default is
|
||||||
golangci:
|
# golangci-lint working directory, default is project root
|
||||||
name: lint
|
working-directory: # optional
|
||||||
runs-on: ubuntu-latest
|
# the token is used for fetching patch of a pull request to show only new issues
|
||||||
steps:
|
github-token: # default is ${{ github.token }}
|
||||||
- uses: actions/checkout@v2
|
# if set to true and the action runs on a pull request - the action outputs only newly found issues
|
||||||
- name: golangci-lint
|
only-new-issues:
|
||||||
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
|
|
||||||
|
2
json.go
2
json.go
@ -89,6 +89,8 @@ type Member struct {
|
|||||||
AutoKicked bool `json:"autokicked,omitempty"`
|
AutoKicked bool `json:"autokicked,omitempty"`
|
||||||
AppInstalled bool `json:"app_installed,omitempty"`
|
AppInstalled bool `json:"app_installed,omitempty"`
|
||||||
GUID string `json:"guid,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 {
|
func (m Member) String() string {
|
||||||
|
Reference in New Issue
Block a user