Skip to content

Commit

Permalink
Merge pull request #9 from dagster-io/benpankow/new-git-metadata
Browse files Browse the repository at this point in the history
Include git metadata in code locations by default
  • Loading branch information
benpankow authored Jan 27, 2022
2 parents 34dd15d + 92d066a commit 30cfca6
Show file tree
Hide file tree
Showing 6 changed files with 15,791 additions and 16,406 deletions.
3 changes: 0 additions & 3 deletions deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ inputs:
required: false
default: true

experimental-git-data:
required: false
default: false
runs:
using: 'node12'
main: '../dist/deploy/index.js'
16,086 changes: 7,890 additions & 8,196 deletions dist/deploy/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/deploy/index.js.map

Large diffs are not rendered by default.

16,096 changes: 7,896 additions & 8,200 deletions dist/preview/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview/index.js.map

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions src/deploy-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ async function run() {
);
}

// Optionally include some experimental git data in the location metadata
// used for some rich linking UI
const includeGitData = core.getBooleanInput("experimental-git-data");
// Git metadata, used for rich linkbacks
const sha = github.context.sha;
const shortSha = sha.substr(0, 6);
const url =
Expand All @@ -67,8 +65,8 @@ async function run() {
workingDirectory: workingDirectory,
executablePath: executablePath,
attribute: attribute,
sha: includeGitData ? sha : undefined,
url: includeGitData ? url : undefined,
commitHash: sha,
url: url,
};

const result = await client.updateLocation(locationData);
Expand Down

0 comments on commit 30cfca6

Please sign in to comment.