Skip to content

Commit

Permalink
consist prData calling
Browse files Browse the repository at this point in the history
  • Loading branch information
ldraney committed May 8, 2024
1 parent 9ba261f commit efd1d4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
6 changes: 1 addition & 5 deletions .github/scripts/createAndPostTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ async function createAndPostTag(params) {

try {
// Retrieve PR data to decide the new version tag
const { releaseBranchSha, newVersion } = await prData({
github,
context,
core,
});
const { releaseBranchSha, newVersion } = await prData({ github, context, core });

// Create and push the tag using the SHA from releaseBranchSha
await createTag(github, owner, repo, newVersion, releaseBranchSha);
Expand Down
5 changes: 1 addition & 4 deletions .github/scripts/prData.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ async function prData(params) {
const prNumber = pullRequestData.data[0].number;
const prUrl = pullRequestData.data[0].html_url;

const { newVersion, appliedLabel } = processLabelsAndVersion(
labels,
currentVersion,
);
const { newVersion, appliedLabel } = processLabelsAndVersion( labels, currentVersion );

return {
releaseBranchSha,
Expand Down
6 changes: 1 addition & 5 deletions .github/scripts/preTagSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ const fs = require("fs");
const preTagSummary = async ({ github, context, core }) => {
try {
// Retrieve the current release version and proposed new version from prData
const { currentVersion, newVersion } = await prData({
github,
context,
core,
});
const { currentVersion, newVersion } = await prData({ github, context, core, });

// Construct the summary content
const summaryContent = `
Expand Down

0 comments on commit efd1d4c

Please sign in to comment.