PR#1947 Closed fixed issue #1812, Modified the message when user tries to unwatch his own fork.

Proposed a year ago by smitthakkar96
Modified a year ago
From forks/smitthakkar96/pagure stopWatching  into pagure master
file changed

@@ -99,6 +99,7 @@ 



  def ssh_key_validator(form, field):

+     ''' Form for ssh key validation '''

you have made these same changes in #1950

      if not pagure.lib.are_valid_ssh_keys(

          raise wtforms.ValidationError('Invalid SSH keys')

file changed

@@ -3425,6 +3425,9 @@ 


      user_obj = get_user(session, user)


+     if project.user_id ==

+         return 'You cannot Unwatch your own fork.'


      if not user_obj:

          raise pagure.exceptions.PagureException(

              'No user with username: %s' % user)
rahulbajaj commented on line 5 of pagure/
a year ago
you have made these same changes in #1950

One of the two commit message needs to be re-worded

a year ago

2 new commits added

  • Changed the success response to "You cannot unwatch your own fork" in a
  • Merge branch 'master' of ssh://

@pingou I changed the commit message.

I'm not seeing the new commit, did you push?

I'm going to close this PR, please reopen it when your changes are ready to be reviewed :)


a year ago

Pull-Request has been closed by pingou

Changes summary
+1 -0
file changed
+3 -0
file changed