INNER CODE UNIT · JavaScript

analyzePR

MatiPl01/react-native-sortables · .github/actions/labeler/index.js:41

async function analyzePR(octokit, pr, config) {
  // Get current state
  const currentLabels = getCurrentLabels();
  const changedFiles = await getChangedFiles(octokit);

  // Log current state
  logCurrentState(currentLabels, changedFiles);

  // Find labels based on title prefix
  const titleLabelInfo = findMatchingTitleLabel(
    pr.title,
    config.titleMappings || []
  );
  logTitleAnalysis(titleLabelInfo);

  // Find labels based on file changes
  const fileLabelInfos = findMatchingFileLabels(
    changedFiles,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…