This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of pulling audit entries | |
# Required: the auth token must be associated with an Organization Administrator on the account | |
require 'httparty' | |
require 'json' | |
@auth_token = "[YOUR AUTH TOKEN]" | |
@get_organizations_url= "https://api.bugsnag.com/user/organizations?admin=&per_page=10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A rate limit may be hit - if so you will need to add some sleeps | |
const fetch = require('node-fetch'); | |
const url = 'https://api.bugsnag.com/' | |
const auth_token = 'YOUR PERSONAL AUTH TOKEN' | |
const last_number_of_days = '100' // eg. 7 would return totals from the last week | |
let headers = { | |
headers: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO: Create the trigger configs (ticket creation automation) | |
// Script will take JIRA integration configurations from a template project and copy them to another project you specify | |
const fetch = require('node-fetch'); | |
const url = 'https://api.bugsnag.com/' | |
const auth_token = 'YOUR AUTH TOKEN' | |
const project_name_to_copy_from = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const csv = require('csv-parser'); | |
const axios = require('axios'); | |
const { v4: uuidv4 } = require('uuid'); | |
const createCsvWriter = require('csv-writer').createObjectCsvWriter; | |
// Path to your CSV file | |
const csvFilePath = 'name_of_.csv'; | |
const outputCsvFilePath = 'service_catalg_with_reference_id.csv'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const csv = require('csv-parser'); | |
const csvFilePath = 'CSV TEMPLATE'; | |
const apiEndpoint = 'CUSTOMER SPECIFIC INCIDENTS SYNC ENDPOINT'; | |
const apiKey = 'API KEY'; | |
fs.createReadStream(csvFilePath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const fs = require('fs'); | |
const csv = require('csv-parser'); | |
// Constants - replace these with your actual values | |
const CLIENT_ID = ''; | |
const CLIENT_SECRET = ''; | |
const TENANT_ID = ''; | |
const TEAM_ID = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scan Changed Files in PR | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'main' | |
jobs: |