Skip to content

Commit

Permalink
Add repository and run id to sentry events
Browse files Browse the repository at this point in the history
Change-Id: I61b0f04c37e6d491afddf7f67e6136949db0c909
  • Loading branch information
tmadeira committed Jul 28, 2021
1 parent 7c5313e commit 9a5355b
Show file tree
Hide file tree
Showing 297 changed files with 71,044 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.captureException = exports.initSentry = void 0;
const Sentry = __importStar(require("@sentry/node"));
const github = __importStar(require("@actions/github"));
function initSentry(options) {
Sentry.init({
dsn: "https://[email protected]/5723395",
defaultIntegrations: false,
});
const extras = Object.assign({}, options);
const { owner, repo } = github.context.repo;
extras["githubRepository"] = `${owner}/${repo}`;
extras["workflowRunId"] = github.context.runId;
delete extras["githubToken"];
delete extras["projectApiToken"];
Sentry.configureScope((scope) => {
Expand Down
9 changes: 9 additions & 0 deletions node_modules/@actions/github/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions node_modules/@actions/github/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions node_modules/@actions/github/lib/context.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions node_modules/@actions/github/lib/context.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/@actions/github/lib/context.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions node_modules/@actions/github/lib/github.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions node_modules/@actions/github/lib/github.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/@actions/github/lib/github.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions node_modules/@actions/github/lib/interfaces.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions node_modules/@actions/github/lib/interfaces.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/@actions/github/lib/interfaces.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions node_modules/@actions/github/lib/internal/utils.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions node_modules/@actions/github/lib/internal/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/@actions/github/lib/internal/utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions node_modules/@actions/github/lib/utils.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a5355b

Please sign in to comment.