Skip to content

Instantly share code, notes, and snippets.

@Deborah-Digges
Deborah-Digges / workflow.yml
Last active October 16, 2020 20:09
workflow YML file for github action
name: Comment on pull request
on:
pull_request:
branches:
main
jobs:
comment:
runs-on: ubuntu-latest
@Deborah-Digges
Deborah-Digges / index.js
Created October 16, 2020 19:59
src/index.js for github action
const core = require('@actions/core');
const github = require('@actions/github');
async function run() {
try {
const accessToken = core.getInput('access-token');
const message = core.getInput('message');
const payload = github.context.payload;
const githubClient = github.getOctokit(accessToken);
@Deborah-Digges
Deborah-Digges / action.yml
Last active October 16, 2020 19:56
action.yml for github action
name: 'Welcome bot on new pull requests'
description: 'Greet new contributors on a repository'
inputs:
access-token:
description: 'A GitHub personal access token used to make comments on your behalf'
required: true
message:
description: 'A personal message to send to a new contributor on your repository'
required: true
default: 'Welcome, {}! Thank you for your contribution'
@Deborah-Digges
Deborah-Digges / build_and_publish.yml
Last active October 4, 2020 17:05
gatsby-publish-workflow
name: Gatsby Publish
on:
push:
branches:
master
jobs:
build:
runs-on: ubuntu-latest
@Deborah-Digges
Deborah-Digges / .travis.yml
Created September 25, 2020 21:17
Gatsby .travis.yml
language: node_js
before_script:
- npm install -g gatsby-cli
node_js:
- "10"
script: git config --global user.email $GH_EMAIL 2> /dev/null &&
git config --global user.name $GH_USERNAME 2> /dev/null &&
git remote set-url origin "https://${GH_USERNAME}:${GH_TOKEN}@github.com/deborah-digges/deborah-digges.github.io.git" 2> /dev/null &&
yarn install && yarn run deploy 2> /dev/null
git checkout -b gh-pages
gatsby build
# Temporarily move the public folder
mv public /tmp
# Remove all other files
rm -r *
@Deborah-Digges
Deborah-Digges / .travis.yml
Last active September 25, 2020 20:58
gatsby-deploy
language: node_js
before_script:
- npm install -g gatsby-cli
node_js:
- "10"
script: git config --global user.email $GH_EMAIL 2> /dev/null &&
git config --global user.name $GH_USERNAME 2> /dev/null &&
git remote set-url origin "https://${GH_USERNAME}:${GH_TOKEN}@github.com/deborah-digges/deborah-digges.github.io.git" 2> /dev/null &&
yarn install && yarn run deploy 2> /dev/null
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,
path: `${__dirname}/src/markdown-pages`,
}
}]
@Deborah-Digges
Deborah-Digges / README.md
Last active August 11, 2020 18:46
Send logs to Splunk

Hacky script to send a bunch of logs to splunk directly

Currently, we don't have a tool that can send

  • a specific set of logs
  • with the right shape
  • to a tenant
  • in any environment

We have a bunch of separate tools that do different parts of this. We need a way to consolidate this functionality into fox-cli.

admin_update_launch,auth0_update_launched
api_limit,rate_limit_on_the_authentication_api
cls,code_or_link_sent
coff,connector_offline
con,connector_online
cs,code_sent
depnote,deprecation_notice
du,deleted_user
f,failed_login
fapi,failed_api_operation