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: added README #1

Merged
merged 4 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 33 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: yarn-build
on:
push:
tags:
- v*
branches:
- master
pull_request:
permissions:
contents: read

jobs:
yarnci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for actions/github-script to get PR info
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: lts/*
- name: install
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile
- name: build
uses: borales/actions-yarn@v4
with:
cmd: build
26 changes: 26 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "codeql"

on:
push:
branches: [ master ]

jobs:
analyze:
name: analyze
runs-on: ubuntu-latest

permissions:
security-events: write
actions: read
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: lts/*
- uses: github/codeql-action/init@v2
- uses: github/codeql-action/autobuild@v2
- uses: github/codeql-action/analyze@v2
14 changes: 14 additions & 0 deletions .github/workflows/depsreview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: dependency-review
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v3
- uses: actions/dependency-review-action@v3
with:
allow-licenses: BSD-2-Clause, BSD-3-Clause, MIT, Apache-2.0, MPL-2.0
33 changes: 33 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: yarnci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
permissions:
contents: read

jobs:
yarnci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for yarnci/yarnci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: lts/*
- name: install
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile
- name: lint
uses: borales/actions-yarn@v4
with:
cmd: lint
58 changes: 58 additions & 0 deletions .github/workflows/milestone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# shamelessly copied from https://github.com/sigstore/cosign/blob/main/.github/workflows/milestone.yaml

name: milestone

on:
pull_request_target:
types: [closed]
branches:
- master

jobs:
milestone:
runs-on: ubuntu-latest

permissions:
actions: none
checks: none
contents: read
deployments: none
issues: write
packages: none
pull-requests: write
repository-projects: none
security-events: none
statuses: none

steps:
- uses: actions/github-script@v6
with:
script: |
if (!context.payload.pull_request.merged) {
console.log('PR was not merged, skipping.');
return;
}

if (!!context.payload.pull_request.milestone) {
console.log('PR has existing milestone, skipping.');
return;
}

milestones = await github.rest.issues.listMilestones({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
sort: 'due_on',
direction: 'asc'
})
if (milestones.data.length === 0) {
console.log('There are no milestones, skipping.');
return;
}

await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
milestone: milestones.data[0].number
});
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: npm
cache: yarn
node-version: lts/*
- run: npm clean-install
- run: npm audit signatures
- run: yarn build
# pinned version updated automatically by Renovate.
# details at https://semantic-release.gitbook.io/semantic-release/usage/installation#global-installation
- run: npx [email protected]
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# dialogflow-cx-messenger-ts

Typescript classes to use Dialogflow Messenger Types in Typescript

To install:
```bash
npm install dialogflow-cx-messenger-ts
```
or
```bash
yarn add dialogflow-cx-messenger-ts
```