Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple features added #4

Merged
merged 9 commits into from Oct 31, 2022
Merged

Conversation

kartik1000
Copy link
Contributor

@kartik1000 kartik1000 commented Sep 4, 2020

This pull request inlcudes rest of the features added during the GSoC Project which includes:

  • adding-labels through comments,
  • adding reference of issues in a pull request in GitHub and vice-versa,
  • closing GitLab issues directly through comments in GitHub,
  • and posting the status of pull requests either they are merged or closed on their corresponding docs merge request.

Two env variables GitHub_URL and GitHub_Token will need to be added to connect to GitLab using GitBeaker.

If a separate pull request for each feature is required, I can open that as well. Most of the features added are simply based on combinations of GitHub and GitLab APIs with string hashing or using GitHub commands extension.

If any changes are needed do let me know, I will be happy to do so. More information regarding the issues can be found at https://civicrm.org/blog/kartik1000/probots-and-gitlab-github-integration-final-phase-completion

}
var link_number = title.slice(string_index+1,issue_number_index)
var ref_link = 'https://lab.civicrm.org/dev' + '/' + link_head + '/-/issues/' + link_number
ref_link = 'The issue assosciated with the Pull Request can be viewed on this link ' + ref_link
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ref_link = 'The issue assosciated with the Pull Request can be viewed on this link ' + ref_link
ref_link = 'The issue associated with this Pull Request can be viewed at: ' + ref_link

@homotechsual
Copy link
Contributor

There are some things in this code that are somewhat reusable (like logging into GitBeaker) and could be extracted into a utility function to make this cleaner/more maintainable in the future.

@mlutfy mlutfy merged commit abeb9ae into civicrm:master Oct 31, 2022
@mlutfy
Copy link
Member

mlutfy commented Oct 31, 2022

Deployed to prod. Thank you @kartik1000 @homotechsual (and apologies for the delay, I wasn't subscribed to this repo).

@kartik1000
Copy link
Contributor Author

Thank you @mlutfy fore reviewing and merging. Happy to finally have this in prod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants