Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Fixes to make the org selection more flexable - #31

Open
eclipsewebmaster wants to merge 1 commit into
masterfrom
regexfixes
Open

Fixes to make the org selection more flexable#31
eclipsewebmaster wants to merge 1 commit into
masterfrom
regexfixes

Conversation

@eclipsewebmaster

Copy link
Copy Markdown
Contributor

And update team names based on the org root

Signed-off-by: Eclipse Webmaster webmaster@eclipse.org

…based on the org root

Signed-off-by: Eclipse Webmaster <webmaster@eclipse.org>
Comment thread bin/github_get_issues.php
if ( preg_match('/eclipse/',$org) !== 1 ){
echo "Not eclipse, skipping issues processing\n";
#only work with selected orgs based on the config file
if ( preg_match(GITHUB_ORG_REGEX,$github_organization) !== 1 ){

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this defined?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the config file. That allows us to expand the covered organizations without further code changes.

#teamnames are important and need to be updated based on the org name in order for follow on processing to find them
#for 'sub' orgs(eclipse-ee4j) they should simply use the 'parent' org name for the first half of the team name
$orgNameParts= explode("-",$teamRepoOrg[0]);
if ( preg_match("/$orgNameParts[0]/",$teamName) !==1 ){

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does $ fly in preg_match for including variables? I thought it would need to be escaped.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs don't indicate that this isn't valid, and it does work. But I'll concede that may be a happy accident. Adding Chris, for comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant