25 matches across 1 files for func main path:.github/workflows/require_issue_link.yml
snippet_mode: auto · sorted by relevance
.github/workflows/require_issue_link.yml YAML 25 matches · showing 5 view file →
3# labeled "missing-issue-link", commented on, and closed.
4#
5# Maintainer override: an org member can reopen the PR or remove
6# "missing-issue-link" — both add "bypass-issue-check" and reopen.
7#
· · ·
32 check-issue-link:
33 # Run when the "external" label is added, on edit/reopen if already labeled,
34 # or when "missing-issue-link" is removed (triggers maintainer override check).
35 # Skip entirely when the PR already carries "trusted-contributor" or
36 # "bypass-issue-check".
· · ·
59
60 // ── Helper: ensure a label exists, then add it to the PR ────────
61 async function ensureAndAddLabel(labelName, color) {
62 try {
63 await github.rest.issues.getLabel({ owner, repo, name: labelName });
· · ·
83 // to be an org member, which GITHUB_TOKEN (an app installation
84 // token) never is — so it always returns 403.
85 async function senderIsOrgMember() {
86 const sender = context.payload.sender?.login;
87 if (!sender) {
· · ·
93 });
94 const perm = data.permission;
95 if (['admin', 'maintain', 'write'].includes(perm)) {
96 console.log(`${sender} has ${perm} permission — treating as maintainer`);
97 return { isMember: true, login: sender };
+ 20 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.