removing more leading-none (#8464)

This commit is contained in:
Peer Richelsen 2023-04-24 20:44:30 +02:00 committed by GitHub
parent 692f2778e4
commit f6d00a41fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 27 deletions

View File

@ -1,7 +1,6 @@
const https = require("https"); const https = require("https");
async function applyLabelFromLinkedIssueToPR(pr, token) { async function applyLabelFromLinkedIssueToPR(pr, token) {
// Get the labels from issues linked to the PR // Get the labels from issues linked to the PR
const query = ` const query = `
query GetLinkedIssues($owner: String!, $repo: String!, $prNumber: Int!) { query GetLinkedIssues($owner: String!, $repo: String!, $prNumber: Int!) {
@ -38,7 +37,7 @@ async function applyLabelFromLinkedIssueToPR(pr, token) {
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Content-Length": graphqlData.length, "Content-Length": graphqlData.length,
"Authorization": "Bearer " + token, Authorization: "Bearer " + token,
"User-Agent": "Node.js", "User-Agent": "Node.js",
}, },
}; };
@ -52,14 +51,7 @@ async function applyLabelFromLinkedIssueToPR(pr, token) {
responseBody += chunk; responseBody += chunk;
}); });
response.on("end", () => { response.on("end", () => {
resolve( resolve(JSON.parse(responseBody)?.data?.repository?.pullRequest?.closingIssuesReferences?.nodes);
JSON.parse(responseBody)
?.data
?.repository
?.pullRequest
?.closingIssuesReferences
?.nodes
);
}); });
}); });
@ -96,7 +88,7 @@ async function applyLabelFromLinkedIssueToPR(pr, token) {
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Content-Length": labelsData.length, "Content-Length": labelsData.length,
"Authorization": "Bearer " + token, Authorization: "Bearer " + token,
"User-Agent": "Node.js", "User-Agent": "Node.js",
}, },
}; };
@ -126,11 +118,9 @@ async function applyLabelFromLinkedIssueToPR(pr, token) {
console.log(`Error labelling PR: ${labelResult.message}`); console.log(`Error labelling PR: ${labelResult.message}`);
continue; continue;
} }
console.log( console.log(
`Applied labels: ${labels.join(", ")} to PR #${ `Applied labels: ${labels.join(", ")} to PR #${pr.number} from linked issue #${issue.number}`
pr.number
} from linked issue #${issue.number}`
); );
} }
} }

View File

@ -11,11 +11,11 @@ export const InstallAppButtonMap = {
vital: dynamic(() => import("./vital/components/InstallAppButton")), vital: dynamic(() => import("./vital/components/InstallAppButton")),
}; };
export const AppSettingsComponentsMap = { export const AppSettingsComponentsMap = {
"general-app-settings": dynamic(() => "general-app-settings": dynamic(
import("./templates/general-app-settings/components/AppSettingsInterface") () => import("./templates/general-app-settings/components/AppSettingsInterface")
), ),
weather_in_your_calendar: dynamic(() => weather_in_your_calendar: dynamic(
import("./weather_in_your_calendar/components/AppSettingsInterface") () => import("./weather_in_your_calendar/components/AppSettingsInterface")
), ),
zapier: dynamic(() => import("./zapier/components/AppSettingsInterface")), zapier: dynamic(() => import("./zapier/components/AppSettingsInterface")),
}; };
@ -29,10 +29,10 @@ export const EventTypeAddonMap = {
qr_code: dynamic(() => import("./qr_code/components/EventTypeAppCardInterface")), qr_code: dynamic(() => import("./qr_code/components/EventTypeAppCardInterface")),
rainbow: dynamic(() => import("./rainbow/components/EventTypeAppCardInterface")), rainbow: dynamic(() => import("./rainbow/components/EventTypeAppCardInterface")),
stripepayment: dynamic(() => import("./stripepayment/components/EventTypeAppCardInterface")), stripepayment: dynamic(() => import("./stripepayment/components/EventTypeAppCardInterface")),
"booking-pages-tag": dynamic(() => "booking-pages-tag": dynamic(
import("./templates/booking-pages-tag/components/EventTypeAppCardInterface") () => import("./templates/booking-pages-tag/components/EventTypeAppCardInterface")
), ),
"event-type-app-card": dynamic(() => "event-type-app-card": dynamic(
import("./templates/event-type-app-card/components/EventTypeAppCardInterface") () => import("./templates/event-type-app-card/components/EventTypeAppCardInterface")
), ),
}; };

View File

@ -4,10 +4,7 @@ export function Label(props: JSX.IntrinsicElements["label"]) {
return ( return (
<label <label
{...props} {...props}
className={classNames( className={classNames("text-default text-emphasis mb-2 block text-sm font-medium", props.className)}>
"text-default text-emphasis mb-2 block text-sm font-medium leading-none",
props.className
)}>
{props.children} {props.children}
</label> </label>
); );