Skip to content

Commit

Permalink
🐛 Fix a bug & a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Feb 14, 2022
1 parent 8feb75e commit 05e61a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pr-validation/dist/index.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions pr-validation/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ async function fetchPr(client, owner, repo, number) {
const query = `query {
repository(owner:"${owner}", name: "${repo}") {
pullRequest(number: ${number}) {
author {
login
headRepository {
owner {
login
},
name
},
body,
baseRefName,
Expand Down Expand Up @@ -199,7 +202,7 @@ async function run() {
console.log("Allowed targets: " + allowed_targets.join(", "));
console.log("Forbidden targets: " + forbidden_targets.join(", "));
console.log("Forbidden sources: " + forbidden_sources.join(", "));
console.log("Check if maintainer can modifiy: " + check_can_modify);
console.log("Check if maintainer can modify: " + check_can_modify);

const problems = checkPr(pr, owner, repo, allowed_targets, forbidden_targets, forbidden_sources, check_can_modify);

Expand Down

0 comments on commit 05e61a7

Please sign in to comment.