Skip to content

Ml merge #851

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

Merged
merged 25 commits into from
Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cf49e9a
Custom Action for sending Tweets (#784)
hiranya911 Feb 13, 2020
e57c262
Improve customClaims Typing (#768)
Feb 14, 2020
5abaab6
chore: Experimental release flow based on Actions (#780)
hiranya911 Feb 14, 2020
2b952d4
chore: Migrated to ESlint (#790)
hiranya911 Feb 26, 2020
c0e6ae1
Enabling additional ESLint checks (#794)
hiranya911 Feb 28, 2020
0f6c02e
chore: Enabling more ESLint checks and fixing errors (#797)
hiranya911 Mar 2, 2020
0438b10
Fix compilation error in integration tests (#798)
rsgowman Mar 3, 2020
d83daa6
Build integration tests during CI (and release) (#800)
rsgowman Mar 3, 2020
224f65f
Fix revokeRefreshTokens to round consistently with the other platform…
rsgowman Mar 4, 2020
0a6c956
feat(auth): Multi-factor Auth support with SMS for Google Cloud Ident…
bojeil-google Mar 9, 2020
4b7e99c
Defines new MFA types in toc.yaml. (#807)
bojeil-google Mar 10, 2020
6c7c9ba
Removes special char from index.d.ts. (#808)
bojeil-google Mar 10, 2020
8580959
Defines MultiFactor{Create|Update}Settings interfaces. (#809)
bojeil-google Mar 11, 2020
163463a
chore: Adding a .npmrc file to the root of the repo (#810)
hiranya911 Mar 11, 2020
3907c0c
[chore] Release 8.10.0 (#811)
hiranya911 Mar 12, 2020
c35acac
[chore] Release 8.10.0 (take 2) (#812)
hiranya911 Mar 12, 2020
7b9945f
Bump acorn from 6.1.1 to 6.4.1 (#815)
dependabot[bot] Mar 13, 2020
9016954
Fixing Android notification options descriptions (#820)
egilmorez Mar 17, 2020
4974d00
chore: Splitting the index.d.ts file into smaller files (#751)
hiranya911 Mar 17, 2020
013582a
chore: Cleaning up package verification scripts (#822)
hiranya911 Mar 18, 2020
c401d96
fix(auth): Fixing UserImportRecord typings declaration (#835)
hiranya911 Apr 3, 2020
e1680fc
Bump minimist from 1.2.0 to 1.2.3 (#839)
dependabot[bot] Apr 6, 2020
b0f453a
merged with master
ifielker Apr 16, 2020
ae10e36
remerge conflict
ifielker Apr 16, 2020
2ec5034
Merge branch 'ml' into ml-merge
ifielker Apr 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*!
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
// Following checks are temporarily disabled. We shall incrementally enable them in the
// future, fixing any violations as we go.
'@typescript-eslint/no-non-null-assertion': 0,

// Disabled checks
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-use-before-define': 0,

// Required checks
'indent': ['error', 2],
'@typescript-eslint/explicit-function-return-type': [
'error',
{
'allowExpressions': true,
'allowTypedFunctionExpressions': true,
'allowHigherOrderFunctions': true
}
],
}
};
49 changes: 49 additions & 0 deletions .github/actions/send-tweet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Send Tweet GitHub Action

This is a minimalistic GitHub Action for posting Firebase release announcements
to Twitter. Simply specify the Twitter API keys along with the Tweet status to
be posted.

## Inputs

### `status`

**Required** Text of the Tweet to send.

### `consumer-key`

**Required** Consumer API key from Twitter.

### `consumer-secret`

**Required** Consumer API secret key from Twitter.

### `access-token`

**Required** Twitter application access token.

### `access-token-secret`

**Required** Twitter application access token secret.

## Example usage

```
- name: Send Tweet
uses: firebase/firebase-admin-node/.github/actions/send-tweet
with:
status: >
v1.2.3 of @Firebase Admin Node.js SDK is available.
Release notes at https://firebase.google.com.
consumer-key: ${{ secrets.TWITTER_CONSUMER_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
```

## Implementation

This Action uses the `twitter` NPM package to send Tweets.

When making a code change remember to run `npm run pack` to rebuild the
`dist/index.js` file which is the executable of this Action.
35 changes: 35 additions & 0 deletions .github/actions/send-tweet/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: 'Send Tweet Action'
description: 'Send Tweets from GitHub Actions workflows.'
inputs:
repo:
status: Status (Tweet) to be posted
required: true
consumer-key:
description: Consumer API key.
required: true
consumer-secret:
description: Consumer API secret key.
required: true
access-token:
description: Application access token.
required: true
access-token-secret:
description: Application access token secret.
required: true
runs:
using: 'node12'
main: 'dist/index.js'
Loading